@webex/plugin-meetings 3.12.0-next.16 → 3.12.0-next.160

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 (301) 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 +135 -0
  22. package/ai-docs/ARCHITECTURE.md +207 -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/dist/aiEnableRequest/index.js +15 -2
  40. package/dist/aiEnableRequest/index.js.map +1 -1
  41. package/dist/annotation/index.js +2 -2
  42. package/dist/annotation/index.js.map +1 -1
  43. package/dist/breakouts/breakout.js +8 -3
  44. package/dist/breakouts/breakout.js.map +1 -1
  45. package/dist/breakouts/events.js +29 -14
  46. package/dist/breakouts/events.js.map +1 -1
  47. package/dist/breakouts/index.js +99 -4
  48. package/dist/breakouts/index.js.map +1 -1
  49. package/dist/common/errors/webex-errors.js +49 -5
  50. package/dist/common/errors/webex-errors.js.map +1 -1
  51. package/dist/config.js +2 -2
  52. package/dist/config.js.map +1 -1
  53. package/dist/constants.js +37 -10
  54. package/dist/constants.js.map +1 -1
  55. package/dist/controls-options-manager/index.js +46 -10
  56. package/dist/controls-options-manager/index.js.map +1 -1
  57. package/dist/hashTree/constants.js +4 -1
  58. package/dist/hashTree/constants.js.map +1 -1
  59. package/dist/hashTree/hashTreeParser.js +1096 -391
  60. package/dist/hashTree/hashTreeParser.js.map +1 -1
  61. package/dist/hashTree/utils.js +20 -0
  62. package/dist/hashTree/utils.js.map +1 -1
  63. package/dist/index.js +7 -0
  64. package/dist/index.js.map +1 -1
  65. package/dist/interceptors/dataChannelAuthToken.js +75 -15
  66. package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
  67. package/dist/interceptors/locusRetry.js +24 -9
  68. package/dist/interceptors/locusRetry.js.map +1 -1
  69. package/dist/interpretation/index.js +55 -12
  70. package/dist/interpretation/index.js.map +1 -1
  71. package/dist/interpretation/interpretation.types.js +7 -0
  72. package/dist/interpretation/interpretation.types.js.map +1 -0
  73. package/dist/interpretation/siLanguage.js +1 -1
  74. package/dist/locus-info/controlsUtils.js +4 -1
  75. package/dist/locus-info/controlsUtils.js.map +1 -1
  76. package/dist/locus-info/index.js +615 -176
  77. package/dist/locus-info/index.js.map +1 -1
  78. package/dist/locus-info/infoUtils.js +36 -5
  79. package/dist/locus-info/infoUtils.js.map +1 -1
  80. package/dist/locus-info/types.js +20 -0
  81. package/dist/locus-info/types.js.map +1 -1
  82. package/dist/media/MediaConnectionAwaiter.js +15 -2
  83. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  84. package/dist/media/index.js +8 -2
  85. package/dist/media/index.js.map +1 -1
  86. package/dist/media/properties.js +4 -5
  87. package/dist/media/properties.js.map +1 -1
  88. package/dist/meeting/in-meeting-actions.js +7 -1
  89. package/dist/meeting/in-meeting-actions.js.map +1 -1
  90. package/dist/meeting/index.js +1688 -835
  91. package/dist/meeting/index.js.map +1 -1
  92. package/dist/meeting/locusMediaRequest.js +229 -82
  93. package/dist/meeting/locusMediaRequest.js.map +1 -1
  94. package/dist/meeting/muteState.js +10 -1
  95. package/dist/meeting/muteState.js.map +1 -1
  96. package/dist/meeting/request.js +5 -2
  97. package/dist/meeting/request.js.map +1 -1
  98. package/dist/meeting/util.js +37 -3
  99. package/dist/meeting/util.js.map +1 -1
  100. package/dist/meeting/voicea-meeting.js +2 -1
  101. package/dist/meeting/voicea-meeting.js.map +1 -1
  102. package/dist/meeting-info/meeting-info-v2.js +9 -3
  103. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  104. package/dist/meetings/index.js +300 -128
  105. package/dist/meetings/index.js.map +1 -1
  106. package/dist/meetings/meetings.types.js +6 -1
  107. package/dist/meetings/meetings.types.js.map +1 -1
  108. package/dist/meetings/request.js +39 -0
  109. package/dist/meetings/request.js.map +1 -1
  110. package/dist/meetings/util.js +116 -18
  111. package/dist/meetings/util.js.map +1 -1
  112. package/dist/member/index.js +10 -0
  113. package/dist/member/index.js.map +1 -1
  114. package/dist/member/types.js.map +1 -1
  115. package/dist/member/util.js +30 -0
  116. package/dist/member/util.js.map +1 -1
  117. package/dist/members/index.js +101 -43
  118. package/dist/members/index.js.map +1 -1
  119. package/dist/members/util.js +8 -1
  120. package/dist/members/util.js.map +1 -1
  121. package/dist/metrics/constants.js +7 -1
  122. package/dist/metrics/constants.js.map +1 -1
  123. package/dist/multistream/codec/constants.js +63 -0
  124. package/dist/multistream/codec/constants.js.map +1 -0
  125. package/dist/multistream/mediaRequestManager.js +62 -15
  126. package/dist/multistream/mediaRequestManager.js.map +1 -1
  127. package/dist/multistream/receiveSlot.js +9 -0
  128. package/dist/multistream/receiveSlot.js.map +1 -1
  129. package/dist/multistream/remoteMediaManager.js +32 -4
  130. package/dist/multistream/remoteMediaManager.js.map +1 -1
  131. package/dist/reachability/clusterReachability.js.map +1 -1
  132. package/dist/reachability/index.js +121 -83
  133. package/dist/reachability/index.js.map +1 -1
  134. package/dist/reachability/reachability.types.js +2 -0
  135. package/dist/reachability/reachability.types.js.map +1 -1
  136. package/dist/reachability/util.js +45 -0
  137. package/dist/reachability/util.js.map +1 -1
  138. package/dist/reactions/reactions.type.js.map +1 -1
  139. package/dist/recording-controller/index.js +1 -3
  140. package/dist/recording-controller/index.js.map +1 -1
  141. package/dist/roap/turnDiscovery.js +8 -1
  142. package/dist/roap/turnDiscovery.js.map +1 -1
  143. package/dist/types/common/errors/webex-errors.d.ts +32 -2
  144. package/dist/types/config.d.ts +2 -2
  145. package/dist/types/constants.d.ts +13 -1
  146. package/dist/types/controls-options-manager/index.d.ts +16 -0
  147. package/dist/types/hashTree/constants.d.ts +1 -0
  148. package/dist/types/hashTree/hashTreeParser.d.ts +201 -22
  149. package/dist/types/hashTree/utils.d.ts +7 -0
  150. package/dist/types/index.d.ts +3 -0
  151. package/dist/types/interceptors/locusRetry.d.ts +4 -4
  152. package/dist/types/interpretation/interpretation.types.d.ts +10 -0
  153. package/dist/types/locus-info/index.d.ts +106 -8
  154. package/dist/types/locus-info/infoUtils.d.ts +8 -0
  155. package/dist/types/locus-info/types.d.ts +22 -1
  156. package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
  157. package/dist/types/media/properties.d.ts +6 -2
  158. package/dist/types/meeting/in-meeting-actions.d.ts +6 -0
  159. package/dist/types/meeting/index.d.ts +176 -11
  160. package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
  161. package/dist/types/meeting/request.d.ts +1 -0
  162. package/dist/types/meeting/util.d.ts +9 -0
  163. package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
  164. package/dist/types/meetings/index.d.ts +40 -19
  165. package/dist/types/meetings/meetings.types.d.ts +15 -0
  166. package/dist/types/meetings/request.d.ts +14 -0
  167. package/dist/types/member/index.d.ts +1 -0
  168. package/dist/types/member/types.d.ts +1 -0
  169. package/dist/types/member/util.d.ts +9 -0
  170. package/dist/types/members/index.d.ts +15 -2
  171. package/dist/types/members/util.d.ts +1 -5
  172. package/dist/types/metrics/constants.d.ts +6 -0
  173. package/dist/types/multistream/codec/constants.d.ts +7 -0
  174. package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
  175. package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
  176. package/dist/types/reachability/clusterReachability.d.ts +3 -3
  177. package/dist/types/reachability/index.d.ts +10 -3
  178. package/dist/types/reachability/reachability.types.d.ts +7 -0
  179. package/dist/types/reachability/util.d.ts +17 -0
  180. package/dist/types/reactions/reactions.type.d.ts +3 -0
  181. package/dist/webinar/index.js +307 -161
  182. package/dist/webinar/index.js.map +1 -1
  183. package/package.json +23 -23
  184. package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
  185. package/src/aiEnableRequest/index.ts +16 -0
  186. package/src/annotation/ai-docs/annotation-spec.md +236 -0
  187. package/src/annotation/index.ts +6 -4
  188. package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
  189. package/src/breakouts/breakout.ts +3 -1
  190. package/src/breakouts/events.ts +33 -11
  191. package/src/breakouts/index.ts +122 -2
  192. package/src/common/errors/webex-errors.ts +50 -3
  193. package/src/config.ts +2 -2
  194. package/src/constants.ts +21 -3
  195. package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
  196. package/src/controls-options-manager/index.ts +62 -10
  197. package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
  198. package/src/hashTree/constants.ts +7 -0
  199. package/src/hashTree/hashTreeParser.ts +861 -193
  200. package/src/hashTree/utils.ts +19 -0
  201. package/src/index.ts +6 -0
  202. package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
  203. package/src/interceptors/dataChannelAuthToken.ts +88 -12
  204. package/src/interceptors/locusRetry.ts +26 -5
  205. package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
  206. package/src/interpretation/index.ts +65 -10
  207. package/src/interpretation/interpretation.types.ts +11 -0
  208. package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
  209. package/src/locus-info/controlsUtils.ts +3 -1
  210. package/src/locus-info/index.ts +566 -164
  211. package/src/locus-info/infoUtils.ts +41 -6
  212. package/src/locus-info/types.ts +26 -1
  213. package/src/media/MediaConnectionAwaiter.ts +21 -4
  214. package/src/media/ai-docs/media-spec.md +267 -0
  215. package/src/media/index.ts +10 -1
  216. package/src/media/properties.ts +8 -3
  217. package/src/meeting/ai-docs/meeting-spec.md +401 -0
  218. package/src/meeting/in-meeting-actions.ts +12 -0
  219. package/src/meeting/index.ts +946 -120
  220. package/src/meeting/locusMediaRequest.ts +106 -6
  221. package/src/meeting/muteState.ts +10 -1
  222. package/src/meeting/request.ts +11 -0
  223. package/src/meeting/util.ts +51 -7
  224. package/src/meeting/voicea-meeting.ts +1 -1
  225. package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
  226. package/src/meeting-info/meeting-info-v2.ts +10 -4
  227. package/src/meetings/ai-docs/meetings-spec.md +296 -0
  228. package/src/meetings/index.ts +200 -80
  229. package/src/meetings/meetings.types.ts +19 -0
  230. package/src/meetings/request.ts +43 -0
  231. package/src/meetings/util.ts +117 -4
  232. package/src/member/ai-docs/member-spec.md +196 -0
  233. package/src/member/index.ts +10 -0
  234. package/src/member/types.ts +1 -0
  235. package/src/member/util.ts +29 -0
  236. package/src/members/ai-docs/members-spec.md +256 -0
  237. package/src/members/index.ts +70 -7
  238. package/src/members/util.ts +12 -4
  239. package/src/metrics/ai-docs/metrics-spec.md +185 -0
  240. package/src/metrics/constants.ts +6 -0
  241. package/src/multistream/ai-docs/multistream-spec.md +292 -0
  242. package/src/multistream/codec/constants.ts +58 -0
  243. package/src/multistream/mediaRequestManager.ts +119 -28
  244. package/src/multistream/receiveSlot.ts +18 -0
  245. package/src/multistream/remoteMediaManager.ts +23 -1
  246. package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
  247. package/src/reachability/ai-docs/reachability-spec.md +261 -0
  248. package/src/reachability/clusterReachability.ts +3 -2
  249. package/src/reachability/index.ts +47 -16
  250. package/src/reachability/reachability.types.ts +11 -0
  251. package/src/reachability/util.ts +36 -0
  252. package/src/reactions/ai-docs/reactions-spec.md +198 -0
  253. package/src/reactions/reactions.type.ts +3 -0
  254. package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
  255. package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
  256. package/src/recording-controller/index.ts +1 -2
  257. package/src/roap/ai-docs/roap-spec.md +241 -0
  258. package/src/roap/turnDiscovery.ts +9 -1
  259. package/src/webinar/ai-docs/webinar-spec.md +243 -0
  260. package/src/webinar/index.ts +216 -38
  261. package/test/unit/spec/aiEnableRequest/index.ts +86 -0
  262. package/test/unit/spec/annotation/index.ts +3 -3
  263. package/test/unit/spec/breakouts/breakout.ts +9 -3
  264. package/test/unit/spec/breakouts/events.ts +120 -2
  265. package/test/unit/spec/breakouts/index.ts +223 -3
  266. package/test/unit/spec/common/errors/webex-errors.ts +78 -0
  267. package/test/unit/spec/controls-options-manager/index.js +139 -32
  268. package/test/unit/spec/hashTree/hashTreeParser.ts +2451 -184
  269. package/test/unit/spec/hashTree/utils.ts +37 -0
  270. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +196 -0
  271. package/test/unit/spec/interceptors/locusRetry.ts +234 -5
  272. package/test/unit/spec/interpretation/index.ts +119 -4
  273. package/test/unit/spec/locus-info/controlsUtils.js +172 -57
  274. package/test/unit/spec/locus-info/index.js +1014 -58
  275. package/test/unit/spec/locus-info/infoUtils.js +184 -1
  276. package/test/unit/spec/media/MediaConnectionAwaiter.ts +55 -0
  277. package/test/unit/spec/media/index.ts +92 -0
  278. package/test/unit/spec/media/properties.ts +23 -23
  279. package/test/unit/spec/meeting/in-meeting-actions.ts +6 -0
  280. package/test/unit/spec/meeting/index.js +2838 -109
  281. package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
  282. package/test/unit/spec/meeting/muteState.js +81 -0
  283. package/test/unit/spec/meeting/request.js +12 -0
  284. package/test/unit/spec/meeting/utils.js +189 -17
  285. package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
  286. package/test/unit/spec/meeting-info/meetinginfov2.js +76 -10
  287. package/test/unit/spec/meetings/index.js +544 -49
  288. package/test/unit/spec/meetings/request.js +141 -0
  289. package/test/unit/spec/meetings/utils.js +402 -51
  290. package/test/unit/spec/member/index.js +7 -0
  291. package/test/unit/spec/member/util.js +89 -0
  292. package/test/unit/spec/members/index.js +216 -0
  293. package/test/unit/spec/members/request.js +37 -1
  294. package/test/unit/spec/members/utils.js +63 -0
  295. package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
  296. package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
  297. package/test/unit/spec/reachability/index.ts +128 -46
  298. package/test/unit/spec/reachability/util.ts +31 -0
  299. package/test/unit/spec/recording-controller/index.js +9 -8
  300. package/test/unit/spec/roap/turnDiscovery.ts +20 -0
  301. package/test/unit/spec/webinar/index.ts +332 -31
