@webex/internal-plugin-board 3.12.0 → 3.13.0-next.10

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,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-12T07:38:37Z
7
+ validation_status: pass
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,294 @@
1
+ ---
2
+ type: Architecture
3
+ title: '@webex/internal-plugin-board 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-12T07:38:37Z
13
+ validation_status: pass
14
+ -->
15
+
16
+ # @webex/internal-plugin-board architecture
17
+
18
+ Canonical architecture for this package. Flow behavior lives in the
19
+ [board 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; channels and contents live in the board service (`src/board.js`) | Repository data and schema |
30
+ | `repo.holds_client_state` | Applicable | The realtimeChannels collection and per-channel session properties in `src/realtime.js` and `src/realtime-channel.js` | Client state model |
31
+ | `repo.components_interact` | Applicable | `src/board.js` and `src/realtime.js` call the encryption, services, mercury, feature, and device plugins, and the payload transformer in `src/index.js` runs inside webex-core | Dependency and interaction topology |
32
+ | `repo.domain_data_across_components` | Applicable | Channel keys come from KMS through the encryption plugin and conversation ACLs come from conversation objects (`src/board.js`, `src/index.js`) | Object and data ownership |
33
+ | `repo.caches_data` | N/A | No cache; the realtime collection holds connections, not data (`src/realtime.js`) | Caching catalog |
34
+ | `repo.observability_convention` | Applicable | `src/realtime.js` logs with a board realtime: prefix | 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 from webex-core and Mercury from internal-plugin-mercury, and uses the legacy build, lint, and test stack (`babel.config.js`, `jest.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 | One JavaScript source set; Node runs the unit specs and karma browsers run `test:browser` against the same code (`package.json`) | Platform matrix |
39
+ | `repo.published_package` | Applicable | `package.json` name is @webex/internal-plugin-board and deploy:npm publishes it | Release and versioning |
40
+ | `repo.embedded_in_host` | N/A | No host theme or embed API in `src/board.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 board, ACL, Files, KMS, and Mercury services (`src/board.js`, `src/realtime.js`) | Cross-repository topology |
43
+ | `repo.security_arch_warranted` | Applicable | Board content keys, KMS messages, encrypted content, and transcoder bearer tokens pass through `src/board.js` and `src/index.js` | Security architecture |
44
+
45
+ ## Design overview
46
+
47
+ `@webex/internal-plugin-board` is a published internal library with one module. Importing it
48
+ registers `Board` as the internal plugin `board` (with child `realtime`) and, as side effects, the
49
+ internal `mercury`, `encryption`, `conversation`, and `feature` plugins. `@webex/webex-server` and
50
+ `@webex/recipe-private-web-client` import it; first-party clients then call `webex.internal.board`.
51
+
52
+ The plugin is a request builder for the Webex board service. A board channel is bound to a
53
+ conversation's ACL and KMS resource; its content key is created when the channel is created, and every
54
+ content item is encrypted with that key before it is stored or published. Reads come back through the
55
+ SDK payload transformer, which decrypts them. Live drawing is exchanged as `board.activity` frames over
56
+ Mercury, either on a board socket of its own or on the shared Mercury socket when the server allows it.
57
+
58
+ The package makes outbound HTTP and web socket calls only. It serves no routes and persists nothing.
59
+
60
+ ## Resource inventory and responsibilities
61
+
62
+ | Resource | Kind | Responsibility | Owner | Source | Detailed specification |
63
+ | -------- | ---- | -------------- | ----- | ------ | ---------------------- |
64
+ | Board plugin | package (one module) | Board channels, encrypted contents, image upload, transcoder authorization, live board activity | @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: a client creates a board for a conversation, stores strokes, and
69
+ shares them live with other participants.
70
+
71
+ ```mermaid
72
+ flowchart LR
73
+ Client[First-party client] -->|createChannel conversation| Board[Board plugin]
74
+ Board -->|cluster lookup| Svc[webex-core services]
75
+ Board -->|unbound key, wrap kmsMessage| Enc[encryption plugin and KMS]
76
+ Board -->|POST channels| BS[Board service]
77
+ Client -->|addContent| Board
78
+ Board -->|encrypt items| Enc
79
+ Board -->|POST contents in serial chunks| BS
80
+ Client -->|realtime.publish| RT[realtime child]
81
+ RT -->|publishRequest frame| Merc[Mercury socket]
82
+ Merc -->|board.activity| RT
83
+ RT -->|event:board.activity| Client
84
+ ```
85
+
86
+ | From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
87
+ | ---- | -- | ------------------------ | ------- | --------------------------------- |
88
+ | First-party client | Board plugin | In-process calls | Channels, contents, images, live activity | Rejections propagate; media-injector errors resolve as values |
89
+ | Board plugin | Board service | HTTPS through `webex.request` | Channels, contents, locks, spaces, registrations, share policies | No plugin-local retry |
90
+ | Board plugin | ACL service | HTTPS PUT to the channel `aclUrl` | Remove the conversation link on delete | Rejection propagates |
91
+ | Board plugin | Webex Files | `webex.upload` three-phase upload | Encrypted image bytes | Rejection propagates |
92
+ | Board plugin | encryption plugin and KMS | In-process calls | Content keys, encryption, transcoder authorization | Rejection propagates |
93
+ | realtime child | Mercury | Web socket frames | Live board activity | Reconnect owned by Mercury |
94
+ | webex-core payload transformer | Board plugin | Transform callbacks | Decrypt content reads; create channel keys | Transform rejection fails the request |
95
+
96
+ ## Dependency topology
97
+
98
+ | Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
99
+ | ---------- | ---- | ------- | ------- | ------------------------------------ |
100
+ | `@webex/webex-core` | Internal | `src/index.js`, `src/board.js`, `src/realtime.js` | Plugin base, registration, `Page`, request, upload, services, payload transformer | Workspace version (`workspace:*` in `package.json`) |
101
+ | `@webex/internal-plugin-encryption` | Internal | `src/index.js`, `src/board.js` | Content and image encryption, KMS keys and authorizations | Workspace version |
102
+ | `@webex/internal-plugin-mercury` | Internal | `src/index.js`, `src/realtime-channel.js`, `src/realtime.js` | `Mercury` base class and the shared socket | Workspace version |
103
+ | `@webex/internal-plugin-feature` | Internal | `src/index.js`, `src/board.js` | `web-shared-mercury` developer toggle | Workspace version |
104
+ | `@webex/internal-plugin-conversation` | Internal | `src/index.js` | Import side effect registering `conversation` | Workspace version |
105
+ | `@webex/internal-plugin-device` | Internal, undeclared | `src/board.js` through `webex.internal.device` | `deviceType`, `webSocketUrl` | Not in `package.json`; registered by the mercury plugin import |
106
+ | `@webex/common` | Internal | `src/realtime.js` | `tap` | Workspace version |
107
+ | `ampersand-collection` | External | `src/realtime-channel-collection.js` | Realtime channel collection | `^2.0.2` in `package.json` |
108
+ | `es6-promise-series` | External | `src/board.js` | Serial content chunks | `^0.2.2` in `package.json` |
109
+ | `lodash` | External | `src/index.js`, `src/board.js` | Object helpers | `^4.17.21` in `package.json` |
110
+ | `uuid` | External | `src/realtime.js` | Frame ids | `^3.3.2` in `package.json` |
111
+ | Board, ACL, Files, KMS, Mercury services | External services | `src/board.js`, `src/realtime.js` | Storage, access control, upload, keys, sockets | URLs from the services catalog and from channel objects |
112
+
113
+ Every runtime dependency in `package.json` is imported by `src/`. No import cycle exists: this package
114
+ imports its siblings, and none of them imports this package.
115
+
116
+ ## Public and consumer surfaces
117
+
118
+ | Surface | Type | Owner | Consumers | Compatibility policy | Source |
119
+ | ------- | ---- | ----- | --------- | -------------------- | ------ |
120
+ | `board-internal-sdk` — package @webex/internal-plugin-board, the `webex.internal.board` and `webex.internal.board.realtime` APIs, and `webex.config.board` | SDK, published to npm | Board plugin | `@webex/webex-server`, `@webex/recipe-private-web-client`, first-party clients | Internal plugin; the README says it does not strictly follow semver | `package.json`, `src/index.js`, `src/board.js`, `src/realtime.js`, `src/config.js` |
121
+
122
+ The board service, ACL, Files, and Mercury shapes are protocols this package consumes, described under
123
+ *Protocol and wire format* in the
124
+ [module specification](../src/docs/README.md#protocol-and-wire-format), not published contracts of this
125
+ package. They are registered as internal requires-contracts in `.sdd/manifest.json`.
126
+
127
+ ## Client state model
128
+
129
+ | State or slice | Owner | Transition triggers | Persistence or reset boundary |
130
+ | -------------- | ----- | ------------------- | ----------------------------- |
131
+ | `realtimeChannels` | realtime child | Connect and disconnect methods | In memory for the instance |
132
+ | `isSharingMercury`, `socket` per channel | `RealtimeChannel` | Shared registration; Mercury `online` | In memory |
133
+ | Socket connection state | Mercury base class | `connect`, `disconnect`, reconnect | Owned by Mercury |
134
+
135
+ ## Cross-cutting architecture
136
+
137
+ ### Security
138
+
139
+ - Trust boundaries and identity flow: see [Security architecture](#security-architecture). The
140
+ plugin builds requests; webex-core adds the user token and the encryption plugin talks to KMS.
141
+ - Sensitive surfaces and data classes: board contents (curves, text, image metadata), image bytes,
142
+ content keys and their KMS resource bindings, and transcoder bearer tokens.
143
+ - Encryption and secret boundaries: content is encrypted with the channel's key before it leaves the
144
+ client, image bytes are encrypted before upload, and KMS messages are wrapped by the encryption
145
+ plugin.
146
+
147
+ ### Observability and operations
148
+
149
+ - Logging and correlation: two `this.logger.info` messages in `src/realtime.js`, prefixed
150
+ `board realtime:`; the Mercury base class logs under namespace `Board`.
151
+ - Metrics, traces, and audit signals: none emitted here.
152
+ - Ownership and operational entry points: `.github/CODEOWNERS` at the workspace root has no entry for
153
+ this package, so the default rule routes it to `@webex/web-sdk`. No dashboards or runbooks are
154
+ recorded in this package.
155
+
156
+ ### Quality attributes
157
+
158
+ - Compatibility: other clients read the same encrypted content and frames, so their shapes are
159
+ cross-client contracts.
160
+ - Footprint: six source files; runtime imports are webex-core, common, four sibling plugins, and four
161
+ npm libraries.
162
+ - Test confidence: 58 unit cases pass; the payload transformer, the media-injector methods,
163
+ `processActivityEvent`, and the shared-socket refresh have no test, and two of three integration
164
+ specs are skipped. No coverage threshold is enforced.
165
+
166
+ ## Dependency and interaction topology
167
+
168
+ ```mermaid
169
+ flowchart LR
170
+ Index[src/index.js] -->|import side effects| Sib[mercury, encryption, conversation, feature plugins]
171
+ Index -->|registerInternalPlugin board| Core[webex-core]
172
+ Index --> BoardJs[src/board.js]
173
+ Index --> Config[src/config.js]
174
+ BoardJs -->|child realtime| RTJs[src/realtime.js]
175
+ RTJs --> Coll[src/realtime-channel-collection.js]
176
+ Coll --> RC[src/realtime-channel.js]
177
+ RC -->|extends Mercury| Merc[internal-plugin-mercury]
178
+ BoardJs -->|encrypt, KMS| Enc[internal-plugin-encryption]
179
+ BoardJs -->|cluster lookup, request, upload, Page| Core
180
+ BoardJs -->|getFeature| Feat[internal-plugin-feature]
181
+ RTJs -->|shared socket, events| Merc
182
+ RTJs -->|tap| Common[common]
183
+ Core -->|payload transforms| Index
184
+ ```
185
+
186
+ | From | To | Kind | Purpose | Ordering or failure boundary |
187
+ | ---- | -- | ---- | ------- | ---------------------------- |
188
+ | `src/index.js` | sibling plugins, `src/board.js`, `src/config.js` | Import | Build and register the plugin | Registration at import time; first registration wins |
189
+ | `src/board.js` | encryption plugin | Call | Keys, encryption, KMS authorizations | Rejections propagate except in media-injector methods |
190
+ | `src/board.js` | webex-core | Call | Request, upload, services, `Page` | Rejections propagate |
191
+ | `src/realtime.js` | mercury plugin | Call and events | Shared socket and activity | Handlers attached once |
192
+ | `src/realtime-channel.js` | mercury plugin | Inheritance | Socket lifecycle | Config from namespace `Board` |
193
+ | webex-core | `src/index.js` transforms | Callback | Decrypt reads, create channel keys | Transform failure fails the request |
194
+
195
+ ## Object and data ownership
196
+
197
+ | Object or state | System of record | May write | May read | Movement or lifecycle |
198
+ | --------------- | ---------------- | --------- | -------- | --------------------- |
199
+ | Board channel | Board service | This plugin (create, patch snapshot, delete) | Conversation participants | Bound to the conversation ACL until deleted |
200
+ | Board contents | Board service | This plugin, other clients | Conversation participants with the key | Encrypted on write, decrypted on read |
201
+ | Channel content key | KMS | The `encryptChannel` transform (create) | Holders of the conversation KMS authorization | Created with the channel |
202
+ | Board images | Webex Files | This plugin | Holders of the SCR | Encrypted upload; SCR stored as content |
203
+ | Realtime channels | This plugin (memory) | realtime child | realtime child | Created on connect, removed on disconnect |
204
+
205
+ ## Observability patterns
206
+
207
+ | Signal | Convention or required fields | Propagation or naming rule | Primary evidence |
208
+ | ------- | ----------------------------- | -------------------------- | ---------------- |
209
+ | Logs | `info` messages when a realtime channel is created | Prefix `board realtime:`; no content or keys are logged | `src/realtime.js` |
210
+ | Metrics | None | N/A | `src/board.js` |
211
+ | Traces | None | N/A | `src/board.js` |
212
+ | Audit | None | N/A | `src/board.js` |
213
+
214
+ ## Shared and base libraries
215
+
216
+ | Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
217
+ | ------- | ------------------------ | --------- | ------------- | ------------------ |
218
+ | `@webex/webex-core` `WebexPlugin` | `webex`, `request`, `upload`, namespaced `config`, `logger`, children, collections | `Board`, `RealtimeService` | `workspace:*` | Keep namespace `Board` |
219
+ | `@webex/internal-plugin-mercury` `Mercury` | Socket connect, disconnect, ping/pong, reconnect, envelope routing | `RealtimeChannel` | `workspace:*` | Board config must declare every Mercury key board sockets need |
220
+ | `@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 |
221
+
222
+ ## Release and versioning
223
+
224
+ | Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
225
+ | -------- | -------------- | --------------- | ------------------ | --------------------------------- |
226
+ | @webex/internal-plugin-board | npm through `deploy:npm` | None declared; the README says internal plugins do not strictly follow semver | None declared | None declared in the package; the workspace owns changelog generation |
227
+
228
+ ## Commands and generated artifacts
229
+
230
+ | Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
231
+ | ------------------- | ----- | ------ | --------------------- | ---------------------- |
232
+ | `yarn workspace @webex/internal-plugin-board build:src` | Package scripts | `src` | Writes `dist/` through `webex-legacy-tools` (JavaScript, TypeScript, source maps) | `dist/` is generated and never edited by hand; unit tests load it |
233
+ | `yarn workspace @webex/internal-plugin-board test:unit` | Package scripts | `test/unit/spec` | Jest run | Requires a current `dist/` |
234
+ | `yarn workspace @webex/internal-plugin-board test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
235
+ | `yarn workspace @webex/internal-plugin-board test:browser` | Package scripts | `test/unit/spec`, `test/integration/spec` | Karma run against live services | Needs test-user credentials; not a routine verification command |
236
+
237
+ ## Cross-repository topology
238
+
239
+ | Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
240
+ | ----------------------------- | ------------ | ------------------------------ | ----- | --------------------- |
241
+ | `@webex/webex-core` (workspace sibling; module specs consulted) | Consumes | `WebexPlugin`, `registerInternalPlugin`, payload transformer, services, `Page`, request, upload | @webex/web-sdk | None beyond plugin registration |
242
+ | `@webex/internal-plugin-mercury` (workspace sibling; module spec consulted) | Consumes and extends | `Mercury` class, shared socket, events | @webex/web-sdk | Shared mode needs a registered Mercury connection |
243
+ | `@webex/internal-plugin-encryption` (workspace sibling; no spec, code consulted) | Consumes | Encryption and KMS API, `encryptKmsMessage` transform | @webex/web-sdk | `encryptChannel` runs before `encryptKmsMessage` |
244
+ | `@webex/internal-plugin-feature` (workspace sibling; module spec consulted) | Consumes | `web-shared-mercury` toggle | @webex/web-sdk | None |
245
+ | `@webex/internal-plugin-conversation` (workspace sibling; no spec, code consulted) | Consumes | Import side effect; conversation objects | @webex/web-client, @webex/web-sdk | None |
246
+ | `@webex/internal-plugin-device` (workspace sibling; module spec consulted) | Consumes, undeclared | `deviceType`, `webSocketUrl` | @webex/web-client, @webex/web-sdk | Registered through mercury |
247
+ | `@webex/common` (workspace sibling; module spec consulted) | Consumes | `tap` | @webex/web-client, @webex/web-sdk | None |
248
+ | `@webex/webex-server`, `@webex/recipe-private-web-client` (workspace siblings, no spec) | Provides to | Import side effect registering `board` | @webex/web-sdk | None |
249
+ | Board, ACL, Files, KMS, and Mercury services | Consumes | REST and socket shapes under Protocol and wire format | Not recorded in this repository | Cluster-local board URL for create and list |
250
+
251
+ ## Security architecture
252
+
253
+ ```mermaid
254
+ flowchart LR
255
+ Client[First-party client] -->|plain content| Board[Board plugin]
256
+ Board -->|encrypt with channel key| Enc[encryption plugin]
257
+ Enc -->|keys and wrapped messages| KMS[KMS]
258
+ Board -->|ciphertext, user token| BS[Board service]
259
+ Board -->|encrypted image bytes| Files[Webex Files]
260
+ Board -->|kmsMessage delete authorization| ACL[ACL service]
261
+ Board -->|anonymous KMS authorization| BS
262
+ BS -->|kmsResponse with bearer| Board
263
+ Board -->|bearer| Client
264
+ ```
265
+
266
+ - Board content, image metadata, and image bytes are encrypted on the client; the board service and
267
+ Files store ciphertext. Decryption needs the channel key, which KMS releases to holders of the
268
+ conversation's authorization.
269
+ - Channel creation authorizes the conversation's KMS resource (`kmsMessage.userIds`) to the new
270
+ channel key; deletion removes that authorization and the ACL link.
271
+ - `authorizeMediaInjector` creates an anonymous KMS authorization for the transcoder and returns its
272
+ bearer to the caller; treat it as a secret. `unauthorizeMediaInjector` removes every authorization
273
+ on the board's KRO.
274
+ - The user token and transport security come from webex-core; KMS cryptography comes from the
275
+ encryption plugin.
276
+
277
+ ## Domain language
278
+
279
+ | Term | Repository-specific meaning | Authoritative source |
280
+ | ---- | --------------------------- | -------------------- |
281
+ | Board, channel | A whiteboard stored by the board service and bound to a conversation ACL | `src/board.js` |
282
+ | Content | One encrypted board item (curve, text, or image reference), typed `STRING` or `FILE` | `src/board.js` |
283
+ | SCR | Secure content reference: the encrypted locator and key material of an uploaded file | encryption plugin (sibling package) |
284
+ | Binding | The Mercury route of a board, `board.` plus the transformed channel id | `src/realtime.js` |
285
+ | Shared Mercury | Carrying board activity on the SDK's main Mercury socket | `src/realtime.js` |
286
+ | Media injector, transcoder | The service that renders a shared whiteboard for mobile receivers | `src/board.js` |
287
+
288
+ ## References and maintenance
289
+
290
+ - Decisions: [adr/](adr/index.md)
291
+ - Instantiated specifications and routing: [specs/README.md](specs/README.md)
292
+ - Repository rules and patterns: [package agent instructions](../AGENTS.md)
293
+ - Update this document in the same change that alters package boundaries, resource ownership,
294
+ cross-resource interaction, or cross-cutting architecture.
@@ -0,0 +1,101 @@
1
+ ---
2
+ type: Getting Started
3
+ title: Getting started
4
+ description: Local setup, build, run, and test routing for @webex/internal-plugin-board.
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-12T07:38:37Z
13
+ validation_status: pass
14
+ -->
15
+
16
+ # Getting started
17
+
18
+ Onboarding for **@webex/internal-plugin-board**, a package inside the `webex-js-sdk` Yarn workspace.
19
+ Run every command from the workspace root.
20
+
21
+ ## Prerequisites
22
+
23
+ | Tool or access | Version or requirement |
24
+ | -------------- | ---------------------- |
25
+ | 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 `>=16`. The workspace root `package.json` `engines.node` still reads `18.x`, which conflicts with the other two; the unit tests pass on 22.14 |
26
+ | Yarn | `yarn@3.4.1` (`packageManager` in the workspace root `package.json`) |
27
+ | Registry or account access | N/A for building and unit tests; `test:browser` needs live Webex services and test-user credentials |
28
+
29
+ ## Install
30
+
31
+ ```bash
32
+ yarn
33
+ ```
34
+
35
+ The workspace `deploy.yml` workflow installs with the same command.
36
+
37
+ Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the workspace root; see [Prebuilding](../../../../CONTRIBUTING.md#prebuilding).
38
+
39
+ ## Build
40
+
41
+ ```bash
42
+ yarn workspace @webex/internal-plugin-board build
43
+ ```
44
+
45
+ `build` runs `build:src`, which writes `dist/` through `webex-legacy-tools`. `dist/` is ignored by Git.
46
+
47
+ ## Run
48
+
49
+ N/A — this is a library with no start script. Import `@webex/internal-plugin-board` and create a
50
+ webex instance; the plugin is then `webex.internal.board`.
51
+
52
+ ## Tests
53
+
54
+ ```bash
55
+ yarn workspace @webex/internal-plugin-board build:src
56
+ yarn workspace @webex/internal-plugin-board test:unit
57
+ yarn workspace @webex/internal-plugin-board test:style
58
+ ```
59
+
60
+ | Tier | Command | Test location | Framework | External dependencies |
61
+ | ---- | ------- | ------------- | --------- | --------------------- |
62
+ | Unit | `yarn workspace @webex/internal-plugin-board test:unit` | `test/unit/spec` | jest runner through `webex-legacy-tools`, with chai, sinon, `@webex/test-helper-mock-webex`, and `@webex/test-helper-mock-web-socket` | A current `dist/` (the specs import the package by name) |
63
+ | Integration | `yarn workspace @webex/internal-plugin-board test:browser` (karma through `webex-legacy-tools --integration`); not a routine verification command | `test/unit/spec`, `test/integration/spec` | karma | Live Webex services and test users from `@webex/test-helper-test-users`; `test/integration/spec/realtime.js` and `test/integration/spec/sharing-mercury.js` are skipped |
64
+
65
+ - Coverage or quality gate: none; the legacy Jest configuration sets no threshold, and the developer
66
+ confirmed that no outside gate applies
67
+ - Enforcement source: N/A
68
+ - Test environment or QA dependencies: none for unit tests
69
+
70
+ There is no `test:integration` script. `yarn workspace @webex/internal-plugin-board test` chains
71
+ `test:style`, `test:unit`, `test:integration`, and `test:browser`, so it stops with "Couldn't find a
72
+ script named test:integration".
73
+
74
+ ## Configuration and secrets
75
+
76
+ - Required configuration: none for unit tests. At runtime `webex.config.board` supplies page sizes,
77
+ socket timers, and the binding prefix (defaults in `src/config.js`); the timers read
78
+ `MERCURY_PING_INTERVAL`, `MERCURY_PONG_TIMEOUT`, and `MERCURY_FORCE_CLOSE_DELAY` when set
79
+ - Secret source: N/A for unit tests, which use fake values; live runs use the test-user credentials of
80
+ the workspace test helpers
81
+ - Package or artifact access: N/A
82
+ - Required neighboring packages: `@webex/webex-core`, `@webex/common`, and the mercury, encryption,
83
+ conversation, and feature plugins resolve through the workspace
84
+ - Platform, simulator, device, or SDK setup: Node for unit tests; a karma browser for `test:browser`
85
+ - Never commit credentials or copy production secrets into a local config.
86
+
87
+ ## First-run verification
88
+
89
+ 1. Run `yarn workspace @webex/internal-plugin-board build:src`.
90
+ 2. Run `yarn workspace @webex/internal-plugin-board test:unit` and check that three suites and 58
91
+ tests pass.
92
+ 3. Run `yarn workspace @webex/internal-plugin-board test:style`.
93
+
94
+ Expected result: all three commands exit zero. `test:style` prints `require-jsdoc` warnings and no
95
+ errors.
96
+
97
+ ## Next steps
98
+
99
+ - [Package architecture](architecture.md)
100
+ - [Specification registry](specs/README.md)
101
+ - [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-12T07:38:37Z
10
+ validation_status: pass
11
+ -->
12
+
13
+ # @webex/internal-plugin-board documentation
14
+
15
+ Doc map for developers and agents working on the internal board (whiteboard) 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 board 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 `src/board.js` and `src/realtime.js` for the plugin API.
37
+
38
+ ## Related repository resources
39
+
40
+ - [`README.md`](../README.md) — retained npm usage page; context only, see
41
+ [ADR-0001](adr/0001-retain-product-readme.md)
42
+ - [`AGENTS.md`](../AGENTS.md) — agent instructions for this package
@@ -0,0 +1,66 @@
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-12T07:38:37Z
13
+ validation_status: pass
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-sdk | Draft | 2026-11-12 |
38
+ | Board plugin | Module | `src/docs/README.md` | @webex/web-sdk | Draft | 2026-11-12 |
39
+ | Retain the product README | ADR | `docs/adr/0001-retain-product-readme.md` | @webex/web-sdk | Accepted | 2026-11-12 |
40
+
41
+ ### Module registry
42
+
43
+ | Module | Responsibility | Manifest coverage state | Start here |
44
+ | --- | --- | --- | --- |
45
+ | `src/` | `webex.internal.board`: board channels bound to conversation ACLs, KMS-encrypted contents, image upload, transcoder authorization, and live board activity over Mercury | Partial | `src/docs/README.md` |
46
+
47
+ Generator-side field measurement for the module is complete (93.3%, assessed 2026-11-12). Independent semantic validation passed on 2026-11-12 using validator runtime 01a1cea3-02b3-7c72-ac41-7a08f195b1f3, with zero Blocking findings. A characterization baseline and promotion past Partial also remain pending.
48
+
49
+ ## Change and verification routing
50
+
51
+ | Change affects | Load and update | Verification route |
52
+ | -------------- | --------------- | ------------------ |
53
+ | Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn workspace @webex/internal-plugin-board test:unit` after `build:src`, and the module spec |
54
+ | A stable code, package, or component boundary | `src/docs/README.md` | Module tests plus affected contracts |
55
+ | A public API or package contract | The owning architecture section, `src/docs/README.md`, and the native definition in `src/board.js`, `src/realtime.js`, `src/config.js`, `src/index.js`, or `package.json` | Unit tests; check `@webex/webex-server` and `@webex/recipe-private-web-client` imports |
56
+
57
+ ## Module and contract registration
58
+
59
+ The module specification is generated at the exact `modules[].canonical_spec` path recorded in
60
+ `.sdd/manifest.json`. Register every module and submodule in the Module registry above in manifest tree
61
+ order.
62
+
63
+ Contracts are registered in `.sdd/manifest.json` `contract_catalog` and indexed in
64
+ [`docs/architecture.md`](../architecture.md#public-and-consumer-surfaces) with a stable ID, publication
65
+ state, native source, and owning module. This page provides navigation and ownership rather than a copied
66
+ contract.
package/package.json CHANGED
@@ -25,23 +25,23 @@
25
25
  "@webex/eslint-config-legacy": "0.0.0",
26
26
  "@webex/jest-config-legacy": "0.0.0",
27
27
  "@webex/legacy-tools": "0.0.0",
28
- "@webex/test-helper-chai": "3.12.0",
29
- "@webex/test-helper-file": "3.12.0",
30
- "@webex/test-helper-mocha": "3.12.0",
31
- "@webex/test-helper-mock-web-socket": "3.12.0",
32
- "@webex/test-helper-mock-webex": "3.12.0",
33
- "@webex/test-helper-test-users": "3.12.0",
28
+ "@webex/test-helper-chai": "3.13.0-next.2",
29
+ "@webex/test-helper-file": "3.13.0-next.2",
30
+ "@webex/test-helper-mocha": "3.13.0-next.2",
31
+ "@webex/test-helper-mock-web-socket": "3.13.0-next.2",
32
+ "@webex/test-helper-mock-webex": "3.13.0-next.2",
33
+ "@webex/test-helper-test-users": "3.13.0-next.2",
34
34
  "eslint": "^8.24.0",
35
35
  "prettier": "^2.7.1",
36
36
  "sinon": "^9.2.4"
37
37
  },
38
38
  "dependencies": {
39
- "@webex/common": "3.12.0",
40
- "@webex/internal-plugin-conversation": "3.12.0",
41
- "@webex/internal-plugin-encryption": "3.12.0",
42
- "@webex/internal-plugin-feature": "3.12.0",
43
- "@webex/internal-plugin-mercury": "3.12.0",
44
- "@webex/webex-core": "3.12.0",
39
+ "@webex/common": "3.13.0-next.2",
40
+ "@webex/internal-plugin-conversation": "3.13.0-next.10",
41
+ "@webex/internal-plugin-encryption": "3.13.0-next.10",
42
+ "@webex/internal-plugin-feature": "3.13.0-next.6",
43
+ "@webex/internal-plugin-mercury": "3.13.0-next.6",
44
+ "@webex/webex-core": "3.13.0-next.6",
45
45
  "ampersand-collection": "^2.0.2",
46
46
  "es6-promise-series": "^0.2.2",
47
47
  "lodash": "^4.17.21",
@@ -56,5 +56,5 @@
56
56
  "test:style": "eslint ./src/**/*.*",
57
57
  "test:unit": "webex-legacy-tools test --unit --runner jest"
58
58
  },
59
- "version": "3.12.0"
59
+ "version": "3.13.0-next.10"
60
60
  }