@webex/internal-plugin-voicea 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.
- package/.repo-context.json +443 -0
- package/.sdd/manifest.json +397 -0
- package/AGENTS.md +212 -0
- package/dist/constants.js +4 -3
- package/dist/constants.js.map +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/types/constants.d.ts +2 -1
- package/dist/types/index.d.ts +6 -3
- package/dist/types/voicea-plugin.d.ts +23 -0
- package/dist/types/voicea.d.ts +89 -37
- package/dist/types/voicea.types.d.ts +19 -1
- package/dist/voicea-plugin.js +59 -0
- package/dist/voicea-plugin.js.map +1 -0
- package/dist/voicea.js +273 -173
- package/dist/voicea.js.map +1 -1
- package/dist/voicea.types.js.map +1 -1
- package/docs/adr/0001-retain-product-readme.md +100 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +262 -0
- package/docs/getting-started.md +109 -0
- package/docs/index.md +43 -0
- package/docs/specs/README.md +68 -0
- package/package.json +9 -9
- package/schemas/repo-context.schema.json +796 -0
- package/src/constants.ts +2 -1
- package/src/docs/README.md +551 -0
- package/src/index.ts +7 -5
- package/src/voicea-plugin.ts +33 -0
- package/src/voicea.ts +274 -178
- package/src/voicea.types.ts +22 -0
- package/test/unit/spec/voicea-plugin.js +83 -0
- package/test/unit/spec/voicea.js +836 -1125
|
@@ -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,109 @@
|
|
|
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
|
+
Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the
|
|
38
|
+
workspace root; see [Prebuilding](../../../../CONTRIBUTING.md#prebuilding).
|
|
39
|
+
|
|
40
|
+
## Build
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
yarn workspace @webex/internal-plugin-voicea build:src
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
`build:src` writes `dist/` through `webex-legacy-tools` and then runs `build`, which is `tsc` with the
|
|
47
|
+
workspace `emitDeclarationOnly` setting: it type-checks `src` and writes declarations to `dist/types`.
|
|
48
|
+
`dist/` is ignored by Git.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
yarn workspace @webex/internal-plugin-voicea build
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Run `build` alone to type-check without rebuilding the JavaScript.
|
|
55
|
+
|
|
56
|
+
## Run
|
|
57
|
+
|
|
58
|
+
N/A — this is a library with no start script. Importing `@webex/internal-plugin-voicea` (or the
|
|
59
|
+
`webex` package) registers `webex.internal.voicea`; plugin-meetings creates channels from it.
|
|
60
|
+
|
|
61
|
+
## Tests
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
yarn workspace @webex/internal-plugin-voicea build:src
|
|
65
|
+
yarn workspace @webex/internal-plugin-voicea test:unit
|
|
66
|
+
yarn workspace @webex/internal-plugin-voicea test:style
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
| Tier | Command | Test location | Framework | External dependencies |
|
|
70
|
+
| ---- | ------- | ------------- | --------- | --------------------- |
|
|
71
|
+
| 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) |
|
|
72
|
+
|
|
73
|
+
- Coverage or quality gate: none; the legacy Jest configuration sets no threshold, and the developer
|
|
74
|
+
confirmed that no outside gate applies
|
|
75
|
+
- Enforcement source: N/A
|
|
76
|
+
- Test environment or QA dependencies: none for unit tests
|
|
77
|
+
|
|
78
|
+
The specs import this package's `src` directly, so a stale local `dist/` of this package does not
|
|
79
|
+
affect them. `test:browser` runs `webex-legacy-tools test --integration --runner karma`, but the
|
|
80
|
+
package has no `test/integration` directory. `yarn workspace @webex/internal-plugin-voicea test`
|
|
81
|
+
chains style, unit, `test:integration`, and browser runs, and stops at `test:integration`, which is not
|
|
82
|
+
defined in this package's `package.json`.
|
|
83
|
+
|
|
84
|
+
## Configuration and secrets
|
|
85
|
+
|
|
86
|
+
- Required configuration: none; the plugin is registered with empty options and reads no `webex.config`
|
|
87
|
+
key
|
|
88
|
+
- Secret source: N/A; the package holds no secret
|
|
89
|
+
- Package or artifact access: N/A
|
|
90
|
+
- Required neighboring packages: `@webex/webex-core` and `@webex/internal-plugin-llm` resolve through
|
|
91
|
+
the workspace; the unit specs also load `@webex/internal-plugin-mercury`
|
|
92
|
+
- Platform, simulator, device, or SDK setup: none
|
|
93
|
+
- Never commit credentials or copy production secrets into a local config.
|
|
94
|
+
|
|
95
|
+
## First-run verification
|
|
96
|
+
|
|
97
|
+
1. Run `yarn workspace @webex/internal-plugin-voicea build:src`.
|
|
98
|
+
2. Run `yarn workspace @webex/internal-plugin-voicea test:unit` and check that three suites pass with
|
|
99
|
+
84 cases.
|
|
100
|
+
3. Run `yarn workspace @webex/internal-plugin-voicea test:style`.
|
|
101
|
+
|
|
102
|
+
Expected result: all three commands exit zero. `test:style` prints one "File ignored" warning, for
|
|
103
|
+
`src/docs/README.md`.
|
|
104
|
+
|
|
105
|
+
## Next steps
|
|
106
|
+
|
|
107
|
+
- [Package architecture](architecture.md)
|
|
108
|
+
- [Specification registry](specs/README.md)
|
|
109
|
+
- [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.
|
|
18
|
-
"@webex/internal-plugin-mercury": "3.
|
|
19
|
-
"@webex/webex-core": "3.
|
|
17
|
+
"@webex/internal-plugin-llm": "3.13.0-next.10",
|
|
18
|
+
"@webex/internal-plugin-mercury": "3.13.0-next.10",
|
|
19
|
+
"@webex/webex-core": "3.13.0-next.10",
|
|
20
20
|
"uuid": "^3.3.2"
|
|
21
21
|
},
|
|
22
22
|
"browserify": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
32
32
|
"@webex/jest-config-legacy": "0.0.0",
|
|
33
33
|
"@webex/legacy-tools": "0.0.0",
|
|
34
|
-
"@webex/test-helper-chai": "3.
|
|
35
|
-
"@webex/test-helper-mocha": "3.
|
|
36
|
-
"@webex/test-helper-mock-web-socket": "3.
|
|
37
|
-
"@webex/test-helper-mock-webex": "3.
|
|
38
|
-
"@webex/test-helper-test-users": "3.
|
|
34
|
+
"@webex/test-helper-chai": "3.13.0-next.4",
|
|
35
|
+
"@webex/test-helper-mocha": "3.13.0-next.4",
|
|
36
|
+
"@webex/test-helper-mock-web-socket": "3.13.0-next.4",
|
|
37
|
+
"@webex/test-helper-mock-webex": "3.13.0-next.4",
|
|
38
|
+
"@webex/test-helper-test-users": "3.13.0-next.4",
|
|
39
39
|
"eslint": "^8.24.0",
|
|
40
40
|
"prettier": "^2.7.1",
|
|
41
41
|
"sinon": "^9.2.4"
|
|
@@ -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.
|
|
52
|
+
"version": "3.13.0-next.10"
|
|
53
53
|
}
|