@webex/plugin-meetings 3.12.0-llmrefactor.14 → 3.12.0-llmrefactor.15
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 +130 -4
- 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 +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/interpretation/index.js +46 -12
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/in-meeting-actions.js +2 -0
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +4 -0
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/util.js +3 -1
- package/dist/meeting/util.js.map +1 -1
- package/dist/meetings/index.js +8 -4
- package/dist/meetings/index.js.map +1 -1
- package/dist/types/meeting/in-meeting-actions.d.ts +2 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +20 -20
- package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
- package/src/annotation/ai-docs/annotation-spec.md +236 -0
- package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
- package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
- package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
- package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
- package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
- package/src/interpretation/index.ts +38 -1
- package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
- package/src/media/ai-docs/media-spec.md +267 -0
- package/src/meeting/ai-docs/meeting-spec.md +401 -0
- package/src/meeting/in-meeting-actions.ts +4 -0
- package/src/meeting/index.ts +4 -0
- package/src/meeting/util.ts +5 -2
- package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
- package/src/meetings/ai-docs/meetings-spec.md +296 -0
- package/src/meetings/index.ts +4 -0
- package/src/member/ai-docs/member-spec.md +196 -0
- package/src/members/ai-docs/members-spec.md +256 -0
- package/src/metrics/ai-docs/metrics-spec.md +185 -0
- package/src/multistream/ai-docs/multistream-spec.md +292 -0
- package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
- package/src/reachability/ai-docs/reachability-spec.md +261 -0
- package/src/reactions/ai-docs/reactions-spec.md +198 -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/roap/ai-docs/roap-spec.md +241 -0
- package/src/webinar/ai-docs/webinar-spec.md +243 -0
- package/test/unit/spec/interpretation/index.ts +93 -0
- package/test/unit/spec/meeting/in-meeting-actions.ts +2 -0
- package/test/unit/spec/meeting/index.js +5 -0
- package/test/unit/spec/meeting/utils.js +26 -15
- package/test/unit/spec/meetings/index.js +11 -0
|
@@ -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
CHANGED
|
@@ -1,9 +1,135 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
|
|
4
99
|
```javascript
|
|
5
100
|
it.only('should do something', () => {
|
|
6
101
|
// test code
|
|
7
102
|
});
|
|
8
103
|
```
|
|
9
|
-
|
|
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.
|