@webex/internal-plugin-voicea 3.13.0-next.4 → 3.13.0-next.5

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,100 @@
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-12T08:36:43Z
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-12T09:22:36Z
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 usage page: an install command, an
31
+ import example, method examples, and a list of events. No other intent, design, or AI-authored spec
32
+ exists in this package.
33
+
34
+ Several of its claims no longer match the code:
35
+
36
+ | README claim | Code |
37
+ | ------------ | ---- |
38
+ | `webex.internal.voicea.registerAndConnect(locusUrl, datachannelUrl)` connects voicea, using the LLM plugin internally | No such method exists. `webex.internal.voicea` has only `createChannel(llmChannel?)` (`src/voicea-plugin.ts`); the caller connects the LLM channel and binds it with `switchLLMChannel` (`src/voicea.ts`) |
39
+ | Methods are called on `webex.internal.voicea` | They are methods of the `VoiceaChannel` that `createChannel` returns (`src/voicea.ts`) |
40
+ | "Toggle Captions" calls `toggleTranscribing(true)` and `toggleTranscribing(false)` | Captions are turned on by `turnOnCaptions`; `toggleTranscribing` changes transcription and turns captions on only when activating (`src/voicea.ts`) |
41
+ | `setSpokenLanguage` triggers `voicea:spokenLanguageSet` | It emits `voicea:spokenLanguageUpdate` (`src/constants.ts`) |
42
+ | The event list | It omits `voicea:spokenLanguageUpdate`, `voicea:speakerNameUpdated`, `voicea:languageDetected`, and `aibridge:newManualCaption` (`src/constants.ts`) |
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/`. Where the README differs from code, code wins and the
51
+ module specification follows code.
52
+
53
+ ## Why
54
+
55
+ The README is the npm-facing page. Correcting it is a product-doc change, not a requirement of making
56
+ the package SDD-ready, and every other onboarded package in this workspace kept its README the same
57
+ way. The module specification already records the current methods and events, so nothing in the
58
+ README needs to be preserved by migration.
59
+
60
+ ## Alternatives considered
61
+
62
+ | Alternative | Why it was not selected |
63
+ | ----------- | ----------------------- |
64
+ | Migrate the README into `src/docs/README.md` and delete it | Its behavioral claims are stale, so migrating them would carry wrong content; deletion was not requested |
65
+ | Reconcile the README with the module specification in place | Reconciling would preserve stale wording in the canonical spec; the developer chose `keep-separate` |
66
+ | Correct the README during onboarding | Onboarding writes the SDD tree only and does not edit `README.md` |
67
+
68
+ ## Consequences
69
+
70
+ **Positive:**
71
+
72
+ - The npm page stays stable for consumers.
73
+ - The module specification is the single behavioral reference.
74
+
75
+ **Negative / tradeoffs:**
76
+
77
+ - Agents must not treat `README.md` as the list of methods, events, or the connection flow.
78
+ - The stale README remains until a maintainer makes a separate product-doc change.
79
+
80
+ ## Constraint on future changes
81
+
82
+ Do not delete `README.md` as part of spec maintenance. If its usage text changes, keep the module
83
+ specification aligned with code rather than with the README.
84
+
85
+ ## Follow-up
86
+
87
+ - [ ] A maintainer may correct the README usage section in a separate product-doc change.
88
+
89
+ ## Revisit when
90
+
91
+ - A maintainer rewrites the README to document `createChannel` and the `VoiceaChannel` API.
92
+
93
+ ## References
94
+
95
+ - `README.md`
96
+ - `src/index.ts`
97
+ - `src/voicea-plugin.ts`
98
+ - `src/voicea.ts`
99
+ - `src/constants.ts`
100
+ - `.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-12T09:22:36Z
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,262 @@
1
+ ---
2
+ type: Architecture
3
+ title: '@webex/internal-plugin-voicea 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-12T09:22:36Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # @webex/internal-plugin-voicea architecture
17
+
18
+ Canonical architecture for this package. Flow behavior lives in the
19
+ [voicea channel 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/voicea.ts` | Repository data and schema |
30
+ | `repo.holds_client_state` | Applicable | Status, language, and binding fields of each channel in `src/voicea.ts` | Client state model |
31
+ | `repo.components_interact` | Applicable | `src/voicea.ts` borrows an LLM channel from internal-plugin-llm and is driven by plugin-meetings | Dependency and interaction topology |
32
+ | `repo.domain_data_across_components` | Applicable | Caption and language data arrive over the LLM channel and are handed to plugin-meetings as events from `src/voicea.ts` | Object and data ownership |
33
+ | `repo.caches_data` | N/A | `src/voicea.ts` keeps current state only, no cache | Caching catalog |
34
+ | `repo.observability_convention` | N/A | `src/voicea.ts` does not log and emits no metric; outbound frames carry a trackingId only | 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 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 | `src/voicea.ts` uses no platform-specific API; the `webex` package bundles it for browser and Node alike | Platform matrix |
39
+ | `repo.published_package` | Applicable | `package.json` name is @webex/internal-plugin-voicea and deploy:npm publishes it | Release and versioning |
40
+ | `repo.embedded_in_host` | N/A | No host theme or embed API in `src/voicea.ts` | Host integration and theming |
41
+ | `repo.exposes_commands_or_artifacts` | Applicable | build:src in `package.json` writes dist and its type declarations | Commands and generated artifacts |
42
+ | `repo.cross_repo_deps_material` | Applicable | Behavior depends on Locus controls and on the voicea service reached over the LLM data channel (`src/voicea.ts`) | Cross-repository topology |
43
+ | `repo.security_arch_warranted` | Applicable | Meeting captions, transcripts, speaker names, and manual captions pass through `src/voicea.ts` | Security architecture |
44
+
45
+ ## Design overview
46
+
47
+ `@webex/internal-plugin-voicea` is a published TypeScript library with one module. Importing it
48
+ registers `VoiceaPlugin` as the internal plugin `voicea`. The `webex` package requires it from
49
+ `src/meetings.js`, and plugin-meetings declares it as a dependency, so every full SDK build has
50
+ `webex.internal.voicea`.
51
+
52
+ The plugin is a factory. `createChannel(llmChannel?)` returns a `VoiceaChannel`, and plugin-meetings
53
+ keeps one per meeting. A channel does two kinds of work. It sends Locus `controls` requests that turn
54
+ captions, transcription, and manual captions on and set the spoken language. It also talks to the
55
+ voicea service over the meeting's LLM data channel: it announces the client, requests caption
56
+ languages, sends manual captions, manages the transcription subchannel, and re-emits inbound relay
57
+ events as `voicea:*` and `aibridge:*` events.
58
+
59
+ The LLM channel belongs to the caller. plugin-meetings creates it through
60
+ `webex.internal.llm.createChannel()`, connects it, and lends it to the voicea channel through
61
+ `switchLLMChannel`. The package serves no routes and persists nothing.
62
+
63
+ ## Resource inventory and responsibilities
64
+
65
+ | Resource | Kind | Responsibility | Owner | Source | Detailed specification |
66
+ | -------- | ---- | -------------- | ----- | ------ | ---------------------- |
67
+ | Voicea plugin and channel | package (one module) | Caption, transcription, and manual-caption control; voicea announcement and language requests; relay-event translation | @webex/web-client, @webex/web-sdk | `src` | [`src/docs/README.md`](../src/docs/README.md) |
68
+
69
+ ## Interaction and execution flows
70
+
71
+ Representative end-to-end flow: a meeting connects its LLM channel, binds the voicea channel to it,
72
+ and turns captions on; captions then arrive from the voicea service.
73
+
74
+ ```mermaid
75
+ flowchart LR
76
+ Mtg[plugin-meetings Meeting] -->|createChannel| Plugin[webex.internal.voicea]
77
+ Plugin -->|new| Ch[VoiceaChannel]
78
+ Mtg -->|createChannel, registerAndConnect| LLM[LLMChannel]
79
+ Mtg -->|switchLLMChannel| Ch
80
+ Mtg -->|turnOnCaptions| Ch
81
+ Ch -->|PUT controls| Locus[Locus]
82
+ Ch -->|publishRequest client.annc, subchannel request| LLM
83
+ LLM <-->|WebSocket| AIB[AI bridge and voicea service]
84
+ LLM -->|event:relay.event| Ch
85
+ Ch -->|voicea:newCaption and other events| Mtg
86
+ ```
87
+
88
+ | From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
89
+ | ---- | -- | ------------------------ | ------- | --------------------------------- |
90
+ | plugin-meetings | `webex.internal.voicea` | In-process call | Create one channel per meeting | None |
91
+ | plugin-meetings | `VoiceaChannel` | In-process calls and event listeners | Bind the LLM channel, change caption settings, receive captions | Throws and rejections propagate; see the module spec |
92
+ | `VoiceaChannel` | Locus `controls` | HTTPS PUT through `webex.request` | Captions, transcription, manual captions, spoken language | No retry here; webex-core interceptors apply |
93
+ | `VoiceaChannel` | `LLMChannel` | `getSocket().send` | Announcement, language request, manual caption, subchannel subscription | Skipped or thrown when disconnected, per method |
94
+ | `LLMChannel` | `VoiceaChannel` | `event:relay.event`, `online` | Inbound voicea traffic; deferred caption restore | Unknown relay types ignored |
95
+
96
+ ## Dependency topology
97
+
98
+ | Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
99
+ | ---------- | ---- | ------- | ------- | ------------------------------------ |
100
+ | `@webex/webex-core` | Internal | `src/index.ts`, `src/voicea-plugin.ts`, `src/voicea.ts` | Registration, plugin base, request function, default `config` for the trackingId prefix | `workspace:*` in `package.json` |
101
+ | `@webex/internal-plugin-llm` | Internal | `src/voicea-plugin.ts`, `src/voicea.ts` (type imports only) | The `LLMChannel` type; the channel object itself comes from the caller | `workspace:*` |
102
+ | `@webex/internal-plugin-mercury` | Internal | Unit tests only | Declared runtime dependency that `src/` never imports | `workspace:*` |
103
+ | `uuid` | External | `src/voicea.ts` | trackingId and message ids | `^3.3.2` in `package.json` |
104
+ | Locus | External service | `src/voicea.ts` | `controls` endpoint | URL from the bound LLM channel's `getLocusUrl()` |
105
+ | Voicea service through the AI bridge | External service | `src/voicea.ts` | Captions, translation, highlights, speaker names | Reached only through the LLM data channel |
106
+
107
+ No import cycle exists: this package imports webex-core and, as types, internal-plugin-llm; neither
108
+ imports this package. plugin-meetings imports this package and drives it.
109
+
110
+ ## Public and consumer surfaces
111
+
112
+ | Surface | Type | Owner | Consumers | Compatibility policy | Source |
113
+ | ------- | ---- | ----- | --------- | -------------------- | ------ |
114
+ | `voicea-internal-sdk` — package @webex/internal-plugin-voicea, `webex.internal.voicea`, `VoiceaChannel`, and its events | SDK, published to npm, internal | Voicea plugin and channel | plugin-meetings; the `webex` package for the registration side effect | The README states that internal plugins do not strictly follow semantic versioning; no deprecation rule is declared | `package.json`, `src/index.ts`, `src/voicea-plugin.ts`, `src/voicea.ts`, `src/constants.ts`, `src/voicea.types.ts` |
115
+
116
+ The Locus `controls` bodies, the data-channel frames, and the relay types are protocols this package
117
+ consumes or speaks with services, described under *Protocol and wire format* in the
118
+ [module specification](../src/docs/README.md#protocol-and-wire-format), not published contracts of
119
+ this package.
120
+
121
+ ## Client state model
122
+
123
+ | State or slice | Owner | Transition triggers | Persistence or reset boundary |
124
+ | -------------- | ----- | ------------------- | ----------------------------- |
125
+ | Announce, caption, and manual-caption statuses | `VoiceaChannel` | Channel methods and inbound announcements | In memory per channel; reset on rebind and by `deregisterEvents` |
126
+ | Bound and target LLM channel | `VoiceaChannel` (borrowed) | `switchLLMChannel` | The bound reference survives `deregisterEvents` |
127
+ | `keepTranscriptionSubscribed` | `VoiceaChannel` | Turn-on and subscription updates | Read by plugin-meetings after an LLM reconnect |
128
+ | LLM connection | The caller's `LLMChannel` | plugin-meetings | Owned by the caller |
129
+
130
+ Full detail is in the module specification's *Client state model*.
131
+
132
+ ## Cross-cutting architecture
133
+
134
+ ### Security
135
+
136
+ - Trust boundaries and identity flow: see [Security architecture](#security-architecture).
137
+ - Sensitive surfaces and data classes: participant CSI ids, which travel with every transcript and
138
+ highlight; the content classes are listed under Security architecture.
139
+ - Encryption and secret boundaries: see [Security architecture](#security-architecture).
140
+
141
+ ### Observability and operations
142
+
143
+ - Logging and correlation: none in `src/`; each outbound frame carries `trackingId`
144
+ `<trackingIdPrefix>_<uuid>`.
145
+ - Metrics, traces, and audit signals: none emitted here.
146
+ - Ownership and operational entry points: `.github/CODEOWNERS` at the workspace root assigns
147
+ `packages/@webex/internal-plugin-voicea` to `@webex/web-client` and `@webex/web-sdk`. No dashboards
148
+ or runbooks are recorded in this package.
149
+
150
+ ### Quality attributes
151
+
152
+ - Compatibility: plugin-meetings relies on the event names in `EVENT_TRIGGERS`, the
153
+ `TURN_ON_CAPTION_STATUS` values, `MeetingTranscriptPayload`, and the channel methods it calls.
154
+ - Footprint: six source files; runtime imports are webex-core, uuid, and Node `events`.
155
+ - Test confidence: 84 unit cases pass; registration through the entry, the trackingId prefix, and the
156
+ `turnOnCaptions` request body have no case. No coverage threshold is enforced.
157
+
158
+ ## Dependency and interaction topology
159
+
160
+ ```mermaid
161
+ flowchart LR
162
+ Index[src/index.ts] -->|registerInternalPlugin voicea| Core[webex-core]
163
+ Index --> Plugin[src/voicea-plugin.ts]
164
+ Plugin -->|extends WebexPlugin, webex.request| Core
165
+ Plugin -->|new| Channel[src/voicea.ts]
166
+ Channel --> Const[src/constants.ts]
167
+ Channel --> Types[src/voicea.types.ts]
168
+ Channel --> Utils[src/utils.ts]
169
+ Channel -->|default config trackingIdPrefix| Core
170
+ Channel -.->|type only| LLM[internal-plugin-llm]
171
+ Meetings[plugin-meetings] -->|createChannel, methods, listeners| Channel
172
+ ```
173
+
174
+ | From | To | Kind | Purpose | Ordering or failure boundary |
175
+ | ---- | -- | ---- | ------- | ---------------------------- |
176
+ | `src/index.ts` | webex-core | Call at import | Register `voicea` | First registration wins |
177
+ | `src/voicea-plugin.ts` | `src/voicea.ts` | Construction | One channel per call | None |
178
+ | `src/voicea.ts` | Caller's `LLMChannel` | Calls and listeners | Send frames, receive relay events | Requires a bound, connected channel per method |
179
+ | `src/voicea.ts` | `webex.request` | Call | Locus `controls` PUT | Rejection reaches the method's promise |
180
+ | plugin-meetings | `src/voicea.ts` | Calls and listeners | Drive captions per meeting | The caller binds and deregisters |
181
+
182
+ ## Object and data ownership
183
+
184
+ | Object or state | System of record | May write | May read | Movement or lifecycle |
185
+ | --------------- | ---------------- | --------- | -------- | --------------------- |
186
+ | Meeting caption settings (captions, transcribing, manual caption, spoken language) | Locus | This package through `controls`, other participants | plugin-meetings through Locus updates | Changed by request; reported back by Locus |
187
+ | Captions, highlights, speaker names | Voicea service | Voicea service | This package, then plugin-meetings | Relayed over the LLM channel and re-emitted as events; not stored |
188
+ | LLM channel | The caller (plugin-meetings) | The caller | This package, borrowed | Created, connected, and disconnected by the caller |
189
+
190
+ ## Shared and base libraries
191
+
192
+ | Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
193
+ | ------- | ------------------------ | --------- | ------------- | ------------------ |
194
+ | `@webex/webex-core` `WebexPlugin` | `webex`, `request`, namespace | `VoiceaPlugin` | `workspace:*` | Keep namespace `voicea` |
195
+ | Node `events` `EventEmitter` | `on`, `off`, `emit` | `VoiceaChannel` | Node built-in | Event names come from `EVENT_TRIGGERS` |
196
+ | `@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 |
197
+
198
+ ## Release and versioning
199
+
200
+ | Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
201
+ | -------- | -------------- | --------------- | ------------------ | --------------------------------- |
202
+ | @webex/internal-plugin-voicea | npm through `deploy:npm` | Internal plugin; the README says semantic versioning is not strictly followed | None declared | None declared in the package; the workspace owns changelog generation |
203
+
204
+ ## Commands and generated artifacts
205
+
206
+ | Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
207
+ | ------------------- | ----- | ------ | --------------------- | ---------------------- |
208
+ | `yarn workspace @webex/internal-plugin-voicea build:src` | Package scripts | `src` | Writes `dist/` through `webex-legacy-tools`, then runs `build` | `dist/` is generated and never edited by hand |
209
+ | `yarn workspace @webex/internal-plugin-voicea build` | Package scripts | `src`, `tsconfig.json` | `tsc` writes declarations to `dist/types` only | Does not compile JavaScript; `build:src` calls it |
210
+ | `yarn workspace @webex/internal-plugin-voicea test:unit` | Package scripts | `test/unit/spec` | Jest run | Specs import `src` directly; sibling packages load from their `dist/` |
211
+ | `yarn workspace @webex/internal-plugin-voicea test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
212
+
213
+ ## Cross-repository topology
214
+
215
+ | Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
216
+ | ----------------------------- | ------------ | ------------------------------ | ----- | --------------------- |
217
+ | `@webex/webex-core` (workspace sibling; module spec consulted) | Consumes | `registerInternalPlugin`, `WebexPlugin`, `webex.request`, default `config` | @webex/web-client, @webex/web-sdk | None beyond registration |
218
+ | `@webex/internal-plugin-llm` (workspace sibling; module spec consulted and stale, code used) | Consumes, by type and by borrowed instance | `LLMChannel` accessors, socket, `event:relay.event`, `online` | @webex/web-client, @webex/web-sdk | The caller connects the channel before captions can start |
219
+ | `@webex/internal-plugin-mercury` (workspace sibling; module spec consulted) | Consumes through `LLMChannel` | Default-session event names and socket | @webex/web-client, @webex/web-sdk | None |
220
+ | `@webex/plugin-meetings` (workspace sibling, no spec) | Provides to | `createChannel`, `VoiceaChannel` methods and events, exported constants and types | @webex/web-client, @webex/web-sdk | Binds after each LLM connection unless a practice session holds the binding |
221
+ | `webex` (workspace sibling, no spec) | Provides to | Import side effect registering `voicea` | @webex/web-sdk | None |
222
+ | Locus | Consumes | `controls` endpoint | Not recorded in this repository | Locus URL from the bound LLM channel |
223
+ | Voicea service and AI bridge | Consumes | Relay frames over the LLM data channel | Not recorded in this repository | The client announces before captions flow |
224
+
225
+ ## Security architecture
226
+
227
+ ```mermaid
228
+ flowchart LR
229
+ Mtg[plugin-meetings] -->|method calls| Ch[VoiceaChannel]
230
+ Ch -->|PUT controls via webex.request with user token| Locus[Locus]
231
+ Ch -->|frames on authenticated data channel| LLM[LLMChannel]
232
+ LLM -->|transcripts, speaker names| Ch
233
+ Ch -->|events with transcript text| Mtg
234
+ ```
235
+
236
+ - This package holds no credential. Locus requests reuse `webex.request`, which adds the user's
237
+ authorization through webex-core; the data channel's registration and token are owned by
238
+ internal-plugin-llm and the caller.
239
+ - Transcripts, highlights, speaker names, and manual captions are meeting content. The package passes
240
+ them to listeners and keeps none of them; it does not log them.
241
+ - Any client can send a manual caption frame when the channel is connected; whether the sender may
242
+ caption is enforced by the service, not here.
243
+
244
+ ## Domain language
245
+
246
+ | Term | Repository-specific meaning | Authoritative source |
247
+ | ---- | --------------------------- | -------------------- |
248
+ | Voicea | The Webex speech service that produces captions, translations, highlights, and assistant responses | `src/constants.ts` |
249
+ | AI bridge | The relay that carries voicea and manual-caption messages over the LLM data channel | `src/constants.ts` |
250
+ | LLM channel | The meeting data-channel WebSocket, an `LLMChannel` from internal-plugin-llm | `src/voicea-plugin.ts` |
251
+ | Announcement | The `client.annc` frame that asks the voicea service to join, answered by `voicea.annc` | `src/voicea.ts` |
252
+ | Caption service id | The `from` header of the service's announcement, used as the `to` header afterwards | `src/voicea.ts` |
253
+ | WXA / EVA | The meeting assistant; its wake, cancel, and thanks transcription types become `voicea:wxa` | `src/voicea.ts` |
254
+ | CSI | Capture source id of a participant's media, carried in transcripts and highlights | `src/voicea.types.ts` |
255
+
256
+ ## References and maintenance
257
+
258
+ - Decisions: [adr/](adr/index.md)
259
+ - Instantiated specifications and routing: [specs/README.md](specs/README.md)
260
+ - Repository rules and patterns: [package agent instructions](../AGENTS.md)
261
+ - Update this document in the same change that alters package boundaries, resource ownership,
262
+ cross-resource interaction, or cross-cutting architecture.
@@ -0,0 +1,118 @@
1
+ ---
2
+ type: Getting Started
3
+ title: Getting started
4
+ description: Local setup, build, run, and test routing for @webex/internal-plugin-voicea.
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-12T09:22:36Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # Getting started
17
+
18
+ Onboarding for **@webex/internal-plugin-voicea**, 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 `>=18`. The workspace root `package.json` `engines.node` 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 |
28
+
29
+ ## Install
30
+
31
+ ```bash
32
+ yarn
33
+ ```
34
+
35
+ The workspace `deploy.yml` workflow installs with the same command.
36
+
37
+ On a fresh checkout, prebuild the workspace before the first package build. `yarn` does not build
38
+ `@webex/legacy-tools`, whose `webex-legacy-tools` binary runs this package's build and tests, or the
39
+ sibling packages' `dist/`, which the unit tests load for `@webex/internal-plugin-mercury` and
40
+ `@webex/internal-plugin-llm`:
41
+
42
+ ```bash
43
+ yarn prebuild:modules
44
+ ```
45
+
46
+ It runs `yarn`, then builds the tools, the legacy tools, `@webex/webex-core`, and every package, in
47
+ that order (root `package.json`; see the workspace `CONTRIBUTING.md` "Prebuilding").
48
+
49
+ ## Build
50
+
51
+ ```bash
52
+ yarn workspace @webex/internal-plugin-voicea build:src
53
+ ```
54
+
55
+ `build:src` writes `dist/` through `webex-legacy-tools` and then runs `build`, which is `tsc` with the
56
+ workspace `emitDeclarationOnly` setting: it type-checks `src` and writes declarations to `dist/types`.
57
+ `dist/` is ignored by Git.
58
+
59
+ ```bash
60
+ yarn workspace @webex/internal-plugin-voicea build
61
+ ```
62
+
63
+ Run `build` alone to type-check without rebuilding the JavaScript.
64
+
65
+ ## Run
66
+
67
+ N/A — this is a library with no start script. Importing `@webex/internal-plugin-voicea` (or the
68
+ `webex` package) registers `webex.internal.voicea`; plugin-meetings creates channels from it.
69
+
70
+ ## Tests
71
+
72
+ ```bash
73
+ yarn workspace @webex/internal-plugin-voicea build:src
74
+ yarn workspace @webex/internal-plugin-voicea test:unit
75
+ yarn workspace @webex/internal-plugin-voicea test:style
76
+ ```
77
+
78
+ | Tier | Command | Test location | Framework | External dependencies |
79
+ | ---- | ------- | ------------- | --------- | --------------------- |
80
+ | Unit | `yarn workspace @webex/internal-plugin-voicea test:unit` | `test/unit/spec` | jest runner through `webex-legacy-tools`, with chai, sinon, `@webex/test-helper-mock-webex`, `@webex/test-helper-mock-web-socket`, and `jsdom-global` | Built `dist/` of the sibling packages the specs import (mercury, llm) |
81
+
82
+ - Coverage or quality gate: none; the legacy Jest configuration sets no threshold, and the developer
83
+ confirmed that no outside gate applies
84
+ - Enforcement source: N/A
85
+ - Test environment or QA dependencies: none for unit tests
86
+
87
+ The specs import this package's `src` directly, so a stale local `dist/` of this package does not
88
+ affect them. `test:browser` runs `webex-legacy-tools test --integration --runner karma`, but the
89
+ package has no `test/integration` directory. `yarn workspace @webex/internal-plugin-voicea test`
90
+ chains style, unit, `test:integration`, and browser runs, and stops at `test:integration`, which is not
91
+ defined in this package's `package.json`.
92
+
93
+ ## Configuration and secrets
94
+
95
+ - Required configuration: none; the plugin is registered with empty options and reads no `webex.config`
96
+ key
97
+ - Secret source: N/A; the package holds no secret
98
+ - Package or artifact access: N/A
99
+ - Required neighboring packages: `@webex/webex-core` and `@webex/internal-plugin-llm` resolve through
100
+ the workspace; the unit specs also load `@webex/internal-plugin-mercury`
101
+ - Platform, simulator, device, or SDK setup: none
102
+ - Never commit credentials or copy production secrets into a local config.
103
+
104
+ ## First-run verification
105
+
106
+ 1. Run `yarn workspace @webex/internal-plugin-voicea build:src`.
107
+ 2. Run `yarn workspace @webex/internal-plugin-voicea test:unit` and check that three suites pass with
108
+ 84 cases.
109
+ 3. Run `yarn workspace @webex/internal-plugin-voicea test:style`.
110
+
111
+ Expected result: all three commands exit zero. `test:style` prints one "File ignored" warning, for
112
+ `src/docs/README.md`.
113
+
114
+ ## Next steps
115
+
116
+ - [Package architecture](architecture.md)
117
+ - [Specification registry](specs/README.md)
118
+ - [Documentation index](index.md)
package/docs/index.md ADDED
@@ -0,0 +1,43 @@
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-12T09:22:36Z
10
+ validation_status: pass-with-warnings
11
+ -->
12
+
13
+ # @webex/internal-plugin-voicea documentation
14
+
15
+ Doc map for developers and agents working on the voicea caption and transcription 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 voicea channel 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.ts` for the package, `src/voicea-plugin.ts` and `src/voicea.ts` for the API, and
37
+ `src/constants.ts` and `src/voicea.types.ts` for event names and payload types.
38
+
39
+ ## Related repository resources
40
+
41
+ - [`README.md`](../README.md) — retained npm usage page; context only and partly stale, see
42
+ [ADR-0001](adr/0001-retain-product-readme.md)
43
+ - [`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-12T09:22:36Z
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
+ | Voicea caption and transcription channel | 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.internal.voicea` and `VoiceaChannel`: caption, transcription, and manual-caption control through Locus, the voicea announcement and language requests over a caller-owned LLM channel, and relay events re-emitted as `voicea:*` events | Partial | `src/docs/README.md` |
46
+
47
+ Generator-side field measurement for the module is complete (93.3%, assessed 2026-11-12).
48
+ Independent semantic validation reran on 2026-11-12 using validator runtime 01a1cef2-ab9c-7f50-baf4-643aeae8b469 and passed with warnings: 0 Blocking findings and one accepted Important command-source finding. A
49
+ 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/internal-plugin-voicea test:unit` after `build:src`, and the module spec |
56
+ | A stable code, package, or component boundary | `src/docs/README.md` | Module tests plus affected contracts |
57
+ | A public API, event, or exported constant | The owning architecture section, `src/docs/README.md`, and the native definition in `src/voicea.ts`, `src/constants.ts`, `src/voicea.types.ts`, or `package.json` | Unit tests; check the plugin-meetings callers and listeners |
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
@@ -14,9 +14,9 @@
14
14
  "node": ">=18"
15
15
  },
16
16
  "dependencies": {
17
- "@webex/internal-plugin-llm": "3.13.0-next.4",
18
- "@webex/internal-plugin-mercury": "3.13.0-next.4",
19
- "@webex/webex-core": "3.13.0-next.4",
17
+ "@webex/internal-plugin-llm": "3.13.0-next.5",
18
+ "@webex/internal-plugin-mercury": "3.13.0-next.5",
19
+ "@webex/webex-core": "3.13.0-next.5",
20
20
  "uuid": "^3.3.2"
21
21
  },
22
22
  "browserify": {
@@ -49,5 +49,5 @@
49
49
  "test:style": "eslint ./src/**/*.*",
50
50
  "test:unit": "webex-legacy-tools test --unit --runner jest"
51
51
  },
52
- "version": "3.13.0-next.4"
52
+ "version": "3.13.0-next.5"
53
53
  }