@webex/plugin-rooms 3.13.0-next.1 → 3.13.0-next.11

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.
@@ -0,0 +1,98 @@
1
+ ---
2
+ type: ADR
3
+ title: ADR-0001 - Retain the product README
4
+ description: SDD onboarding keeps README.md as product documentation and routes it only as context.
5
+ tags: [adr]
6
+ timestamp: 2026-11-12T16:45:00Z
7
+ status: accepted
8
+ ---
9
+ <!-- sdd-generated-metadata
10
+ doc_kind: standing-doc
11
+ generated_from: adr@0.3.0
12
+ generated_by: claude-code
13
+ approved_by: rarajes2@cisco.com
14
+ updated_at: 2026-11-12T17:06:43Z
15
+ validation_status: pass-with-warnings
16
+ -->
17
+
18
+ # ADR-0001 - Retain the product README
19
+
20
+ | Field | Value |
21
+ | ------------- | ----- |
22
+ | Status | Accepted |
23
+ | Decision date | 2026-11-12 |
24
+ | Deciders | rarajes2@cisco.com (bootstrap questionnaire) |
25
+ | Supersedes | N/A |
26
+ | Superseded by | N/A |
27
+
28
+ ## Context
29
+
30
+ Onboarding found one existing document, `README.md`. It is the npm page: a one-line description
31
+ ("Rooms plugin for the Cisco Webex JS SDK."), install commands, a note on OAuth scopes, a pointer to
32
+ the developer portal, and a Usage block. No other intent, design, or AI-authored spec exists in this
33
+ package.
34
+
35
+ The README is accurate where it speaks, but it covers little and repeats itself:
36
+
37
+ | README content | Code |
38
+ | -------------- | ---- |
39
+ | The Install and Usage sections each appear twice | — |
40
+ | Usage shows `webex.rooms.get(id)` resolving a room | Matches `get` in `src/rooms.js` |
41
+ | `listen()` needs `spark:all` and `spark:kms`; other calls work with `spark:rooms_read` and `spark:rooms_write` | Matches the `listen` JSDoc in `src/rooms.js` |
42
+ | Nothing about `create`, `list`, `update`, `remove`, the read-status methods, or the events | All eight methods and the `created` and `updated` events are in `src/rooms.js` |
43
+
44
+ ## Decision
45
+
46
+ Keep `README.md` unchanged. Do not migrate it into the module specification. Record
47
+ `spec_source_policy.mode` as `keep-separate` with `migrated_source_disposition` `retain`, and route
48
+ `README.md` in `spec_sources` as `reference-only` and `context-only`.
49
+
50
+ The canonical behavior is `src/` plus `test/`. The module specification follows code.
51
+
52
+ ## Why
53
+
54
+ The README is the npm-facing page. Filling it in is a product-doc change, not a requirement of making
55
+ the package SDD-ready, and the other onboarded packages in this workspace kept their READMEs the same
56
+ way. Its two behavioral claims, the `get(id)` example and the scopes `listen()` needs, are already in
57
+ the module specification and the package architecture, so nothing is lost by not migrating it.
58
+
59
+ ## Alternatives considered
60
+
61
+ | Alternative | Why it was not selected |
62
+ | ----------- | ----------------------- |
63
+ | Migrate the README into `src/docs/README.md` and delete it | Its behavior is already specified; deletion was not requested |
64
+ | Reconcile the README with the module specification in place | Reconciling would only carry one example and one scope note; the developer chose `keep-separate` |
65
+ | Rewrite the README during onboarding | Onboarding writes the SDD tree only and does not edit `README.md` |
66
+
67
+ ## Consequences
68
+
69
+ **Positive:**
70
+
71
+ - The npm page stays stable for consumers.
72
+ - The module specification is the single behavioral reference.
73
+
74
+ **Negative / tradeoffs:**
75
+
76
+ - Agents must not treat `README.md` as complete; it shows only `get(id)`.
77
+ - The repeated Install and Usage sections remain until a maintainer makes a separate product-doc change.
78
+
79
+ ## Constraint on future changes
80
+
81
+ Do not delete `README.md` as part of spec maintenance. If its usage text changes, keep the module
82
+ specification aligned with code rather than with the README.
83
+
84
+ ## Follow-up
85
+
86
+ - [ ] A maintainer may remove the repeated sections and add examples for the other methods and the
87
+ events in a separate product-doc change.
88
+
89
+ ## Revisit when
90
+
91
+ - A maintainer rewrites the README to document the read-status methods, `listen()`, or the events.
92
+
93
+ ## References
94
+
95
+ - `README.md`
96
+ - `src/index.js`
97
+ - `src/rooms.js`
98
+ - `.sdd/manifest.json` `spec_source_policy`
@@ -0,0 +1,25 @@
1
+ <!-- sdd-generated-metadata
2
+ doc_kind: standing-doc
3
+ generated_from: adr-index@0.3.0
4
+ generated_by: claude-code
5
+ approved_by: rarajes2@cisco.com
6
+ updated_at: 2026-11-12T17:06:43Z
7
+ validation_status: pass-with-warnings
8
+ -->
9
+
10
+ # Architectural decision records
11
+
12
+ Numbered, append-only records of structural decisions affecting this package and its documentation.
13
+ Add a concrete ADR (for example, `0042-cache-policy.md`) when a decision is non-obvious, hard to
14
+ reverse, or worth explaining to a future contributor. Do not edit an accepted decision in place when
15
+ its outcome changes; supersede it with a new ADR and link both records.
16
+
17
+ ## Index
18
+
19
+ - [ADR-0001 - Retain the product README](0001-retain-product-readme.md) — accepted 2026-11-12
20
+
21
+ Add new entries as ADRs are accepted. Keep this list in numeric order.
22
+
23
+ Each ADR should state its context, decision, alternatives, consequences, and the condition that would
24
+ cause the team to revisit it. Record the deciders, any superseded decision, and the constraint future
25
+ changes must preserve.
@@ -0,0 +1,245 @@
1
+ ---
2
+ type: Architecture
3
+ title: '@webex/plugin-rooms architecture'
4
+ description: Package-wide boundaries, resources, interactions, dependencies, and cross-cutting architecture.
5
+ tags: [architecture]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: architecture@0.3.0
10
+ generated_by: claude-code
11
+ approved_by: rarajes2@cisco.com
12
+ updated_at: 2026-11-12T17:06:43Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # @webex/plugin-rooms architecture
17
+
18
+ Canonical architecture for this package. Flow behavior lives in the
19
+ [Rooms plugin specification](../src/docs/README.md). This page owns package boundaries, the plugin
20
+ registration, the contract index, and how the package meets the rest of the SDK.
21
+
22
+ Related context: [specification registry](specs/README.md) ·
23
+ [package agent instructions](../AGENTS.md)
24
+
25
+ ## Applicability
26
+
27
+ | Condition ID | Status | Evidence or reason | Owned section |
28
+ | ------------------------------------ | ---------- | ------------------ | ------------- |
29
+ | `repo.owns_datastore` | N/A | No database, file store, or migration in `src/rooms.js` | Repository data and schema |
30
+ | `repo.holds_client_state` | N/A | `src/rooms.js` caches no room record; the stored event envelope is described in the module specification | Client state model |
31
+ | `repo.components_interact` | Applicable | `src/index.js` registers the conversation and Mercury plugins that `src/rooms.js` calls | Dependency and interaction topology |
32
+ | `repo.domain_data_across_components` | Applicable | Room records, read status, and room events pass from Hydra, the conversation service, and Mercury through `src/rooms.js` to callers | Object and data ownership |
33
+ | `repo.caches_data` | N/A | Nothing is kept after a call settles in `src/rooms.js` | Caching catalog |
34
+ | `repo.observability_convention` | N/A | One error log line and debug trace lines in `src/rooms.js`; no metric or trace convention | Observability patterns |
35
+ | `repo.deploys_to_infra` | N/A | Library published to npm (`package.json`). No service runtime | Runtime and infrastructure |
36
+ | `repo.shared_base_libs` | Applicable | Extends WebexPlugin and uses the legacy build and lint stack (`babel.config.js`, `.eslintrc.js`) | Shared and base libraries |
37
+ | `repo.is_monorepo` | N/A | This SDD root is one package. The workspace around it is out of scope | Package map and inter-package dependencies |
38
+ | `repo.multi_platform` | N/A | `src/rooms.js` has no platform branch; `process` declares {browser: true} and is not imported | Platform matrix |
39
+ | `repo.published_package` | Applicable | `package.json` name is @webex/plugin-rooms and deploy:npm publishes it | Release and versioning |
40
+ | `repo.embedded_in_host` | N/A | No host theme or embed API in `src/rooms.js` | Host integration and theming |
41
+ | `repo.exposes_commands_or_artifacts` | Applicable | build:src in `package.json` writes dist | Commands and generated artifacts |
42
+ | `repo.cross_repo_deps_material` | Applicable | Behavior depends on the Webex REST API rooms resource, the conversation service, and the Mercury socket (`src/rooms.js`) | Cross-repository topology |
43
+ | `repo.security_arch_warranted` | Applicable | `listen()` needs the spark:all and spark:kms scopes, and room titles and person ids pass through `src/rooms.js` | Security architecture |
44
+
45
+ ## Design overview
46
+
47
+ `@webex/plugin-rooms` is a published JavaScript library with one module. Importing it registers the
48
+ internal `conversation` and `mercury` plugins and then `Rooms` as the public plugin `rooms`, reached as
49
+ `webex.rooms`. The `webex` and `webex-node` bundles import it to register it; no other workspace
50
+ package calls it from its source.
51
+
52
+ A room (a space) is a Webex conversation, served to applications by the `rooms` resource of the Webex
53
+ REST API, which the SDK reaches as catalog service `hydra`. The plugin answers three questions: "what
54
+ are my rooms" (create, read, list, update, delete through Hydra), "which rooms are unread" (from the
55
+ internal conversation service, converted into Hydra-style ids and dates), and "what changed" (Mercury
56
+ socket activities turned into webhook-shaped `created` and `updated` events after `listen()`).
57
+
58
+ The package serves no routes, caches nothing, and persists nothing.
59
+
60
+ ## Resource inventory and responsibilities
61
+
62
+ | Resource | Kind | Responsibility | Owner | Source | Detailed specification |
63
+ | -------- | ---- | -------------- | ----- | ------ | ---------------------- |
64
+ | Rooms plugin | package (one module) | Registration; room records; read status; room events | @webex/web-client, @webex/web-sdk | src | [`src/docs/README.md`](../src/docs/README.md) |
65
+
66
+ ## Interaction and execution flows
67
+
68
+ Representative end-to-end flow: an application lists its rooms with read status at startup and then
69
+ listens for room changes.
70
+
71
+ ```mermaid
72
+ flowchart LR
73
+ App[application] -->|create, get, list, update, remove| Plugin[webex.rooms]
74
+ App -->|listWithReadStatus, getWithReadStatus| Plugin
75
+ App -->|listen, on created and updated| Plugin
76
+ Plugin -->|rooms requests| Hydra[Webex REST API rooms]
77
+ Plugin -->|waitForCatalog postauth| Services[webex-core services]
78
+ Plugin -->|list, get conversations| Convo[conversation plugin]
79
+ Convo --> ConvoSvc[conversation service]
80
+ Plugin -->|createEventEnvelope| Common[common]
81
+ Common -->|people get me| People[webex.people]
82
+ Plugin -->|connect, event:conversation.activity| Mercury[mercury plugin]
83
+ ```
84
+
85
+ | From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
86
+ | ---- | -- | ------------------------ | ------- | --------------------------------- |
87
+ | Application | `webex.rooms` | In-process calls; `on` for events | Room records, read status, events | Rejections propagate |
88
+ | `Rooms` | Webex REST API | HTTPS through `webex.request`, service `hydra` | Room records | No retry here |
89
+ | `Rooms` | `webex.internal.conversation` | In-process calls after the `postauth` catalog | Read status | Rejections propagate |
90
+ | `Rooms` | `webex.internal.mercury` | `connect()` and `listenTo` | Room events | A connect failure rejects `listen()` |
91
+ | `Rooms` | `@webex/common` | Import | Ids, room type, envelope, event vocabulary | A failed identity lookup leaves the envelope `undefined` |
92
+
93
+ ## Dependency topology
94
+
95
+ | Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
96
+ | ---------- | ---- | ------- | ------- | ------------------------------------ |
97
+ | `@webex/webex-core` | Internal | `src/index.js`, `src/rooms.js` | Registration, plugin base, `Page`, `webex.request`, services | `workspace:*` in `package.json` |
98
+ | `@webex/common` | Internal | `src/rooms.js` | Hydra ids, room type, event envelope, `SDK_EVENT` | `workspace:*` |
99
+ | `@webex/internal-plugin-conversation` | Internal | `src/index.js` (import), `src/rooms.js` (calls) | Read status | `workspace:*` |
100
+ | `@webex/internal-plugin-mercury` | Internal | `src/index.js` (import), `src/rooms.js` (calls) | Room events | `workspace:*` |
101
+ | `@webex/plugin-people`, `@webex/plugin-logger` | Internal peer | Reached at run time through `webex.people` and `webex.logger` | Current user for the envelope; error logging | Peer dependencies; not imported by `src/` |
102
+ | `lodash`, `debug` | External library | `src/rooms.js` | `cloneDeep`; trace lines | `^4.17.21`, `^4.3.4` |
103
+ | Webex REST API rooms resource, conversation service | External service | `src/rooms.js` | Room records and conversations | Resolved through the service catalog |
104
+
105
+ No import cycle exists: none of the internal dependencies imports this package. `@webex/common` reads
106
+ `webex.people` at run time without importing it.
107
+
108
+ ## Public and consumer surfaces
109
+
110
+ | Surface | Type | Owner | Consumers | Compatibility policy | Source |
111
+ | ------- | ---- | ----- | --------- | -------------------- | ------ |
112
+ | `rooms-public-sdk` — package @webex/plugin-rooms, `webex.rooms` with its eight methods and the `created` and `updated` events | SDK, published to npm, public | Rooms plugin | `webex`, `webex-node` (registration); applications and the workspace samples (calls) | No versioning or deprecation rule is declared in the package | `package.json`, `src/index.js`, `src/rooms.js` |
113
+
114
+ The rooms requests and the event shape are a protocol this package speaks, described under
115
+ *Protocol and wire format* in the
116
+ [module specification](../src/docs/README.md#protocol-and-wire-format). The other contracts this
117
+ package requires are registered in `.sdd/manifest.json` `contract_catalog`.
118
+
119
+ ## Cross-cutting architecture
120
+
121
+ ### Security
122
+
123
+ - Trust boundaries, scopes, and identity flow: see [Security architecture](#security-architecture).
124
+ - Sensitive surfaces and data classes: room titles, room, person, and organization ids, and
125
+ last-activity dates.
126
+
127
+ ### Observability and operations
128
+
129
+ - Logging and correlation: `getRoomEvent` logs one `webex.logger.error` line when an activity cannot be
130
+ converted; `debug('rooms')` trace lines print event payloads when `DEBUG` enables `rooms`. Request
131
+ tracking comes from the webex-core interceptors.
132
+ - Metrics, traces, and audit signals: none.
133
+ - Ownership and operational entry points: `.github/CODEOWNERS` at the workspace root assigns
134
+ `packages/@webex/plugin-rooms` to `@webex/web-client` and `@webex/web-sdk`. No dashboards or
135
+ runbooks are recorded in this package.
136
+
137
+ ### Quality attributes
138
+
139
+ - Compatibility: callers rely on the registered name `rooms`, the Hydra room object, `list().items`
140
+ through `Page`, the read-status fields, and the event names `created` and `updated`.
141
+ - Latency: `listWithReadStatus()` with no argument can return up to 1000 spaces in one call and, per its
142
+ JSDoc, can take some time; `maxRecent` limits it.
143
+ - Test confidence: the package has no unit tests, and the integration spec is not run by any script.
144
+ No coverage threshold is enforced.
145
+
146
+ ## Dependency and interaction topology
147
+
148
+ ```mermaid
149
+ flowchart LR
150
+ Index[src/index.js] -->|import| Convo[internal-plugin-conversation]
151
+ Index -->|import| Mercury[internal-plugin-mercury]
152
+ Index -->|registerPlugin rooms| Core[webex-core]
153
+ Index --> Rooms[src/rooms.js]
154
+ Rooms -->|WebexPlugin, Page, request| Core
155
+ Rooms -->|ids, envelope, SDK_EVENT| Common[common]
156
+ Rooms -->|webex.internal.conversation| Convo
157
+ Rooms -->|webex.internal.mercury| Mercury
158
+ ```
159
+
160
+ | From | To | Kind | Purpose | Ordering or failure boundary |
161
+ | ---- | -- | ---- | ------- | ---------------------------- |
162
+ | `src/index.js` | conversation and Mercury plugins | Import at load | Register `webex.internal.conversation` and `webex.internal.mercury` | Before `rooms` is registered |
163
+ | `src/index.js` | webex-core | Call at import | Register `rooms` | First registration wins |
164
+ | `src/rooms.js` | common | Import | Ids, envelope, vocabulary | Conversion errors are caught in `getRoomEvent` |
165
+
166
+ ## Object and data ownership
167
+
168
+ | Object or state | System of record | May write | May read | Movement or lifecycle |
169
+ | --------------- | ---------------- | --------- | -------- | --------------------- |
170
+ | Room record (`id`, `title`, `type`, `teamId`, `created`, and more) | Webex REST API | Callers, through `create`, `update`, `remove` | Callers, through `get` and `list` | Fetched per call; never kept here |
171
+ | Read status (`id`, `type`, `title`, `lastActivityDate`, `lastSeenActivityDate`) | Conversation service | Not this package | Callers | Built per call from conversations |
172
+ | Event envelope | This plugin instance, built by `@webex/common` | `listen()` | `getRoomEvent` | Replaced by each `listen()` |
173
+
174
+ ## Shared and base libraries
175
+
176
+ | Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
177
+ | ------- | ------------------------ | --------- | ------------- | ------------------ |
178
+ | `@webex/webex-core` `WebexPlugin` | `webex`, `request`, `logger`, and the event methods | `Rooms` | `workspace:*` | Keep the registered name `rooms` |
179
+ | `@webex/babel-config-legacy`, `@webex/eslint-config-legacy`, `@webex/jest-config-legacy`, `@webex/legacy-tools` | Build, lint, and test stack through one-line config files | Package tooling | `workspace:*` | Do not fork the config locally |
180
+
181
+ ## Release and versioning
182
+
183
+ | Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
184
+ | -------- | -------------- | --------------- | ------------------ | --------------------------------- |
185
+ | @webex/plugin-rooms | npm through `deploy:npm` | None declared in the package | None declared | None declared in the package; the workspace owns changelog generation |
186
+
187
+ ## Commands and generated artifacts
188
+
189
+ | Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
190
+ | ------------------- | ----- | ------ | --------------------- | ---------------------- |
191
+ | `yarn workspace @webex/plugin-rooms build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
192
+ | `yarn workspace @webex/plugin-rooms build` | Package scripts | `src` | Runs `build:src` | Same output |
193
+ | `yarn workspace @webex/plugin-rooms test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
194
+
195
+ ## Cross-repository topology
196
+
197
+ | Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
198
+ | ----------------------------- | ------------- | ------------------------------ | ----- | --------------------- |
199
+ | `@webex/webex-core` (workspace sibling; module spec consulted) | Consumes | `registerPlugin`, `WebexPlugin`, `Page`, `request`, services | @webex/web-sdk | Registered before the first instance |
200
+ | `@webex/common` (workspace sibling; module spec consulted) | Consumes | Hydra ids, `createEventEnvelope`, `SDK_EVENT` | @webex/web-sdk | None |
201
+ | `@webex/internal-plugin-conversation` (workspace sibling; no spec, code consulted) | Consumes | `list`, `get` of conversations | Not recorded in this package | `postauth` catalog ready |
202
+ | `@webex/internal-plugin-mercury` (workspace sibling; module spec consulted) | Consumes | `connect`, `event:conversation.activity` | Not recorded in this package | Connected before events flow |
203
+ | `webex`, `webex-node` (workspace siblings) | Consumed by | The plugin registration | @webex/web-sdk | None |
204
+ | Webex REST API rooms resource; conversation service | Consumes | Room records; conversations | Not recorded in this repository | None |
205
+
206
+ ## Security architecture
207
+
208
+ ```mermaid
209
+ flowchart LR
210
+ Caller[caller] -->|room bodies, ids, options| Plugin[webex.rooms]
211
+ Plugin -->|SDK token| Hydra[Webex REST API]
212
+ Plugin -->|SDK token| Convo[conversation service]
213
+ Mercury[Mercury socket, spark:all and spark:kms] -->|activities| Plugin
214
+ Plugin -->|room records, read status, events| Caller
215
+ ```
216
+
217
+ - This package holds no credential and no key. Every request carries the SDK authorization added by
218
+ webex-core; the README and the `listen()` JSDoc state that room requests work with the
219
+ `spark:rooms_read` and `spark:rooms_write` scopes, and that `listen()` needs `spark:all` and
220
+ `spark:kms`.
221
+ - Room ids go into request paths and options into query strings. The package logs none of them
222
+ through `webex.logger`; its logging is described under
223
+ [Observability and operations](#observability-and-operations).
224
+ - What a caller may see is decided by the services for the authorized user; the package passes records
225
+ through and keeps no copy.
226
+
227
+ ## Domain language
228
+
229
+ | Term | Repository-specific meaning | Authoritative source |
230
+ | ---- | --------------------------- | -------------------- |
231
+ | Room, space | A Webex conversation as the public API names it | `src/rooms.js` |
232
+ | Hydra | The Webex REST API, reached as catalog service `hydra` | `src/rooms.js` |
233
+ | Hydra room id | base64url of `ciscospark://<cluster>/ROOM/<uuid>` | `src/rooms.js` |
234
+ | Read status | `lastActivityDate` against `lastSeenActivityDate`; a room is unread when the first is later | `src/rooms.js` |
235
+ | `maxRecent` | Limit for `listWithReadStatus` to spaces active in the last 14 days | `src/rooms.js` |
236
+ | Activity verb | The `create`, `update`, `lock`, or `unlock` value that picks the event | `src/rooms.js` |
237
+ | Event envelope | Webhook-shaped wrapper built once by `listen()` and cloned per event | `src/rooms.js` |
238
+
239
+ ## References and maintenance
240
+
241
+ - Decisions: [adr/](adr/index.md)
242
+ - Instantiated specifications and routing: [specs/README.md](specs/README.md)
243
+ - Repository rules and patterns: [package agent instructions](../AGENTS.md)
244
+ - Update this document in the same change that alters package boundaries, resource ownership,
245
+ cross-resource interaction, or cross-cutting architecture.
@@ -0,0 +1,119 @@
1
+ ---
2
+ type: Getting Started
3
+ title: Getting started
4
+ description: Local setup, build, run, and test routing for @webex/plugin-rooms.
5
+ tags: [onboarding]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: getting-started@0.3.0
10
+ generated_by: claude-code
11
+ approved_by: rarajes2@cisco.com
12
+ updated_at: 2026-11-12T17:06:43Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # Getting started
17
+
18
+ Onboarding for **@webex/plugin-rooms**, a package inside the `webex-js-sdk` Yarn workspace.
19
+ Run every command from the workspace root: `yarn` to install, and
20
+ `yarn workspace @webex/plugin-rooms <script>` for the package scripts.
21
+
22
+ ## Prerequisites
23
+
24
+ | Tool or access | Version or requirement |
25
+ | -------------- | ---------------------- |
26
+ | Node.js | Use 22.14: the workspace root `AGENTS.md` requires it and the workspace `.nvmrc` selects `lts/jod` (Node 22). This package's `engines` accepts `>=18`. The workspace root `package.json` `engines.node` reads `18.x`, which conflicts with the other pins; the build and lint pass on 22.14 |
27
+ | Yarn | `yarn@3.4.1` (`packageManager` in the workspace root `package.json`) |
28
+ | Registry or account access | N/A for building and linting |
29
+
30
+ ## Install
31
+
32
+ ```bash
33
+ yarn
34
+ ```
35
+
36
+ The workspace `deploy.yml` workflow installs with the same command.
37
+
38
+ Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the
39
+ workspace root; see [Prebuilding](../../../../CONTRIBUTING.md#prebuilding).
40
+
41
+ ## Build
42
+
43
+ ```bash
44
+ yarn workspace @webex/plugin-rooms build:src
45
+ ```
46
+
47
+ `build:src` writes JavaScript and source maps for the two source files to `dist/` through
48
+ `webex-legacy-tools`. `dist/` is ignored by Git. The `build` script runs `build:src`; the package
49
+ emits no type declarations.
50
+
51
+ ```bash
52
+ yarn workspace @webex/plugin-rooms build
53
+ ```
54
+
55
+ ## Run
56
+
57
+ N/A — this is a library with no start script. Importing `@webex/plugin-rooms` registers
58
+ `webex.rooms`.
59
+
60
+ ## Tests
61
+
62
+ ```bash
63
+ yarn workspace @webex/plugin-rooms test:style
64
+ ```
65
+
66
+ | Tier | Command | Test location | Framework | External dependencies |
67
+ | ---- | ------- | ------------- | --------- | --------------------- |
68
+ | Unit | N/A — `package.json` defines no `test:unit` script | none | N/A | N/A |
69
+
70
+ `test:style` lints `src/` with eslint through `@webex/eslint-config-legacy`.
71
+
72
+ - Coverage or quality gate: none; the package defines no unit test, no coverage script, and the legacy
73
+ Jest configuration it re-exports sets no threshold
74
+ - Enforcement source: N/A
75
+ - Test environment or QA dependencies: none for lint
76
+
77
+ This package has no unit tests: `package.json` defines no `test:unit` script and there is no
78
+ `test/unit` directory. Add both together when you add the first unit case; sibling legacy packages
79
+ define `test:unit` as `webex-legacy-tools test --unit --runner jest`.
80
+
81
+ `yarn workspace @webex/plugin-rooms test:browser:broken` (manifest command `browser-test`) runs `webex-legacy-tools test
82
+ --integration --runner karma` over `test/integration/spec/rooms.js`, whose 11 cases (1 skipped) create
83
+ test users and call the live services. On 2026-11-12 under Node 22.14 the karma bundle failed to parse
84
+ `isbot` (an ES module in the workspace `node_modules`), so the run reported a bundle error in Chrome
85
+ and Firefox headless, ran no case, and still exited zero. It is not listed in the table above because
86
+ it verifies nothing today, and its exit code is not a test result.
87
+
88
+ Do not run the aggregate `test` script in `package.json`. It runs `test:style`, then exits 1 with
89
+ `Couldn't find a script named "test:unit"` (checked 2026-11-12); it would also call
90
+ `test:integration` and `test:browser`, which this package does not define either. It is deliberately
91
+ not a manifest command; run the commands above instead.
92
+
93
+ ## Configuration and secrets
94
+
95
+ - Required configuration: none. The plugin registers no config of its own
96
+ - Environment overrides: none read by this package; `DEBUG=rooms` turns on its `debug` trace lines
97
+ - Secret source: N/A; the package holds no secret
98
+ - Package or artifact access: N/A
99
+ - Required neighboring packages: `@webex/webex-core`, `@webex/common`,
100
+ `@webex/internal-plugin-conversation`, and `@webex/internal-plugin-mercury` resolve through the
101
+ workspace; the host must also register `@webex/plugin-people` and `@webex/plugin-logger`, the peer
102
+ dependencies that `listen()` and its error log reach at run time
103
+ - Platform, simulator, device, or SDK setup: none
104
+ - Never commit credentials or copy production secrets into a local config.
105
+
106
+ ## First-run verification
107
+
108
+ 1. Run `yarn workspace @webex/plugin-rooms build:src` and check that it reports `Built plugin-rooms: 2 files`.
109
+ 2. Run `yarn workspace @webex/plugin-rooms test:style`.
110
+
111
+ Expected result: both commands exit zero. `test:style` prints warnings but no errors: 3 in
112
+ `src/rooms.js` (a `require` statement and two helpers used before they are defined) and "File ignored"
113
+ for `src/docs/README.md`.
114
+
115
+ ## Next steps
116
+
117
+ - [Package architecture](architecture.md)
118
+ - [Specification registry](specs/README.md)
119
+ - [Documentation index](index.md)
package/docs/index.md ADDED
@@ -0,0 +1,42 @@
1
+ ---
2
+ okf_version: '0.1'
3
+ ---
4
+ <!-- sdd-generated-metadata
5
+ doc_kind: standing-doc
6
+ generated_from: docs-index@0.3.0
7
+ generated_by: claude-code
8
+ approved_by: rarajes2@cisco.com
9
+ updated_at: 2026-11-12T17:06:43Z
10
+ validation_status: pass-with-warnings
11
+ -->
12
+
13
+ # @webex/plugin-rooms documentation
14
+
15
+ Doc map for developers and agents working on the Rooms plugin.
16
+
17
+ ## Start here
18
+
19
+ - [Getting started](getting-started.md)
20
+ - [Package architecture](architecture.md)
21
+
22
+ ## Decisions
23
+
24
+ - [adr/](adr/index.md) — architectural decision records
25
+
26
+ ## Specifications and contracts
27
+
28
+ - [architecture.md](architecture.md) — canonical package architecture and contract index
29
+ - [specs/README.md](specs/README.md) — manifest-backed module and contract registry
30
+ - [`src/docs/README.md`](../src/docs/README.md) — the Rooms plugin specification beside its code
31
+ - [adr/](adr/index.md) — concrete architectural decisions; blank ADR templates remain under the
32
+ monorepo root `.sdd/`
33
+
34
+ This package is a library, so there is no service specification and no OpenAPI document. Exact
35
+ contract details live in the native sources linked from the architecture index: `package.json` and
36
+ `src/index.js` for the package and its registration, and `src/rooms.js` for the API.
37
+
38
+ ## Related repository resources
39
+
40
+ - [`README.md`](../README.md) — retained npm page; context only, it shows only `get(id)` and the
41
+ scopes `listen()` needs, see [ADR-0001](adr/0001-retain-product-readme.md)
42
+ - [`AGENTS.md`](../AGENTS.md) — agent instructions for this package
@@ -0,0 +1,68 @@
1
+ ---
2
+ type: Reference
3
+ title: Specification registry
4
+ description: Canonical specification registry and change-routing guide.
5
+ tags: [specifications, registry]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: spec-index@0.3.0
10
+ generated_by: claude-code
11
+ approved_by: rarajes2@cisco.com
12
+ updated_at: 2026-11-12T17:06:43Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # Specification registry
17
+
18
+ Use this page to find the canonical package architecture and every instantiated module specification
19
+ plus native contract. Keep technical facts in one owning document and use this page only for
20
+ navigation, ownership, status, and change/test routing.
21
+
22
+ Start with the [package architecture](../architecture.md). No service specification exists because this
23
+ package is a library.
24
+
25
+ ## Document roles
26
+
27
+ | Document | Canonical ownership |
28
+ | -------- | ------------------- |
29
+ | [Package architecture](../architecture.md) | Package boundaries, resource inventory, interactions, dependency topology, and cross-cutting architecture |
30
+ | Module specifications | Stable behavior and design at each manifest-routed `<module-path>/docs/README.md` |
31
+ | [ADR](../adr/index.md) | A durable decision, its deciders, rationale, consequences, and supersession lineage |
32
+
33
+ ## Instantiated specification registry
34
+
35
+ | Resource | Role | Canonical path | Owner | Status | Last verified |
36
+ | -------- | ---- | -------------- | ----- | ------ | ------------- |
37
+ | Package | Architecture | `docs/architecture.md` | @webex/web-client, @webex/web-sdk | Draft | 2026-11-12 |
38
+ | Rooms plugin | Module | `src/docs/README.md` | @webex/web-client, @webex/web-sdk | Draft | 2026-11-12 |
39
+ | Retain the product README | ADR | `docs/adr/0001-retain-product-readme.md` | @webex/web-client, @webex/web-sdk | Accepted | 2026-11-12 |
40
+
41
+ ### Module registry
42
+
43
+ | Module | Responsibility | Manifest coverage state | Start here |
44
+ | --- | --- | --- | --- |
45
+ | `src/` | `webex.rooms`: room create, read, list, update, and delete through Hydra; read status from the conversation service; webhook-shaped room events from the Mercury socket | Partial | `src/docs/README.md` |
46
+
47
+ Generator-side field measurement for the module is complete (100%, assessed 2026-11-12), and
48
+ independent semantic validation passed with warnings on 2026-11-12 in a separate runtime. A unit
49
+ suite, a characterization baseline, and promotion past Partial remain pending.
50
+
51
+ ## Change and verification routing
52
+
53
+ | Change affects | Load and update | Verification route |
54
+ | -------------- | --------------- | ------------------ |
55
+ | Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn workspace @webex/plugin-rooms build:src` and `yarn workspace @webex/plugin-rooms test:style`, and the module spec |
56
+ | A stable code, package, or component boundary | `src/docs/README.md` | Build and lint |
57
+ | A public method, request path, read-status field, event field, or the registration | The owning architecture section, `src/docs/README.md`, and the native definition in `src/rooms.js`, `src/index.js`, or `package.json` | Build and lint; add a `test/unit/spec` case and a `test:unit` script for the changed path, since the package has no unit tests and the integration spec is not run |
58
+
59
+ ## Module and contract registration
60
+
61
+ The module specification is generated at the exact `modules[].canonical_spec` path recorded in
62
+ `.sdd/manifest.json`. Register every module and submodule in the Module registry above in manifest tree
63
+ order.
64
+
65
+ Contracts are registered in `.sdd/manifest.json` `contract_catalog` and indexed in
66
+ [`docs/architecture.md`](../architecture.md#public-and-consumer-surfaces) with a stable ID, publication
67
+ state, native source, and owning module. This page provides navigation and ownership rather than a copied
68
+ contract.
package/package.json CHANGED
@@ -24,25 +24,25 @@
24
24
  "@webex/eslint-config-legacy": "0.0.0",
25
25
  "@webex/jest-config-legacy": "0.0.0",
26
26
  "@webex/legacy-tools": "0.0.0",
27
- "@webex/test-helper-chai": "3.12.0-next.13",
28
- "@webex/test-helper-mocha": "3.12.0-next.13",
29
- "@webex/test-helper-mock-webex": "3.12.0-next.13",
30
- "@webex/test-helper-test-users": "3.12.0-next.13",
27
+ "@webex/test-helper-chai": "3.13.0-next.3",
28
+ "@webex/test-helper-mocha": "3.13.0-next.3",
29
+ "@webex/test-helper-mock-webex": "3.13.0-next.3",
30
+ "@webex/test-helper-test-users": "3.13.0-next.3",
31
31
  "eslint": "^8.24.0",
32
32
  "prettier": "^2.7.1",
33
33
  "sinon": "^9.2.4"
34
34
  },
35
35
  "dependencies": {
36
- "@webex/common": "3.12.0-next.13",
37
- "@webex/internal-plugin-conversation": "3.13.0-next.1",
38
- "@webex/internal-plugin-mercury": "3.12.0-next.76",
39
- "@webex/webex-core": "3.12.0-next.71",
36
+ "@webex/common": "3.13.0-next.3",
37
+ "@webex/internal-plugin-conversation": "3.13.0-next.11",
38
+ "@webex/internal-plugin-mercury": "3.13.0-next.7",
39
+ "@webex/webex-core": "3.13.0-next.7",
40
40
  "debug": "^4.3.4",
41
41
  "lodash": "^4.17.21"
42
42
  },
43
43
  "peerDependencies": {
44
- "@webex/plugin-logger": "3.12.0-next.68",
45
- "@webex/plugin-people": "3.12.0-next.79"
44
+ "@webex/plugin-logger": "3.13.0-next.7",
45
+ "@webex/plugin-people": "3.13.0-next.7"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "yarn build:src",
@@ -52,5 +52,5 @@
52
52
  "test:browser:broken": "webex-legacy-tools test --integration --runner karma",
53
53
  "test:style": "eslint ./src/**/*.*"
54
54
  },
55
- "version": "3.13.0-next.1"
55
+ "version": "3.13.0-next.11"
56
56
  }