@webex/plugin-meetings 3.12.0-next.16 → 3.12.0-next.161
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 +24 -9
- 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 +1688 -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/multistream/remoteMediaManager.js +32 -4
- package/dist/multistream/remoteMediaManager.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/multistream/remoteMediaManager.d.ts +18 -0
- 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 +26 -5
- 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 +946 -120
- 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/multistream/remoteMediaManager.ts +23 -1
- 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 +234 -5
- 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 +2838 -109
- 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 +189 -17
- 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/multistream/remoteMediaManager.ts +46 -0
- 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
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: standing-doc
|
|
3
|
+
generated_from: security@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
|
+
# SECURITY — @webex/plugin-meetings
|
|
11
|
+
|
|
12
|
+
## Trust Boundaries
|
|
13
|
+
|
|
14
|
+
```mermaid
|
|
15
|
+
flowchart LR
|
|
16
|
+
App[SDK consumer] -->|public calls/data| Plugin[plugin-meetings]
|
|
17
|
+
Host[Webex SDK credentials/services] --> Plugin
|
|
18
|
+
Plugin -->|authenticated HTTPS| Services[Webex services]
|
|
19
|
+
Services -->|Mercury/Locus/data-channel events| Plugin
|
|
20
|
+
Browser[WebRTC permissions/devices] --> Media[media modules]
|
|
21
|
+
Media -->|encrypted media/signaling| WebexMedia[Webex media infrastructure]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Consumer input, remote service/event payloads, browser media, and host credentials cross distinct trust boundaries. Validate and normalize at existing request/parser/controller boundaries.
|
|
25
|
+
|
|
26
|
+
## Authentication & Authorization Model
|
|
27
|
+
|
|
28
|
+
- The Webex SDK host owns user credentials and authenticated request access; this package must not mint or persist primary credentials.
|
|
29
|
+
- Device and participant identity, Locus route tokens, and data-channel auth tokens are attached/refreshed through existing host and interceptor paths.
|
|
30
|
+
- Privileged actions such as host controls, breakout management, recording, interpretation, webinar, and AI approval depend on current capability/role/policy state plus server enforcement.
|
|
31
|
+
|
|
32
|
+
## Secret & Credential Handling
|
|
33
|
+
|
|
34
|
+
- Never commit `.env` values, test-user credentials, access/refresh tokens, JWTs, route tokens, data-channel tokens, meeting passwords, or Sauce Labs secrets.
|
|
35
|
+
- Do not log raw authorization headers or token bodies. Token-expiry inspection is limited to middleware behavior in `src/interceptors/`.
|
|
36
|
+
- Use synthetic fixtures in tests and managed configuration for browser/integration runs.
|
|
37
|
+
|
|
38
|
+
## Data Classification & Handling
|
|
39
|
+
|
|
40
|
+
| Data | Classification | Handling |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| credentials/tokens/passwords | secret | memory only; redact from logs, errors, metrics, and docs |
|
|
43
|
+
| participant/device identity and meeting URLs | sensitive | minimum needed lifetime; do not expand public exposure |
|
|
44
|
+
| transcript/captions, reactions, annotation, media | sensitive content | process only for enabled feature; never emit raw content as telemetry |
|
|
45
|
+
| state/capability/quality metrics | operational | use bounded fields/tags; exclude content and identifiers unless existing policy permits |
|
|
46
|
+
|
|
47
|
+
Participant email removal documented in `README.md` is a privacy constraint; use participant identity and the People API rather than reintroducing email into roster projections.
|
|
48
|
+
|
|
49
|
+
## Input Validation & Output Encoding Posture
|
|
50
|
+
|
|
51
|
+
- Locus/full/delta/hash-tree, service responses, data-channel messages, SDP, and consumer options are external input. Reuse current parsers, typed constants, guards, and error paths.
|
|
52
|
+
- Preserve URL/request construction helpers and do not interpolate untrusted values into logs or markup.
|
|
53
|
+
- This package renders no UI/HTML; host applications remain responsible for encoding displayed names, transcript, chat, annotation, and error content.
|
|
54
|
+
|
|
55
|
+
## Transport & Headers
|
|
56
|
+
|
|
57
|
+
- Webex core performs authenticated HTTPS requests; browser/media-core handles WebRTC signaling/media transport.
|
|
58
|
+
- `LocusRouteTokenInterceptor` and `DataChannelAuthTokenInterceptor` own their headers. Do not attach those tokens outside the intended request hosts/routes.
|
|
59
|
+
- Retry middleware must remain bounded and honor terminal authentication/authorization failures.
|
|
60
|
+
|
|
61
|
+
## Session & Cookie Posture
|
|
62
|
+
|
|
63
|
+
The package owns no browser cookie or server session store. Its operational session is the in-memory SDK/meeting lifecycle. Teardown must remove listeners, timers, token references, media objects, and feature state.
|
|
64
|
+
|
|
65
|
+
## Known Sensitive Areas & Accepted Risks
|
|
66
|
+
|
|
67
|
+
- Realtime diagnostic payloads can contain participant/meeting details; log summaries, not payloads.
|
|
68
|
+
- Captions/transcripts and AI/interpretation workflows handle user content and require feature/policy gates.
|
|
69
|
+
- Media permissions and device access are browser-user decisions; do not bypass prompts or retain streams after teardown.
|
|
70
|
+
- No additional package-specific accepted security risk was supplied during bootstrap.
|
|
71
|
+
|
|
72
|
+
## Reporting & Review
|
|
73
|
+
|
|
74
|
+
Security-sensitive changes require explicit approval, focused negative tests, and review of `src/interceptors/`, request boundaries, capability gates, logs/metrics, and cleanup. Follow the repository security-reporting process; do not publish findings automatically.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: standing-doc
|
|
3
|
+
generated_from: service-state@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
|
+
# SERVICE STATE — @webex/plugin-meetings
|
|
11
|
+
|
|
12
|
+
## Current Endpoints
|
|
13
|
+
|
|
14
|
+
This package owns no endpoint. Current request families are device registration, active meetings/preferences/geo hints, meeting-info/static links, Locus lifecycle and controls, media/ROAP/TURN, member mutations, breakouts, interpretation/AI/webinar/recording, PMR, reachability, and metrics. Exact URLs are resolved by request helpers and Webex service discovery in current source.
|
|
15
|
+
|
|
16
|
+
## Current Events
|
|
17
|
+
|
|
18
|
+
- Mercury/Locus events update meeting collections and per-meeting state.
|
|
19
|
+
- Meeting events cover lifecycle, media, mute/share, controls, transcription/captions, and feature state.
|
|
20
|
+
- Members, breakouts, interpretation, AI approval, annotation, webinar, and data-channel events are meeting scoped.
|
|
21
|
+
- Browser/media-core callbacks report permissions, connection/track readiness, degradation, and closure.
|
|
22
|
+
|
|
23
|
+
Authoritative anchors: `src/constants.ts`, `src/common/events/`, `src/meetings/index.ts`, `src/meeting/index.ts`, and owning feature event/constants files.
|
|
24
|
+
|
|
25
|
+
## Data Stores
|
|
26
|
+
|
|
27
|
+
No durable datastore is owned. In-memory stores include meeting and meeting-info collections, Locus/member/feature projections, media/slot objects, route-token maps, timers, queues, and metric setup state. Their lifecycle is SDK/plugin/meeting scoped.
|
|
28
|
+
|
|
29
|
+
## External Dependencies
|
|
30
|
+
|
|
31
|
+
| Dependency | Purpose | Degraded/failure behavior |
|
|
32
|
+
|---|---|---|
|
|
33
|
+
| Webex device and Mercury | identity/registration and realtime events | registration stage fails or events stop; unregister remains safe |
|
|
34
|
+
| Locus/meeting-info services | meeting identity, state, and mutations | typed/request failure; current projection is not fabricated |
|
|
35
|
+
| media infrastructure/internal-media-core | WebRTC negotiation and streams | media errors, bounded recovery/rejoin, cleanup |
|
|
36
|
+
| reachability/STUN/TURN | route selection and network characterization | report failure/partial reachability; do not claim success |
|
|
37
|
+
| feature services/data channels | breakouts, AI, webinar, interpretation, annotation | capability-gated failure visible to caller/event consumer |
|
|
38
|
+
|
|
39
|
+
## Rate Limits & Quotas
|
|
40
|
+
|
|
41
|
+
No package-local numeric rate limit or quota is declared. Respect server responses and existing retry/backoff; do not invent retry budgets or add polling without approval.
|
|
42
|
+
|
|
43
|
+
## Key Metrics & Performance Targets
|
|
44
|
+
|
|
45
|
+
- Behavioral metrics are named in `src/metrics/constants.ts` and submitted through `src/metrics/index.ts`.
|
|
46
|
+
- Meeting/media modules also submit call-analyzer and quality/outcome telemetry through existing helpers.
|
|
47
|
+
- No package-specific numeric SLO or coverage threshold was supplied. Measure latency/quality regressions and preserve bounded retries, timers, and listener counts.
|
|
48
|
+
|
|
49
|
+
## Feature Flags (current)
|
|
50
|
+
|
|
51
|
+
Capability and policy fields from Webex/Locus gate meetings, breakouts, interpretation, annotation, webinar, reactions, AI approval, recording, multistream, and media behaviors. Configuration defaults live in `src/config.ts` and `src/common/config.ts`; do not duplicate mutable flag names here.
|
|
52
|
+
|
|
53
|
+
## Compliance / Certifications
|
|
54
|
+
|
|
55
|
+
The package follows repository security/privacy rules and Cisco licensing. No package-specific certification claim was found; do not infer one.
|
|
56
|
+
|
|
57
|
+
## Maintenance
|
|
58
|
+
|
|
59
|
+
Refresh this document when a service family, event source, store lifetime, rate-limit rule, metric family, or capability gate changes. Put operation detail in the owning module spec.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: standing-doc
|
|
3
|
+
generated_from: spec-index@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
|
+
# Spec Index — @webex/plugin-meetings
|
|
11
|
+
|
|
12
|
+
> Root [`AGENTS.md`](../AGENTS.md) · system [`ARCHITECTURE.md`](ARCHITECTURE.md). This router mirrors `.sdd/manifest.json`; load only the docs needed for the task.
|
|
13
|
+
|
|
14
|
+
## Module Registry
|
|
15
|
+
|
|
16
|
+
| Module | Responsibility | Manifest coverage state | Start here |
|
|
17
|
+
|---|---|---|---|
|
|
18
|
+
| `src/meetings/` | Registered plugin, meeting discovery, registration, and collection coordination | Partial | [`src/meetings/ai-docs/meetings-spec.md`](../src/meetings/ai-docs/meetings-spec.md) |
|
|
19
|
+
| `src/meeting/` | One meeting's lifecycle, media, controls, state, and events | Partial | [`src/meeting/ai-docs/meeting-spec.md`](../src/meeting/ai-docs/meeting-spec.md) |
|
|
20
|
+
| `src/meeting-info/` | Destination resolution and validated meeting metadata | Partial | [`src/meeting-info/ai-docs/meeting-info-spec.md`](../src/meeting-info/ai-docs/meeting-info-spec.md) |
|
|
21
|
+
| `src/locus-info/` | Normalized Locus full, delta, and hash-tree state | Partial | [`src/locus-info/ai-docs/locus-info-spec.md`](../src/locus-info/ai-docs/locus-info-spec.md) |
|
|
22
|
+
| `src/hashTree/` | Incremental Locus dataset synchronization | Partial | [`src/hashTree/ai-docs/hash-tree-spec.md`](../src/hashTree/ai-docs/hash-tree-spec.md) |
|
|
23
|
+
| `src/member/` | Individual participant projection | Partial | [`src/member/ai-docs/member-spec.md`](../src/member/ai-docs/member-spec.md) |
|
|
24
|
+
| `src/members/` | Participant roster, mutations, and member events | Partial | [`src/members/ai-docs/members-spec.md`](../src/members/ai-docs/members-spec.md) |
|
|
25
|
+
| `src/media/` | Media connection construction and readiness | Partial | [`src/media/ai-docs/media-spec.md`](../src/media/ai-docs/media-spec.md) |
|
|
26
|
+
| `src/multistream/` | Remote media groups and send/receive slot management | Partial | [`src/multistream/ai-docs/multistream-spec.md`](../src/multistream/ai-docs/multistream-spec.md) |
|
|
27
|
+
| `src/roap/` | ROAP signaling and TURN discovery | Partial | [`src/roap/ai-docs/roap-spec.md`](../src/roap/ai-docs/roap-spec.md) |
|
|
28
|
+
| `src/reachability/` | Cluster/protocol media reachability probing | Partial | [`src/reachability/ai-docs/reachability-spec.md`](../src/reachability/ai-docs/reachability-spec.md) |
|
|
29
|
+
| `src/reconnection-manager/` | Bounded media recovery and meeting rejoin | Partial | [`src/reconnection-manager/ai-docs/reconnection-manager-spec.md`](../src/reconnection-manager/ai-docs/reconnection-manager-spec.md) |
|
|
30
|
+
| `src/breakouts/` | Breakout sessions, rosters, host operations, and events | Partial | [`src/breakouts/ai-docs/breakouts-spec.md`](../src/breakouts/ai-docs/breakouts-spec.md) |
|
|
31
|
+
| `src/interpretation/` | Simultaneous-interpretation language and handoff workflows | Partial | [`src/interpretation/ai-docs/interpretation-spec.md`](../src/interpretation/ai-docs/interpretation-spec.md) |
|
|
32
|
+
| `src/annotation/` | Annotation data-channel state and commands | Partial | [`src/annotation/ai-docs/annotation-spec.md`](../src/annotation/ai-docs/annotation-spec.md) |
|
|
33
|
+
| `src/aiEnableRequest/` | Host approval workflow for enabling AI Assistant | Partial | [`src/aiEnableRequest/ai-docs/ai-enable-request-spec.md`](../src/aiEnableRequest/ai-docs/ai-enable-request-spec.md) |
|
|
34
|
+
| `src/webinar/` | Webinar practice-session and webcast controls | Partial | [`src/webinar/ai-docs/webinar-spec.md`](../src/webinar/ai-docs/webinar-spec.md) |
|
|
35
|
+
| `src/recording-controller/` | Meeting recording action orchestration | Partial | [`src/recording-controller/ai-docs/recording-controller-spec.md`](../src/recording-controller/ai-docs/recording-controller-spec.md) |
|
|
36
|
+
| `src/controls-options-manager/` | Derivation and mutation of meeting control capabilities | Partial | [`src/controls-options-manager/ai-docs/controls-options-manager-spec.md`](../src/controls-options-manager/ai-docs/controls-options-manager-spec.md) |
|
|
37
|
+
| `src/personal-meeting-room/` | Personal Meeting Room lookup and claim | Partial | [`src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md`](../src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md) |
|
|
38
|
+
| `src/reactions/` | Reaction catalogs, wire values, and normalized reaction data | Partial | [`src/reactions/ai-docs/reactions-spec.md`](../src/reactions/ai-docs/reactions-spec.md) |
|
|
39
|
+
| `src/interceptors/` | Locus routing/retry and data-channel authentication middleware | Partial | [`src/interceptors/ai-docs/interceptors-spec.md`](../src/interceptors/ai-docs/interceptors-spec.md) |
|
|
40
|
+
| `src/metrics/` | Behavioral metric normalization and submission | Partial | [`src/metrics/ai-docs/metrics-spec.md`](../src/metrics/ai-docs/metrics-spec.md) |
|
|
41
|
+
|
|
42
|
+
## Task Routing
|
|
43
|
+
|
|
44
|
+
| If the task is… | Load |
|
|
45
|
+
|---|---|
|
|
46
|
+
| Understanding the package | `ARCHITECTURE.md` |
|
|
47
|
+
| Changing a public export, method, event, or request | `CONTRACTS.md`, owning module spec, and `RULES.md` |
|
|
48
|
+
| Changing tokens, identity, participant data, transcripts, or media | `SECURITY.md` and the owning module spec |
|
|
49
|
+
| Changing lifecycle, Locus, or roster state | `meeting`, `meetings`, `locus-info`, or `members` spec as applicable |
|
|
50
|
+
| Changing WebRTC setup or recovery | affected `media`, `multistream`, `roap`, `reachability`, or `reconnection-manager` spec |
|
|
51
|
+
| Changing an in-meeting capability | owning feature spec plus `meeting` integration points |
|
|
52
|
+
| Changing request middleware or telemetry | `interceptors` or `metrics` spec and security rules |
|
|
53
|
+
| Adding or changing an implementation convention | matching file under `patterns/` |
|
|
54
|
+
|
|
55
|
+
For any `src/{module}/` task, load its source-local spec from the registry and cross-check current code whenever its manifest state is `Partial` or `Untracked`.
|
|
56
|
+
|
|
57
|
+
## Incident History
|
|
58
|
+
|
|
59
|
+
No package-local incident or RCA index was found. Commit and PR history are intentionally excluded from current-behavior evidence for this bootstrap.
|
|
60
|
+
|
|
61
|
+
## Phase-Based Loading Protocol
|
|
62
|
+
|
|
63
|
+
| Phase | Load |
|
|
64
|
+
|---|---|
|
|
65
|
+
| Orient | `AGENTS.md` and this router |
|
|
66
|
+
| Specify | affected module spec, `CONTRACTS.md`, and applicable security/rule docs |
|
|
67
|
+
| Build | affected module spec plus relevant patterns and tests |
|
|
68
|
+
| Verify | focused tests, generated-doc conformance, coverage, and independent validation evidence |
|
|
69
|
+
|
|
70
|
+
## Spec Registry
|
|
71
|
+
|
|
72
|
+
| Doc | Location | Purpose |
|
|
73
|
+
|---|---|---|
|
|
74
|
+
| Architecture | `ARCHITECTURE.md` | Package and component ownership/interactions |
|
|
75
|
+
| Contracts | `CONTRACTS.md` | Export, event, request, and dependency catalog |
|
|
76
|
+
| Data model | `DATA_MODEL.md` | Client-side object and collection ownership |
|
|
77
|
+
| Service state | `SERVICE_STATE.md` | Current services, events, flags, and metrics |
|
|
78
|
+
| Security | `SECURITY.md` | Trust boundaries and sensitive-data rules |
|
|
79
|
+
| Rules | `RULES.md` | Enforceable package constraints |
|
|
80
|
+
| Patterns | `patterns/` | Code-grounded implementation conventions |
|
|
81
|
+
| Tests | `TEST_INDEX.md` | Source-to-test routing and quality gates |
|
|
82
|
+
| Getting started | `GETTING_STARTED.md` | Toolchain and focused development loop |
|
|
83
|
+
| Glossary | `GLOSSARY.md` | Meetings-domain language |
|
|
84
|
+
| Review catalog | `REVIEW_CHECKLIST.md` | Core and conditional review checks |
|
|
85
|
+
| Decisions | `adr/` | Durable architectural rationale |
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: standing-doc
|
|
3
|
+
generated_from: test-index@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
|
+
# TEST INDEX — @webex/plugin-meetings
|
|
11
|
+
|
|
12
|
+
## Test Surface
|
|
13
|
+
|
|
14
|
+
| Tier | Command | What it covers |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| unit | `yarn workspace @webex/plugin-meetings test:unit` | source-mirrored behavior with Mocha/Sinon/test helpers |
|
|
17
|
+
| targeted unit | `yarn workspace @webex/plugin-meetings test:unit --targets meeting/brbState.ts` | one file/area relative to `test/unit/spec/` |
|
|
18
|
+
| browser/integration | `yarn workspace @webex/plugin-meetings test:browser` | browser/media/service integration through Karma |
|
|
19
|
+
| lint | `yarn workspace @webex/plugin-meetings test:style` | source style/static lint |
|
|
20
|
+
| build/type | `yarn workspace @webex/plugin-meetings build:src` | transpilation and TypeScript declarations |
|
|
21
|
+
|
|
22
|
+
## Where the Cases Live
|
|
23
|
+
|
|
24
|
+
Source paths under `src/{area}/` mirror unit tests under `test/unit/spec/{area}/`. Core areas with broad suites include `meeting`, `meetings`, `locus-info`, `members`, `media`, `multistream`, `breakouts`, `reachability`, `roap`, and interceptors. Feature areas have owning test directories when current behavior is covered.
|
|
25
|
+
|
|
26
|
+
When adding tests, follow the existing file's style, use Sinon and `@webex/test-helper-chai`, prefer `calledOnceWithExactly`, use fake timers for timer/retry behavior, and parameterize more than three similar cases.
|
|
27
|
+
|
|
28
|
+
## Coverage / Quality Gate
|
|
29
|
+
|
|
30
|
+
No package-specific numeric coverage or static-analysis threshold exists by repository-owner confirmation. This does not waive tests: behavior changes need focused positive/negative/cleanup coverage, package build, and lint proportional to risk. `.sdd/manifest.json` coverage describes documentation trust, not code-test percentage.
|
|
31
|
+
|
|
32
|
+
Plugin unit tests are slow. Use the smallest `--targets` value. The retained package rule permits temporary Mocha `.only` for a focused run, but every `.only` must be removed before completion.
|
|
33
|
+
|
|
34
|
+
## QA Dependencies & Environments
|
|
35
|
+
|
|
36
|
+
- Unit tests mock Webex/core/media dependencies and should not require production credentials.
|
|
37
|
+
- Browser/integration tests may require browser WebRTC, media permissions, Webex test users, remote services, and managed environment values.
|
|
38
|
+
- Node 22.14 is the repository development runtime. Do not commit `.env`, credentials, or test-user secrets.
|
|
39
|
+
|
|
40
|
+
## Where to Go Next
|
|
41
|
+
|
|
42
|
+
- Module-specific strategy and traceability: each source-local module spec in `SPEC_INDEX.md`
|
|
43
|
+
- Development loop: `GETTING_STARTED.md`
|
|
44
|
+
- Review gates: `REVIEW_CHECKLIST.md`
|
|
45
|
+
- Testing rules: `RULES.md`
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: reference-doc
|
|
3
|
+
generated_from: adr@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
|
+
# ADR-0001 — Migrate existing meetings docs into canonical SDD docs
|
|
11
|
+
|
|
12
|
+
> Root [`AGENTS.md`](../../AGENTS.md) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md) · system [`ARCHITECTURE.md`](../ARCHITECTURE.md).
|
|
13
|
+
|
|
14
|
+
| Field | Value |
|
|
15
|
+
|---|---|
|
|
16
|
+
| Status | Accepted |
|
|
17
|
+
| Date | 2026-08-18 |
|
|
18
|
+
| Deciders | repository owner and generator runtime |
|
|
19
|
+
| Supersedes / Superseded by | none |
|
|
20
|
+
| Generated from | `adr` @ SDLC template library `0.2.2` |
|
|
21
|
+
|
|
22
|
+
## Context
|
|
23
|
+
|
|
24
|
+
The package already contained an agent rule, a long consumer README, an upgrade guide, contributor guidance, and feature READMEs for breakouts, simultaneous interpretation, and AI-enablement approval. The rigorous brownfield workflow requires one canonical routed SDD surface without silently discarding reviewed intent. Current source and tests must remain behavioral truth, and the repository owner explicitly excluded commit/PR history from current-behavior evidence. Evidence: `AGENTS.md`, `README.md`, `UPGRADING.md`, `internal-README.md`, `src/breakouts/README.md`, `src/interpretation/README.md`, `src/aiEnableRequest/README.md`, `.sdd/manifest.json`.
|
|
25
|
+
|
|
26
|
+
## Decision
|
|
27
|
+
|
|
28
|
+
Use `migrate-existing`. Reorganize supported source content by meaning into the package-level `ai-docs/` standing documents and 23 source-local module specifications. Update the existing root `AGENTS.md` in place from its frozen checkpoint. Retain every legacy document unchanged after migration; do not delete or rewrite it. Where retained prose conflicts with current code, record the unit as corrected/stale and use current source/tests in the canonical spec.
|
|
29
|
+
|
|
30
|
+
### Recorded spec-source policy
|
|
31
|
+
|
|
32
|
+
This ADR is the durable decision record referenced by `.sdd/manifest.json` (`spec_source_policy.decision_record` and each module's `spec_sources[].decision_record`). The recorded fields resolve as follows.
|
|
33
|
+
|
|
34
|
+
| Manifest field | Value | Recorded here by |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| `mode` | `migrate-existing` | the Decision section above |
|
|
37
|
+
| `migrated_source_disposition` | `retain` | "Retain every legacy document unchanged after migration" |
|
|
38
|
+
| `decided_by` / `disposition_decided_by` | repository user | the Deciders row |
|
|
39
|
+
| `decided_at` / `disposition_decided_at` | 2026-08-18 | the Date row |
|
|
40
|
+
|
|
41
|
+
Each module also carries its own `source_policy`. A module records `migrate-existing` only when it had a pre-existing document to migrate — `src/meeting/` (`UPGRADING.md`), `src/breakouts/`, `src/interpretation/`, and `src/aiEnableRequest/` (their feature `README.md` files) — and the remaining 19 modules record `keep-separate` because there was nothing to migrate, not because a different policy was chosen for them. The single `conflict_status: resolved` entry is `src/breakouts/`, resolved as described above: the stale retained claim was superseded by current source and tests while the README itself was retained.
|
|
42
|
+
|
|
43
|
+
Reconciling a protected spec or a recorded source conflict therefore reads this committed file; no untracked working directory is required.
|
|
44
|
+
|
|
45
|
+
## Alternatives Considered
|
|
46
|
+
|
|
47
|
+
| Alternative | Pros | Cons | Why rejected |
|
|
48
|
+
|---|---|---|---|
|
|
49
|
+
| keep separate | no migration work | agents must choose between multiple documentation surfaces and legacy gaps remain | repository owner selected canonical migration |
|
|
50
|
+
| reconcile each conflict interactively | explicit conflict-by-conflict control | unnecessary for the one known stale breakout claim and old contributor commands once current-code authority was confirmed | current code/test authority and retention policy resolve these cases |
|
|
51
|
+
| migrate and delete old docs | one visible surface | loses stable consumer examples and historical upgrade context | repository owner explicitly chose retention |
|
|
52
|
+
|
|
53
|
+
## Consequences
|
|
54
|
+
|
|
55
|
+
- **Positive:** agents have a manifest-routed package index and source-local specs while supported legacy meaning remains represented.
|
|
56
|
+
- **Negative / cost:** retained docs can continue to drift and must be treated as migration/reference inputs rather than canonical behavior.
|
|
57
|
+
- **Agents must:** use `SPEC_INDEX.md` and `.sdd/manifest.json`, cross-check Partial/Untracked specs against current code, and update canonical docs with behavior changes.
|
|
58
|
+
|
|
59
|
+
## Revisit When
|
|
60
|
+
|
|
61
|
+
- The retained docs are deliberately retired, the module tree changes materially, or an independent validator finds unresolved source-fidelity conflicts.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: reference-doc
|
|
3
|
+
generated_from: pattern@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
|
+
# Pattern: Defensive error propagation
|
|
11
|
+
|
|
12
|
+
> Root [`AGENTS.md`](../../AGENTS.md) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md).
|
|
13
|
+
|
|
14
|
+
## When to use
|
|
15
|
+
|
|
16
|
+
**When to use:** When request, parser, token, or feature code encounters an invalid input or remote failure that affects the caller's operation.
|
|
17
|
+
|
|
18
|
+
## Correct
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
// from src/breakouts/request.ts
|
|
22
|
+
return this.request({
|
|
23
|
+
method: HTTP_VERBS.POST,
|
|
24
|
+
uri: `${url}/message`,
|
|
25
|
+
body: {
|
|
26
|
+
message,
|
|
27
|
+
groups: [params],
|
|
28
|
+
},
|
|
29
|
+
}).catch((error) => {
|
|
30
|
+
if (error.body && error.body.errorCode === 201409036 && error.statusCode === 409) {
|
|
31
|
+
LoggerProxy.logger.info(`Breakouts#broadcast --> no joined participants`);
|
|
32
|
+
} else {
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Handle only an explicitly understood exception; otherwise propagate the original/typed error. When parsing a security token, fail conservatively as in `src/interceptors/utils.ts`.
|
|
39
|
+
|
|
40
|
+
## Incorrect
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
return this.request(options).catch(() => undefined);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Why wrong:** It converts every failure into apparent success, hiding authentication, authorization, transport, and server errors and leaving callers with stale state.
|
|
47
|
+
|
|
48
|
+
## Where it appears
|
|
49
|
+
|
|
50
|
+
- `src/meetings/request.ts`, `src/meeting/request.ts`, `src/breakouts/request.ts`, `src/interceptors/dataChannelAuthToken.ts`, `src/interceptors/locusRetry.ts`, `src/reachability/index.ts`
|
|
51
|
+
|
|
52
|
+
## Edge cases / exceptions
|
|
53
|
+
|
|
54
|
+
- Best-effort reads may intentionally ignore a narrowly scoped optional cache failure, as the join-cookie read does; that exception must not hide the primary network operation.
|
|
55
|
+
- Error adapters may wrap a service error in a typed package error, but must retain the original detail needed for diagnostics/recovery.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: reference-doc
|
|
3
|
+
generated_from: pattern@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
|
+
# Pattern: Event-scope emission
|
|
11
|
+
|
|
12
|
+
> Root [`AGENTS.md`](../../AGENTS.md) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md).
|
|
13
|
+
|
|
14
|
+
## When to use
|
|
15
|
+
|
|
16
|
+
**When to use:** When a module exposes a meeting/media/realtime state change to parent modules or consumers.
|
|
17
|
+
|
|
18
|
+
## Correct
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
// from src/meeting/connectionStateHandler.ts
|
|
22
|
+
this.emit(
|
|
23
|
+
{file: 'connectionStateHandler', function: 'handleConnectionStateChange'},
|
|
24
|
+
ConnectionStateEvent.stateChanged,
|
|
25
|
+
{state: this.mediaConnectionState}
|
|
26
|
+
);
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Extend/use `EventsScope`, emit the declared event constant only after the normalized state changes, and supply the expected payload.
|
|
30
|
+
|
|
31
|
+
## Incorrect
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
consumer.emit('connection-changed', rawPeerConnection);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Why wrong:** It invents an event name, bypasses scoped logging, exposes an internal object, and can emit without a real state transition.
|
|
38
|
+
|
|
39
|
+
## Where it appears
|
|
40
|
+
|
|
41
|
+
- `src/locus-info/index.ts`, `src/meeting/connectionStateHandler.ts`, `src/multistream/receiveSlot.ts`, `src/multistream/remoteMedia.ts`, `src/reachability/index.ts`
|
|
42
|
+
|
|
43
|
+
## Edge cases / exceptions
|
|
44
|
+
|
|
45
|
+
- Behavioral telemetry uses metrics helpers rather than `EventsScope`.
|
|
46
|
+
- Remote Mercury/data-channel events must be parsed and mapped before consumer emission; do not relay arbitrary service payloads.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: reference-doc
|
|
3
|
+
generated_from: pattern@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
|
+
# Pattern: Source-to-test path mirroring
|
|
11
|
+
|
|
12
|
+
> Root [`AGENTS.md`](../../AGENTS.md) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md).
|
|
13
|
+
|
|
14
|
+
## When to use
|
|
15
|
+
|
|
16
|
+
**When to use:** When locating or adding package unit tests for a source module.
|
|
17
|
+
|
|
18
|
+
## Correct
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
src/locus-info/controlsUtils.ts
|
|
22
|
+
test/unit/spec/locus-info/controlsUtils.js
|
|
23
|
+
|
|
24
|
+
target: locus-info/controlsUtils.js
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Mirror the source area below `test/unit/spec/`, then pass a target relative to that spec directory.
|
|
28
|
+
|
|
29
|
+
## Incorrect
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
target: controlsUtils.js
|
|
33
|
+
target: packages/@webex/plugin-meetings/test/unit/spec/locus-info/controlsUtils.js
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Why wrong:** A bare filename loses the subdirectory and a repository-relative path violates the runner's target-root contract, so the intended test may not run.
|
|
37
|
+
|
|
38
|
+
## Where it appears
|
|
39
|
+
|
|
40
|
+
- `src/meeting/index.ts` ↔ `test/unit/spec/meeting/index.js`, `src/meetings/request.ts` ↔ `test/unit/spec/meetings/request.js`, `src/breakouts/index.ts` ↔ `test/unit/spec/breakouts/index.ts`, `src/interceptors/dataChannelAuthToken.ts` ↔ `test/unit/spec/interceptors/dataChannelAuthToken.ts`
|
|
41
|
+
|
|
42
|
+
## Edge cases / exceptions
|
|
43
|
+
|
|
44
|
+
- Some legacy test extensions differ from source (`.ts` versus `.js`); mirror the directory and behavior, not necessarily the extension.
|
|
45
|
+
- Shared fixture/helper files may live under `test/unit/spec/fixture/` or the nearest suite rather than mirroring a production file.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: reference-doc
|
|
3
|
+
generated_from: pattern@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
|
+
# Pattern: Stateless plugin request classes
|
|
11
|
+
|
|
12
|
+
> Root [`AGENTS.md`](../../AGENTS.md) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md).
|
|
13
|
+
|
|
14
|
+
## When to use
|
|
15
|
+
|
|
16
|
+
**When to use:** When a meeting capability needs a focused authenticated Webex HTTP boundary that does not own the feature's domain state.
|
|
17
|
+
|
|
18
|
+
## Correct
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
// from src/meetings/request.ts
|
|
22
|
+
export default class MeetingRequest extends StatelessWebexPlugin {
|
|
23
|
+
getActiveMeetings() {
|
|
24
|
+
return this.request({
|
|
25
|
+
api: API.LOCUS,
|
|
26
|
+
resource: RESOURCE.LOCI,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Keep state and event orchestration in the owning controller; the request class builds the request and returns/rejects its promise.
|
|
33
|
+
|
|
34
|
+
## Incorrect
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
class BreakoutController {
|
|
38
|
+
broadcast(url, body) {
|
|
39
|
+
return fetch(url, {method: 'POST', body: JSON.stringify(body)});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Why wrong:** This bypasses the Webex host request pipeline, credentials, interceptors, service routing, established errors, and test seams.
|
|
45
|
+
|
|
46
|
+
## Where it appears
|
|
47
|
+
|
|
48
|
+
- `src/meetings/request.ts`, `src/meeting/request.ts`, `src/breakouts/request.ts`, `src/members/request.ts`, `src/personal-meeting-room/request.ts`, `src/roap/request.ts`
|
|
49
|
+
|
|
50
|
+
## Edge cases / exceptions
|
|
51
|
+
|
|
52
|
+
- A helper may hold an injected Webex object without extending `StatelessWebexPlugin` when existing code does so, as in `src/reachability/request.ts`; it must still use `webex.request` and remain transport-focused.
|
|
53
|
+
- Debounce or a weak meeting reference may live in a request helper when it is required to build/serialize requests, but feature state stays in the controller.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: reference-doc
|
|
3
|
+
generated_from: pattern@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
|
+
# Pattern: Typed constants and enum wire values
|
|
11
|
+
|
|
12
|
+
> Root [`AGENTS.md`](../../AGENTS.md) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md).
|
|
13
|
+
|
|
14
|
+
## When to use
|
|
15
|
+
|
|
16
|
+
**When to use:** When declaring a closed set of meeting, event, control, or wire values consumed by TypeScript code.
|
|
17
|
+
|
|
18
|
+
## Correct
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
// from src/meeting/connectionStateHandler.ts
|
|
22
|
+
export const ConnectionStateEvent = {
|
|
23
|
+
stateChanged: 'connectionState:changed',
|
|
24
|
+
} as const;
|
|
25
|
+
export type ConnectionStateEvent = Enum<typeof ConnectionStateEvent>;
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Use the established `as const` plus `Enum` type pattern or a string enum when the runtime values are part of the protocol.
|
|
29
|
+
|
|
30
|
+
## Incorrect
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
function emitState(name: string) {
|
|
34
|
+
this.emit({}, name, {});
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Why wrong:** An unconstrained string permits unsupported values and makes refactoring drift from server/event contracts invisible to TypeScript.
|
|
39
|
+
|
|
40
|
+
## Where it appears
|
|
41
|
+
|
|
42
|
+
- `src/meeting/connectionStateHandler.ts`, `src/meetings/meetings.types.ts`, `src/annotation/constants.ts`, `src/recording-controller/enums.ts`, `src/reactions/reactions.type.ts`, `src/controls-options-manager/enums.ts`
|
|
43
|
+
|
|
44
|
+
## Edge cases / exceptions
|
|
45
|
+
|
|
46
|
+
- Incoming server data is still an untrusted string until validated against the declared values.
|
|
47
|
+
- Legacy code sometimes uses raw literals; searches and migrations must include both the typed constant and raw string form before changing behavior.
|
|
@@ -17,6 +17,7 @@ var _constants = require("../constants");
|
|
|
17
17
|
var AIEnableRequest = _webexCore.WebexPlugin.extend({
|
|
18
18
|
namespace: _constants.MEETINGS,
|
|
19
19
|
props: {
|
|
20
|
+
locusUrl: 'string',
|
|
20
21
|
approvalUrl: 'string',
|
|
21
22
|
selfParticipantId: 'string',
|
|
22
23
|
hasSubscribedToEvents: 'boolean'
|
|
@@ -41,6 +42,14 @@ var AIEnableRequest = _webexCore.WebexPlugin.extend({
|
|
|
41
42
|
this.set('hasSubscribedToEvents', true);
|
|
42
43
|
}
|
|
43
44
|
},
|
|
45
|
+
/**
|
|
46
|
+
* Update the locus url
|
|
47
|
+
* @param {string} locusUrl
|
|
48
|
+
* @returns {void}
|
|
49
|
+
*/
|
|
50
|
+
locusUrlUpdate: function locusUrlUpdate(locusUrl) {
|
|
51
|
+
this.locusUrl = locusUrl;
|
|
52
|
+
},
|
|
44
53
|
/**
|
|
45
54
|
* Listen to locus approval request events and trigger a new event with necessary details when an AI enablement approval request is received
|
|
46
55
|
* @returns {void}
|
|
@@ -50,7 +59,11 @@ var AIEnableRequest = _webexCore.WebexPlugin.extend({
|
|
|
50
59
|
this.listenTo(this.webex.internal.mercury, "event:".concat(_constants.LOCUSEVENT.APPROVAL_REQUEST), function (event) {
|
|
51
60
|
var _event$data, _event$data$approval;
|
|
52
61
|
if ((event === null || event === void 0 ? void 0 : (_event$data = event.data) === null || _event$data === void 0 ? void 0 : (_event$data$approval = _event$data.approval) === null || _event$data$approval === void 0 ? void 0 : _event$data$approval.resourceType) === _constants.AI_ENABLE_REQUEST.RESOURCE_TYPE) {
|
|
53
|
-
var _receivers$;
|
|
62
|
+
var _event$data2, _receivers$;
|
|
63
|
+
if ((event === null || event === void 0 ? void 0 : (_event$data2 = event.data) === null || _event$data2 === void 0 ? void 0 : _event$data2.locusUrl) !== _this.locusUrl) {
|
|
64
|
+
_this.webex.logger.info('AIEnableRequest: Ignoring approval request for different locus');
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
54
67
|
var _event$data$approval2 = event.data.approval,
|
|
55
68
|
receivers = _event$data$approval2.receivers,
|
|
56
69
|
initiator = _event$data$approval2.initiator,
|
|
@@ -178,7 +191,7 @@ var AIEnableRequest = _webexCore.WebexPlugin.extend({
|
|
|
178
191
|
method: _constants.HTTP_VERBS.PUT
|
|
179
192
|
});
|
|
180
193
|
},
|
|
181
|
-
version: "3.12.0-next.
|
|
194
|
+
version: "3.12.0-next.161"
|
|
182
195
|
});
|
|
183
196
|
var _default = exports.default = AIEnableRequest;
|
|
184
197
|
//# sourceMappingURL=index.js.map
|