@@ -0,0 +1,112 @@
1
+ {
2
+ "schema_version": 1,
3
+ "profile": "sdd-legacy",
4
+ "library_version": "0.2.2",
5
+ "registry": {
6
+ "heading": "Module Registry",
7
+ "columns": 4,
8
+ "module_column": 0,
9
+ "spec_column": 3
10
+ },
11
+ "module_spec_marker": {
12
+ "field": "Doc kind",
13
+ "value": "Module spec"
14
+ },
15
+ "layout_defaults": {
16
+ "docs_root": "ai-docs",
17
+ "standing_docs_root": "ai-docs",
18
+ "spec_index_path": "ai-docs/SPEC_INDEX.md",
19
+ "module_docs_strategy": "source-local",
20
+ "module_docs_folder_name": "ai-docs",
21
+ "module_spec_pattern": "<module-path>/ai-docs/<module-name>-spec.md"
22
+ },
23
+ "generated_metadata_position": "byte-1",
24
+ "provenance": {
25
+ "profile": "sdd-legacy",
26
+ "source_repo": "WebexDevPlatform/RepoAnnotation-Templates",
27
+ "source_commit": "0aa65d93f019e5313ec2ddfac9b0c7352a2882cc",
28
+ "resolved_from": "vendored tree"
29
+ },
30
+ "templates": [
31
+ {
32
+ "template_id": "module-spec",
33
+ "template": "module-docs/module-spec.template.md",
34
+ "generates": "<module-path>/ai-docs/<module-name>-spec.md"
35
+ },
36
+ {
37
+ "template_id": "adr",
38
+ "template": "reference-docs/adr/_adr-example.md",
39
+ "generates": "ai-docs/adr/NNNN-<kebab-title>.md"
40
+ },
41
+ {
42
+ "template_id": "pattern",
43
+ "template": "reference-docs/patterns/_pattern-example.md",
44
+ "generates": "ai-docs/patterns/<name>.md"
45
+ },
46
+ {
47
+ "template_id": "rule",
48
+ "template": "reference-docs/rules/_rule-example.md",
49
+ "generates": "ai-docs/rules/<name>.md"
50
+ },
51
+ {
52
+ "template_id": "agents",
53
+ "template": "standing-docs/AGENTS.template.md",
54
+ "generates": "AGENTS.md"
55
+ },
56
+ {
57
+ "template_id": "architecture",
58
+ "template": "standing-docs/ARCHITECTURE.template.md",
59
+ "generates": "ai-docs/ARCHITECTURE.md"
60
+ },
61
+ {
62
+ "template_id": "contracts",
63
+ "template": "standing-docs/CONTRACTS.template.md",
64
+ "generates": "ai-docs/CONTRACTS.md"
65
+ },
66
+ {
67
+ "template_id": "data-model",
68
+ "template": "standing-docs/DATA_MODEL.template.md",
69
+ "generates": "ai-docs/DATA_MODEL.md"
70
+ },
71
+ {
72
+ "template_id": "getting-started",
73
+ "template": "standing-docs/GETTING_STARTED.template.md",
74
+ "generates": "ai-docs/GETTING_STARTED.md"
75
+ },
76
+ {
77
+ "template_id": "glossary",
78
+ "template": "standing-docs/GLOSSARY.template.md",
79
+ "generates": "ai-docs/GLOSSARY.md"
80
+ },
81
+ {
82
+ "template_id": "review-checklist",
83
+ "template": "standing-docs/REVIEW_CHECKLIST.template.md",
84
+ "generates": "ai-docs/REVIEW_CHECKLIST.md"
85
+ },
86
+ {
87
+ "template_id": "rules",
88
+ "template": "standing-docs/RULES.template.md",
89
+ "generates": "ai-docs/RULES.md"
90
+ },
91
+ {
92
+ "template_id": "security",
93
+ "template": "standing-docs/SECURITY.template.md",
94
+ "generates": "ai-docs/SECURITY.md"
95
+ },
96
+ {
97
+ "template_id": "service-state",
98
+ "template": "standing-docs/SERVICE_STATE.template.md",
99
+ "generates": "ai-docs/SERVICE_STATE.md"
100
+ },
101
+ {
102
+ "template_id": "spec-index",
103
+ "template": "standing-docs/SPEC_INDEX.template.md",
104
+ "generates": "ai-docs/SPEC_INDEX.md"
105
+ },
106
+ {
107
+ "template_id": "test-index",
108
+ "template": "standing-docs/TEST_INDEX.template.md",
109
+ "generates": "ai-docs/TEST_INDEX.md"
110
+ }
111
+ ]
112
+ }
package/AGENTS.md ADDED
@@ -0,0 +1,135 @@
1
+ <!-- sdd-generated-metadata
2
+ doc_kind: agent-entry
3
+ generated_from: agents@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-18T15:33:39Z
8
+ validation_status: not-run
9
+ -->
10
+ # AGENTS.md — @webex/plugin-meetings
11
+
12
+ > Read first. Next: [`ai-docs/SPEC_INDEX.md`](ai-docs/SPEC_INDEX.md) for routing and [`ai-docs/ARCHITECTURE.md`](ai-docs/ARCHITECTURE.md) for system design. Load only the affected module specifications.
13
+
14
+ ## Repo Overview
15
+
16
+ `@webex/plugin-meetings` is the Webex JavaScript SDK plugin for meeting discovery, registration, lifecycle, realtime Locus state, participants, WebRTC media, and in-meeting capabilities.
17
+
18
+ **What it is:**
19
+ - A published library package registered as `webex.meetings` inside the Webex SDK host.
20
+ - A client-side coordinator over Webex device, Mercury, Locus, meeting-info, media, and feature services.
21
+
22
+ **What it is NOT:**
23
+ - It is not a UI application or a server-side datastore owner.
24
+ - It does not own remote Webex service state; its collections and models are client-side projections.
25
+
26
+ ## Tech Stack
27
+
28
+ - TypeScript and JavaScript, Node.js 22.14 for this repository, Yarn workspaces, and legacy Webex build tooling.
29
+ - Mocha, Sinon, and `@webex/test-helper-chai` for unit tests; Karma for browser/integration tests; ESLint for style checks.
30
+
31
+ ## Architecture
32
+
33
+ ```mermaid
34
+ flowchart LR
35
+ Consumer --> Entry[src/index.ts]
36
+ Entry --> Meetings[src/meetings]
37
+ Meetings --> Meeting[src/meeting]
38
+ Meeting --> State[Locus / members / feature controllers]
39
+ Meeting --> Media[media / multistream / ROAP]
40
+ Meetings --> Services[Webex device / Mercury / meeting services]
41
+ ```
42
+
43
+ → Full architecture: [`ai-docs/ARCHITECTURE.md`](ai-docs/ARCHITECTURE.md)
44
+
45
+ ## Module / Package Structure
46
+
47
+ ```text
48
+ src/meetings/ — registered plugin, discovery, registration, and meeting collection
49
+ src/meeting/ — one meeting lifecycle, media, controls, and events
50
+ src/meeting-info/ — destination resolution and meeting metadata
51
+ src/locus-info/, hashTree/ — realtime Locus normalization and incremental synchronization
52
+ src/member/, members/ — participant models, roster, mutations, and events
53
+ src/media/, multistream/, roap/, reachability/ — WebRTC setup, negotiation, routing, and probes
54
+ src/reconnection-manager/ — bounded recovery and rejoin orchestration
55
+ src/breakouts/, interpretation/, annotation/, aiEnableRequest/, webinar/ — in-meeting features
56
+ src/recording-controller/, controls-options-manager/, personal-meeting-room/, reactions/ — controls
57
+ src/interceptors/, metrics/ — request middleware and behavioral telemetry
58
+ ```
59
+
60
+ → Canonical module routing: [`ai-docs/SPEC_INDEX.md`](ai-docs/SPEC_INDEX.md)
61
+
62
+ ## Critical Rules
63
+
64
+ 1. Code and mirrored unit tests are the behavioral source of truth; retained legacy docs are migration inputs, not authority when they conflict.
65
+ 2. Ask before coding. Present the affected contracts, plan, and test scope, then wait for approval.
66
+ 3. Load the owning module spec and `ai-docs/RULES.md`; do not load every module document.
67
+ 4. Preserve the `webex.meetings` registration and package exports in `src/index.ts`; public changes are semver-sensitive.
68
+ 5. Route Webex HTTP calls through existing request/plugin abstractions and preserve interceptor behavior.
69
+ 6. Preserve event scope, ordering, listener cleanup, and correlation identifiers across async flows.
70
+ 7. Treat tokens, identities, participant data, media, transcripts, and meeting URLs as sensitive; never add them to logs.
71
+ 8. Match `src/{area}/` changes with `test/unit/spec/{area}/` tests, using Sinon and `@webex/test-helper-chai` conventions.
72
+ 9. Update the canonical spec in the same merge as behavior or contract changes.
73
+ 10. Never commit secrets, disable quality gates, overwrite protected specs, publish, or deploy without explicit approval.
74
+
75
+ ## Essential Commands
76
+
77
+ | Role | Command |
78
+ |---|---|
79
+ | Install | `yarn install` |
80
+ | Build | `yarn workspace @webex/plugin-meetings build:src` |
81
+ | Unit test | `yarn workspace @webex/plugin-meetings test:unit` |
82
+ | Targeted unit test | `yarn workspace @webex/plugin-meetings test:unit --targets meeting/brbState.ts` |
83
+ | Browser test | `yarn workspace @webex/plugin-meetings test:browser` |
84
+ | Lint | `yarn workspace @webex/plugin-meetings test:style` |
85
+
86
+ → Toolchain and setup: [`ai-docs/GETTING_STARTED.md`](ai-docs/GETTING_STARTED.md) · test routing: [`ai-docs/TEST_INDEX.md`](ai-docs/TEST_INDEX.md)
87
+
88
+ ## Common Gotchas
89
+
90
+ 1. `--targets` is relative to `test/unit/spec/`; a filename alone or a repository-relative path selects the wrong target.
91
+ 2. Plugin-meetings unit tests are slow. For a narrowly selected test set, temporarily add Mocha `.only`, run it, and remove every `.only` before finishing.
92
+ 3. Locus full state, deltas, and hash-tree updates are alternate inputs to the same client projection; do not apply them as unrelated state.
93
+ 4. Meeting media setup spans permission, local streams, ROAP, remote streams, and reconnection; cleanup is part of the contract.
94
+ 5. Event constants and raw wire values coexist in this legacy package. Search both before changing a state/event condition.
95
+ 6. Retained `README.md`, `UPGRADING.md`, and feature READMEs may lag current behavior; verify claims against current source and tests.
96
+
97
+ The pre-SDD package rule is retained exactly: plugin-meetings unit tests are slow, so always run only the tests you care about. To isolate a single case temporarily:
98
+
99
+ ```javascript
100
+ it.only('should do something', () => {
101
+ // test code
102
+ });
103
+ ```
104
+
105
+ Always remove `.only` once you finish running the tests.
106
+
107
+ ## Pre-Commit Checklist
108
+
109
+ - [ ] Node 22.14 is active and the affected package builds.
110
+ - [ ] Focused positive and negative tests pass; broader tests are run in proportion to risk.
111
+ - [ ] No `.only` remains in any test.
112
+ - [ ] Public exports, events, Locus/media behavior, cleanup, and error propagation are preserved or explicitly specified.
113
+ - [ ] The affected canonical module spec and contract indexes are updated in the same change.
114
+ - [ ] No token, credential, participant PII, raw transcript, or sensitive URL is logged.
115
+
116
+ ## Prompt Overrides (`/adhoc`, `/quick`)
117
+
118
+ - `/adhoc` skips workflow scaffolding and `/quick` reduces it; neither bypasses correctness, security, test, or spec-currency rules.
119
+
120
+ ## External Source Access
121
+
122
+ | Provider class | Source / host pattern | Preferred access | If unavailable |
123
+ |---|---|---|---|
124
+ | source host | `github.com/webex/webex-js-sdk` | connector, CLI, or repository checkout | Stop before relying on unavailable remote-only evidence |
125
+ | developer/API docs | `developer.webex.com`, generated SDK API site | authenticated/public browser or supplied source | Use current local code for behavior; never guess remote contracts |
126
+ | Webex services | device, Mercury, Locus, meeting and media services | configured integration/test environment | Keep unit work mocked; ask before integration claims |
127
+
128
+ Commit and PR history are excluded from this bootstrap by repository-owner decision.
129
+
130
+ ## Strict Compliance Mode (automation)
131
+
132
+ Load the routed specs required by the task, apply `.sdd/manifest.json` trust state, and stop on the first unresolved protected-spec, conformance, coverage, or independent-validation gate.
133
+
134
+ ---
135
+ **SDD coverage:** Per-module trust lives in `.sdd/manifest.json` and is mirrored in `ai-docs/SPEC_INDEX.md`. `Partial` specs are hints and `Untracked` modules require code cross-checking until promoted.
@@ -0,0 +1,207 @@
1
+ <!-- sdd-generated-metadata
2
+ doc_kind: standing-doc
3
+ generated_from: architecture@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-09-08T00:00:00Z
8
+ validation_status: not-run
9
+ -->
10
+ # ARCHITECTURE — @webex/plugin-meetings
11
+
12
+ > Start here → root [`AGENTS.md`](../AGENTS.md) · router [`SPEC_INDEX.md`](SPEC_INDEX.md). This document describes package-level ownership; source-local module specs hold detailed behavior.
13
+
14
+ ## Design Overview
15
+
16
+ The package is a browser-oriented library embedded in a Webex SDK instance. `src/index.ts` registers `Meetings` as `webex.meetings`, installs request interceptors, and exports the selected public types, helpers, stream factories, and errors. The registered `Meetings` plugin owns discovery, device/Mercury registration, the meeting collection, and construction of `Meeting` objects.
17
+
18
+ A `Meeting` is the central per-call coordinator. It combines normalized Locus state, members, feature controllers, local and remote media, ROAP negotiation, reachability, reconnection, requests, events, and telemetry. Capability modules remain separate so their state and server contracts can be tested independently, but they are composed by the meeting object and consume the same Webex host and Locus identity.
19
+
20
+ The package persists no datastore. It maintains in-memory client projections and caches that are refreshed by Webex HTTP responses, Mercury events, Locus full/delta/hash-tree updates, and media callbacks. This split keeps remote services authoritative while making the SDK responsive to realtime change.
21
+
22
+ ## Component Inventory & Responsibilities
23
+
24
+ | Component | Responsibility | Docs |
25
+ |---|---|---|
26
+ | `src/meetings/` | Plugin registration lifecycle, discovery, and meeting collection | `src/meetings/ai-docs/meetings-spec.md` |
27
+ | `src/meeting/` | One meeting's lifecycle, controls, media, state, and events | `src/meeting/ai-docs/meeting-spec.md` |
28
+ | `src/meeting-info/` | Resolve destinations and normalize meeting metadata | `src/meeting-info/ai-docs/meeting-info-spec.md` |
29
+ | `src/locus-info/` | Convert Locus inputs into scoped client-state callbacks | `src/locus-info/ai-docs/locus-info-spec.md` |
30
+ | `src/hashTree/` | Reconcile incremental Locus datasets | `src/hashTree/ai-docs/hash-tree-spec.md` |
31
+ | `src/member/`, `src/members/` | Represent one participant and manage the roster | `src/member/ai-docs/member-spec.md`, `src/members/ai-docs/members-spec.md` |
32
+ | `src/media/`, `src/multistream/`, `src/roap/` | Construct connections, allocate streams, and negotiate SDP | `src/media/ai-docs/media-spec.md`, `src/multistream/ai-docs/multistream-spec.md`, `src/roap/ai-docs/roap-spec.md` |
33
+ | `src/reachability/`, `src/reconnection-manager/` | Probe routes and recover failed media/meetings | `src/reachability/ai-docs/reachability-spec.md`, `src/reconnection-manager/ai-docs/reconnection-manager-spec.md` |
34
+ | `src/breakouts/`, `src/interpretation/`, `src/annotation/`, `src/aiEnableRequest/`, `src/webinar/` | Feature-specific meeting workflows | owning source-local specs |
35
+ | `src/recording-controller/`, `src/controls-options-manager/`, `src/personal-meeting-room/`, `src/reactions/` | Focused meeting controls and data catalogs | owning source-local specs |
36
+ | `src/interceptors/`, `src/metrics/` | Request middleware and behavioral telemetry | owning source-local specs |
37
+
38
+ ## Component Interaction
39
+
40
+ ```mermaid
41
+ flowchart LR
42
+ App[SDK consumer] --> Entry[src/index.ts]
43
+ Entry --> Meetings[Meetings]
44
+ Meetings --> Info[meeting-info]
45
+ Meetings --> Meeting[Meeting]
46
+ Meetings --> Device[device and Mercury]
47
+ Meeting --> Locus[locus-info and hashTree]
48
+ Locus --> Members[member and members]
49
+ Meeting --> Media[media]
50
+ Media --> ROAP[roap]
51
+ Media --> Multi[multistream]
52
+ Media --> Reach[reachability]
53
+ Meeting --> Recovery[reconnection-manager]
54
+ Meeting --> Features[breakouts / interpretation / annotation / AI / webinar / controls]
55
+ Entry --> Middleware[interceptors]
56
+ Meetings --> Metrics[metrics]
57
+ Meeting --> Metrics
58
+ ```
59
+
60
+ Consumers enter through the registered `webex.meetings` plugin or package exports. `Meetings` resolves a destination, creates or finds a `Meeting`, and coordinates registration and Mercury delivery. The meeting applies Locus updates, updates roster and feature projections, negotiates media through ROAP/internal-media-core, emits scoped events, and records behavioral metrics.
61
+
62
+ ## Execution & Flow
63
+
64
+ 1. Importing `src/index.ts` registers the plugin and three request interceptors with `@webex/webex-core`.
65
+ 2. The SDK initializes `Meetings`, which builds collections/request helpers and registers device and Mercury listeners.
66
+ 3. A consumer creates or receives a meeting; meeting-info resolution supplies Locus/meeting identity and a `Meeting` enters the collection.
67
+ 4. Join and media operations call Webex services, apply the returned Locus state, negotiate ROAP/SDP, and publish local/remote stream readiness.
68
+ 5. Mercury/Locus updates flow through `locus-info` and feature controllers; teardown removes listeners, timers, media connections, and collection entries.
69
+
70
+ Evidence: `src/index.ts`, `src/meetings/index.ts`, `src/meeting/index.ts`, `src/locus-info/index.ts`, `src/media/index.ts`.
71
+
72
+ ## Dependencies
73
+
74
+ | Dependency | Type | How used | Failure / version handling |
75
+ |---|---|---|---|
76
+ | `@webex/webex-core` | workspace peer/internal | Plugin host, requests, services, interceptors, base classes | Request failures propagate through typed errors/interceptors |
77
+ | Device and Mercury plugins | workspace internal | Device identity and realtime event delivery | Registration is staged and failure-aware; teardown unregisters listeners |
78
+ | `@webex/internal-media-core` | pinned external | WebRTC media connections and multistream primitives | Media errors/timeouts are surfaced and reconnection is bounded |
79
+ | `@webex/media-helpers` | workspace internal | Public local/remote stream factories and types | Public re-exports are semver-sensitive |
80
+ | Locus/meeting/webinar/AI services | external Webex services | Meeting state and mutations | HTTP errors are not converted into success; retry only where explicitly implemented |
81
+ | `jose`, `jwt-decode` | external libraries | Data-channel token inspection/authentication | Expiry is checked; refresh retries are bounded |
82
+
83
+ ### State Model
84
+
85
+ - `Meetings` owns registration state and maps meeting keys/identifiers to `Meeting` instances.
86
+ - Each `Meeting` owns its Locus projection, members, feature controllers, media connections/streams, mute/BRB/control state, and timers.
87
+ - Locus full state, delta events, and hash-tree datasets converge into the same projection; the remote Locus service remains authoritative.
88
+ - Feature modules derive state from meeting/Locus data and clear listeners and collections when the meeting is destroyed.
89
+
90
+ ## Cross-Cutting Concerns
91
+
92
+ - **Security:** Webex credentials and data-channel tokens enter through the host/request layer; identity, participant data, meeting URLs, media, and transcripts are sensitive. Authorization remains enforced by remote services and capability/policy fields.
93
+ - **Observability:** modules use the shared logger proxy and metrics helpers with correlation identifiers. Behavioral and call-analyzer telemetry should describe outcomes without logging tokens or raw sensitive payloads.
94
+
95
+ ## Non-Functional Posture
96
+
97
+ This is a published client library used in browsers and SDK hosts. Preserve package exports, event names/payloads, async semantics, and browser compatibility. Avoid new runtime dependencies and unbounded timers/listeners; measure performance-critical media or event-path changes rather than inventing targets.
98
+
99
+ ## Dependency / Interaction Topology
100
+
101
+ ```mermaid
102
+ flowchart TD
103
+ Meetings -->|constructs/calls| Meeting
104
+ Meetings -->|HTTP| MeetingInfo
105
+ Meetings -->|events| Mercury
106
+ Meeting -->|state| LocusInfo
107
+ LocusInfo -->|incremental data| HashTree
108
+ LocusInfo -->|roster changes| Members
109
+ Meeting -->|connect/close| Media
110
+ Media -->|offer/answer| Roap
111
+ Media -->|remote tracks| Multistream
112
+ Meeting -->|recover| Reconnection
113
+ Meeting -->|compose| Features
114
+ Meetings -->|telemetry| Metrics
115
+ Meeting -->|telemetry| Metrics
116
+ ```
117
+
118
+ | From | To | Kind | Purpose |
119
+ |---|---|---|---|
120
+ | SDK consumer | `Meetings`/`Meeting` | call/event | Create, join, control, observe, and leave meetings |
121
+ | `Meetings` | device/Mercury/meeting-info | call/event | Register and discover meetings and realtime updates |
122
+ | `Meeting` | Locus/member/feature modules | call/event | Apply remote state and expose scoped capability state |
123
+ | `Meeting` | media/ROAP/multistream | async call/event | Establish and update WebRTC media |
124
+ | media callbacks | reconnection manager | event/call | Start bounded recovery or rejoin |
125
+ | core modules | metrics | call | Submit outcome and diagnostic telemetry |
126
+
127
+ ## Object / Data Ownership
128
+
129
+ | Domain object | System-of-record / owning component | Read by |
130
+ |---|---|---|
131
+ | Remote meeting/Locus state | Webex Locus service; projected by `locus-info` | `Meeting`, members, features, consumer events |
132
+ | Meeting collection and registration state | `meetings` in memory | SDK consumers and event routing |
133
+ | Per-meeting client state | `meeting` in memory | feature/media controllers and consumers |
134
+ | Participant projection | `member`/`members` from Locus | meeting, breakouts, interpretation, Voicea/transcription helpers |
135
+ | Media connection and slots | `media`/`multistream` | meeting and stream consumers |
136
+ | Feature projection | owning feature module | meeting and SDK consumer |
137
+
138
+ ## Caching Catalog
139
+
140
+ | Cache | Backend | What it holds | TTL | Invalidation trigger |
141
+ |---|---|---|---|---|
142
+ | Meeting collection | in-memory collection | active `Meeting` instances by meeting identifiers | meeting lifetime | leave/destroy/unregister and collection removal |
143
+ | Meeting-info collection | in-memory collection | resolved metadata | process lifetime/explicit replacement | a refreshed response or collection lifecycle |
144
+ | Locus route token map | interceptor memory | route tokens keyed by Locus id | process lifetime | response update or interceptor lifecycle |
145
+ | Feature collections | in-memory collections | breakout, interpretation, webinar, and roster projections | meeting lifetime | Locus update or feature cleanup |
146
+
147
+ ## Observability Patterns
148
+
149
+ - **Logging:** use `src/common/logs/logger-proxy.ts` and correlation-aware context; do not use console logging or record credentials, tokens, participant PII, raw transcript/media, or full sensitive URLs.
150
+ - **Metrics:** use `src/metrics/index.ts` and existing call-analyzer helpers/constants; retain established names and flatten fields predictably.
151
+ - **Audit:** privileged actions are represented by remote Locus/service mutations and their outcome metrics; the package owns no durable audit store.
152
+
153
+ ## Infrastructure Matrix
154
+
155
+ | Category | In use | Notes |
156
+ |---|---|---|
157
+ | Datastores | none owned | Client projections are in memory; Webex services own persistence |
158
+ | Messaging / streaming | Mercury events, data channels, WebRTC media | Host plugins and internal-media-core provide transport |
159
+ | Cloud / platform services | Webex device, Locus, meeting-info, webinar, reachability, metrics | Accessed through Webex core request/service abstractions |
160
+
161
+ ## Shared / Base Libraries
162
+
163
+ | Library | What modules inherit/use | Version floor |
164
+ |---|---|---|
165
+ | `@webex/webex-core` | plugin registration, request and service access, base plugin/interceptor classes | workspace version |
166
+ | package `src/common/` | collections, events, logging, queue, errors, browser/config helpers | package-local |
167
+ | `lodash` | guarded collection/object utilities | package manifest range |
168
+ | `@webex/internal-media-core` | WebRTC/media primitives | pinned exact version in `package.json` (`dependencies`) |
169
+
170
+ ## Package Map & Inter-Package Dependencies
171
+
172
+ - Workspace packages live under repository package globs; this package is the published meetings capability.
173
+ - It consumes internal device, Mercury, metrics, user, support, conversation, Voicea/LLM, people/rooms, media-helper, common, and core packages listed in `package.json`.
174
+ - Workspace dependencies use `workspace:*`; external pinned/ranged dependencies follow the root release process. The package must not introduce cycles through reverse imports.
175
+
176
+ ## Release & Versioning
177
+
178
+ - `@webex/plugin-meetings` builds to `dist/index.js` with declarations under `dist/types` and publishes through the repository npm release workflow.
179
+ - Treat exports in `src/index.ts`, consumer-visible class methods, events, types, and error shapes as semver-sensitive. Deprecate before removal and update consumer docs/specs and changelog material in the same release change.
180
+
181
+ ## Host Integration & Theming
182
+
183
+ - The host imports the package, after which `registerPlugin('meetings', Meetings, ...)` mounts `webex.meetings` and request interceptors.
184
+ - The host must provide initialized core/device/Mercury/request services and browser media capabilities. This package has no theming or UI-provider contract.
185
+
186
+ ## Cross-Repo Dependency Graph
187
+
188
+ - **Internal:** Webex SDK workspace packages provide core hosting, identity/device, Mercury, metrics, media helpers, people/rooms, support, Voicea, and LLM integration.
189
+ - **Cross-project:** published `@webex/*` and media packages exchange TypeScript/JavaScript APIs and event/request payloads.
190
+ - **External read-only:** developer/API documentation and sample application are consumer references, not behavior truth for this bootstrap.
191
+ - **External services:** Webex Locus, meeting-info, device, webinar, AI approval, reachability, and telemetry services.
192
+
193
+ ## Security Architecture
194
+
195
+ The application/SDK host owns authentication and supplies credentialed request access. Interceptors attach or refresh route/data-channel tokens at request boundaries; modules use remote capability and policy fields before privileged actions. TLS/WebRTC transports are supplied by the browser and Webex infrastructure. The package keeps only in-memory projections and must redact identity, tokens, participant data, transcript/media content, and sensitive meeting URLs from diagnostics.
196
+
197
+ ## Architecture Reference Links
198
+
199
+ | Reference | Location | When to read |
200
+ |---|---|---|
201
+ | Migration decision | `adr/0001-migrate-existing-docs-into-sdd.md` | Why legacy docs are retained while canonical specs are generated |
202
+ | Repo patterns | `patterns/` | Before adding requests, event emitters, constants, or tests |
203
+ | Enforceable rules | `RULES.md` | Before any code or contract change |
204
+
205
+ ## WS6 References
206
+
207
+ No repository-local WS6/platform architecture artifact was found or supplied. Current local code and tests remain the package-level evidence source.