@webex/internal-plugin-lyra 3.13.0-next.1 → 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,99 @@
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-12T14:45:00Z
7
+ status: accepted
8
+ ---
9
+ <!-- sdd-generated-metadata
10
+ doc_kind: standing-doc
11
+ generated_from: adr@0.3.0
12
+ generated_by: claude-code
13
+ approved_by: rarajes2@cisco.com
14
+ updated_at: 2026-11-12T15:15:46Z
15
+ validation_status: pass
16
+ -->
17
+
18
+ # ADR-0001 - Retain the product README
19
+
20
+ | Field | Value |
21
+ | ------------- | ----- |
22
+ | Status | Accepted |
23
+ | Decision date | 2026-11-12 |
24
+ | Deciders | rarajes2@cisco.com (bootstrap questionnaire) |
25
+ | Supersedes | N/A |
26
+ | Superseded by | N/A |
27
+
28
+ ## Context
29
+
30
+ Onboarding found one existing document, `README.md`. It is the npm page: a one-line description
31
+ ("Plugin for the Lyra service"), an internal-plugin notice, an install command, and a Usage block. No
32
+ other intent, design, or AI-authored spec exists in this package.
33
+
34
+ The README documents no behavior that the code has:
35
+
36
+ | README content | Code |
37
+ | -------------- | ---- |
38
+ | Usage ends with the placeholder member `webex.internal.lyra.WHATEVER` | The plugin exposes `getAdvertisedEndpoint` and the `space` and `device` children with sixteen public methods (`src/lyra.js`, `src/space.js`, `src/device.js`) |
39
+ | No method, option, or result is described | Methods take space, conversation, and option objects and resolve service bodies or whole responses (`src/space.js`, `src/device.js`) |
40
+ | Nothing about the space URL or KMS messages | Methods expect a relative or an absolute `space.url`, and the bindings methods send KMS authorization messages (`src/space.js`) |
41
+
42
+ ## Decision
43
+
44
+ Keep `README.md` unchanged. Do not migrate it into the module specification. Record
45
+ `spec_source_policy.mode` as `keep-separate` with `migrated_source_disposition` `retain`, and route
46
+ `README.md` in `spec_sources` as `reference-only` and `context-only`.
47
+
48
+ The canonical behavior is `src/` plus `test/`. The module specification follows code.
49
+
50
+ ## Why
51
+
52
+ The README is the npm-facing page. Filling it in is a product-doc change, not a requirement of making
53
+ the package SDD-ready, and the other onboarded packages in this workspace kept their READMEs the same
54
+ way. It holds no behavioral claim to preserve, so nothing is lost by not migrating it.
55
+
56
+ ## Alternatives considered
57
+
58
+ | Alternative | Why it was not selected |
59
+ | ----------- | ----------------------- |
60
+ | Migrate the README into `src/docs/README.md` and delete it | It carries no behavior to migrate; deletion was not requested |
61
+ | Reconcile the README with the module specification in place | Reconciling would only preserve placeholder wording; the developer chose `keep-separate` |
62
+ | Rewrite the README during onboarding | Onboarding writes the SDD tree only and does not edit `README.md` |
63
+
64
+ ## Consequences
65
+
66
+ **Positive:**
67
+
68
+ - The npm page stays stable for consumers.
69
+ - The module specification is the single behavioral reference.
70
+
71
+ **Negative / tradeoffs:**
72
+
73
+ - Agents must not treat `README.md` as a usage reference; its Usage block names a member that does not
74
+ exist.
75
+ - The placeholder README remains until a maintainer makes a separate product-doc change.
76
+
77
+ ## Constraint on future changes
78
+
79
+ Do not delete `README.md` as part of spec maintenance. If its usage text changes, keep the module
80
+ specification aligned with code rather than with the README.
81
+
82
+ ## Follow-up
83
+
84
+ - [ ] A maintainer may replace the README Usage placeholder with real discovery, pairing, and audio
85
+ examples in a separate product-doc change.
86
+
87
+ ## Revisit when
88
+
89
+ - A maintainer rewrites the README to document the space and device methods.
90
+
91
+ ## References
92
+
93
+ - `README.md`
94
+ - `src/index.js`
95
+ - `src/config.js`
96
+ - `src/lyra.js`
97
+ - `src/space.js`
98
+ - `src/device.js`
99
+ - `.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-12T15:15:46Z
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,257 @@
1
+ ---
2
+ type: Architecture
3
+ title: '@webex/internal-plugin-lyra 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-12T15:15:46Z
13
+ validation_status: pass
14
+ -->
15
+
16
+ # @webex/internal-plugin-lyra architecture
17
+
18
+ Canonical architecture for this package. Flow behavior lives in the
19
+ [Lyra plugin specification](../src/docs/README.md). This page owns package boundaries, the plugin
20
+ registration, the contract index, and how the package meets the rest of the SDK.
21
+
22
+ Related context: [specification registry](specs/README.md) ·
23
+ [package agent instructions](../AGENTS.md)
24
+
25
+ ## Applicability
26
+
27
+ | Condition ID | Status | Evidence or reason | Owned section |
28
+ | ------------------------------------ | ---------- | ------------------ | ------------- |
29
+ | `repo.owns_datastore` | N/A | No database, file store, or migration in `src/space.js` or `src/device.js` | Repository data and schema |
30
+ | `repo.holds_client_state` | N/A | `src/lyra.js`, `src/space.js`, and `src/device.js` keep no instance state and `src/config.js` defines an empty lyra block | Client state model |
31
+ | `repo.components_interact` | Applicable | `src/lyra.js` mounts the space and device children; `src/space.js` drives the encryption and device plugins | Dependency and interaction topology |
32
+ | `repo.domain_data_across_components` | Applicable | Space objects pass between the Lyra service, the caller, and the space and device children; KMS authorizations pass through the encryption plugin (`src/space.js`) | Object and data ownership |
33
+ | `repo.caches_data` | N/A | `src/space.js` and `src/device.js` keep no cache | Caching catalog |
34
+ | `repo.observability_convention` | N/A | No log, metric, or trace call in `src/lyra.js`, `src/space.js`, or `src/device.js` | Observability patterns |
35
+ | `repo.deploys_to_infra` | N/A | Library published to npm (`package.json`). No service runtime | Runtime and infrastructure |
36
+ | `repo.shared_base_libs` | Applicable | Extends WebexPlugin and uses the legacy build, 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/space.js` uses no platform-specific API beyond Node querystring, which the browserify transforms bundle; `process` declares only {browser: true} | Platform matrix |
39
+ | `repo.published_package` | Applicable | `package.json` name is @webex/internal-plugin-lyra and deploy:npm publishes it | Release and versioning |
40
+ | `repo.embedded_in_host` | N/A | No host theme or embed API in `src/lyra.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 Lyra service, the proximity service, and the KMS (`src/lyra.js`, `src/space.js`, `src/device.js`) | Cross-repository topology |
43
+ | `repo.security_arch_warranted` | Applicable | Bindings send KMS authorization messages, and device URLs and ultrasound tokens travel in query strings (`src/space.js`, `src/lyra.js`) | Security architecture |
44
+
45
+ ## Design overview
46
+
47
+ `@webex/internal-plugin-lyra` is a published JavaScript library with one module. Importing it
48
+ registers the mercury, encryption, conversation, and feature plugins and then `Lyra` as the internal
49
+ plugin `lyra`, reached as `webex.internal.lyra`, with the children `webex.internal.lyra.space` and
50
+ `webex.internal.lyra.device`. Inside this repository `@webex/plugin-device-manager` drives it to
51
+ discover, pair with, bind, and control room devices, and `@webex/recipe-private-web-client` imports it
52
+ to register it.
53
+
54
+ A Lyra space is the Lyra service's record of a room device and its occupants. The plugin finds a space
55
+ from an ultrasound token through the proximity service, joins and leaves it on behalf of the current
56
+ device, binds conversations to it by granting the space a KMS authorization, and sends the device's
57
+ audio actions. Each method is one request; the space URL comes from the caller in one of two forms
58
+ (see `INV-001` in the module specification).
59
+
60
+ The package serves no routes and persists nothing itself.
61
+
62
+ ## Resource inventory and responsibilities
63
+
64
+ | Resource | Kind | Responsibility | Owner | Source | Detailed specification |
65
+ | -------- | ---- | -------------- | ----- | ------ | ---------------------- |
66
+ | Lyra plugin | package (one module) | Registration; proximity lookup; space occupancy and bindings; device audio | @webex/web-sdk | `src` | [`src/docs/README.md`](../src/docs/README.md) |
67
+
68
+ ## Interaction and execution flows
69
+
70
+ Representative end-to-end flow: a client pairs with a nearby room device and binds a conversation.
71
+
72
+ ```mermaid
73
+ flowchart LR
74
+ Client[client] -->|ultrasound token| Plugin[webex.internal.lyra]
75
+ Plugin -->|GET advertisements| Prox[proximity service]
76
+ Client -->|get, join| Space[webex.internal.lyra.space]
77
+ Space -->|PUT occupants/@me| Lyra[Lyra service]
78
+ Client -->|bindConversation| Space
79
+ Space -->|kmsMessage wrapped by| Enc[webex.internal.encryption]
80
+ Enc -->|POST bindings| Lyra
81
+ Client -->|mute, volume| Device[webex.internal.lyra.device]
82
+ Device -->|POST audio actions| Lyra
83
+ ```
84
+
85
+ | From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
86
+ | ---- | -- | ------------------------ | ------- | --------------------------------- |
87
+ | Client | `webex.internal.lyra` and its children | In-process calls | Discovery, pairing, bindings, audio | Rejections and some synchronous throws propagate |
88
+ | `Space` | Encryption plugin | In-process calls and the outbound KMS transform | Wrap KMS authorization messages | Its errors reject the method |
89
+ | `Space` | Device plugin | Property read | The current device URL | A missing URL makes `leave` throw |
90
+ | `Lyra`, `Space`, `Device` | Proximity and Lyra services | HTTPS through `webex.request` | Advertisements; spaces, occupants, bindings, audio | No retry here |
91
+
92
+ ## Dependency topology
93
+
94
+ | Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
95
+ | ---------- | ---- | ------- | ------- | ------------------------------------ |
96
+ | `@webex/webex-core` | Internal | `src/index.js`, `src/lyra.js`, `src/space.js`, `src/device.js` | Registration, plugin base, `webex.request`, service resolution | `workspace:*` in `package.json` |
97
+ | `@webex/internal-plugin-encryption` | Internal | `src/index.js`, `src/space.js` | KMS message wrapping | `workspace:*` |
98
+ | `@webex/common` | Internal | `src/space.js` | base64url encoding | `workspace:*` |
99
+ | `@webex/internal-plugin-mercury`, `@webex/internal-plugin-conversation`, `@webex/internal-plugin-feature` | Internal, imported, not called | `src/index.js` | Registration side effect only | `workspace:*` |
100
+ | `@webex/internal-plugin-locus` | Internal, declared, not imported by `src/` | Integration specs only | Registration for live tests | `workspace:*` |
101
+ | `@webex/internal-plugin-device` | Internal, read, not declared | `src/space.js` | `url` | Registered through the encryption plugin's imports |
102
+ | `bowser`, `uuid` | External, declared, not imported by `src/` | `bowser` in the integration specs; `uuid` nowhere | None at runtime | `^2.11.0` and `^3.3.2` in `package.json` |
103
+ | Lyra service, proximity service, KMS | External service | `src/lyra.js`, `src/space.js`, `src/device.js` | Spaces and audio; advertisements; authorizations | Resolved through the service catalog and the encryption plugin |
104
+
105
+ No import cycle exists: none of the plugins this package imports imports it back.
106
+
107
+ ## Public and consumer surfaces
108
+
109
+ | Surface | Type | Owner | Consumers | Compatibility policy | Source |
110
+ | ------- | ---- | ----- | --------- | -------------------- | ------ |
111
+ | `lyra-internal-sdk` — package @webex/internal-plugin-lyra, `webex.internal.lyra` with its `space` and `device` children, their methods, and the config | SDK, published to npm, internal | Lyra plugin | `@webex/plugin-device-manager`; `@webex/recipe-private-web-client`, which registers it; first-party clients | The README states that internal plugins do not strictly follow semantic versioning; no deprecation rule is declared | `package.json`, `src/index.js`, `src/lyra.js`, `src/space.js`, `src/device.js` |
112
+
113
+ The proximity, occupancy, binding, and audio requests are protocols this package speaks with the Lyra
114
+ and proximity services, described under *Protocol and wire format* in the
115
+ [module specification](../src/docs/README.md#protocol-and-wire-format). The other contracts this
116
+ package requires are registered in `.sdd/manifest.json` `contract_catalog`.
117
+
118
+ ## Cross-cutting architecture
119
+
120
+ ### Security
121
+
122
+ - Trust boundaries and identity flow: see [Security architecture](#security-architecture).
123
+ - Sensitive surfaces and data classes: ultrasound tokens and proofs, device URLs, conversation URLs,
124
+ and KMS authorization messages.
125
+ - Encryption and secret boundaries: see [Security architecture](#security-architecture).
126
+
127
+ ### Observability and operations
128
+
129
+ - Logging and correlation: none; the package has no log line, and request tracking comes from the
130
+ webex-core interceptors.
131
+ - Metrics, traces, and audit signals: none.
132
+ - Ownership and operational entry points: `.github/CODEOWNERS` at the workspace root has no line for
133
+ this package, so its default rule assigns it to `@webex/web-sdk`. No dashboards or runbooks are
134
+ recorded in this package.
135
+
136
+ ### Quality attributes
137
+
138
+ - Compatibility: clients rely on the registered name `lyra`, the child names `space` and `device`,
139
+ the method names and argument orders, which methods resolve a body and which the whole response,
140
+ and the `space.url` form each method expects.
141
+ - Footprint: five source files; runtime imports are webex-core, common, the four plugins in
142
+ `src/index.js`, and Node `querystring`.
143
+ - Test confidence: 20 unit cases cover argument guards, the `join` bodies, the proximity request, and
144
+ the `setVolume` default; registration, `list`, `leave`, the bindings success paths, and most device
145
+ requests have no unit case. No coverage threshold is enforced.
146
+
147
+ ## Dependency and interaction topology
148
+
149
+ ```mermaid
150
+ flowchart LR
151
+ Index[src/index.js] -->|registerInternalPlugin lyra| Core[webex-core]
152
+ Index -->|import| Merc[internal-plugin-mercury]
153
+ Index -->|import| Enc[internal-plugin-encryption]
154
+ Index -->|import| Convo[internal-plugin-conversation]
155
+ Index -->|import| Feat[internal-plugin-feature]
156
+ Index --> Config[src/config.js]
157
+ Index --> Lyra[src/lyra.js]
158
+ Lyra -->|children.space| Space[src/space.js]
159
+ Lyra -->|children.device| Device[src/device.js]
160
+ Space -->|kms.prepareRequest| Enc
161
+ Space -->|base64| Common[common]
162
+ Space -.->|url, not declared| Dev[internal-plugin-device]
163
+ Lyra -->|extends WebexPlugin, request| Core
164
+ ```
165
+
166
+ | From | To | Kind | Purpose | Ordering or failure boundary |
167
+ | ---- | -- | ---- | ------- | ---------------------------- |
168
+ | `src/index.js` | webex-core | Call at import | Register `lyra` | First registration wins |
169
+ | `src/lyra.js` | `src/space.js`, `src/device.js` | `children` map | Mount `space` and `device` | Created with each `Lyra` instance |
170
+ | `src/space.js` | Encryption plugin | Calls; outbound transform | KMS wrapping | Wrap before the request |
171
+ | `src/space.js` | `webex.internal.device` | Property read | Device URL | Read at call time |
172
+
173
+ ## Object and data ownership
174
+
175
+ | Object or state | System of record | May write | May read | Movement or lifecycle |
176
+ | --------------- | ---------------- | --------- | -------- | --------------------- |
177
+ | Space, its occupants, and its bindings | Lyra service | This package, through requests | This package, then the caller | Fetched per call; not stored here |
178
+ | Space audio state | Lyra service, reported by the room device | The room device through `putAudioState`; clients through the audio actions | Clients through `getAudioState` | Reported every 10 minutes and on change; not stored here |
179
+ | Advertisements | Proximity service | The room device (outside this package) | This package | Looked up per token |
180
+ | KMS authorizations on a conversation resource | KMS | The encryption plugin, on behalf of the bindings methods | The KMS | Created on bind, deleted on unbind |
181
+ | Device `url` | Device plugin | The device plugin | This package | Read per call |
182
+
183
+ ## Shared and base libraries
184
+
185
+ | Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
186
+ | ------- | ------------------------ | --------- | ------------- | ------------------ |
187
+ | `@webex/webex-core` `WebexPlugin` | `webex`, `children`, `config`, `request` | `Lyra`, `Space`, `Device` | `workspace:*` | Keep the registered name `lyra` and the namespace `Lyra` |
188
+ | `@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 |
189
+
190
+ ## Release and versioning
191
+
192
+ | Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
193
+ | -------- | -------------- | --------------- | ------------------ | --------------------------------- |
194
+ | @webex/internal-plugin-lyra | 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 |
195
+
196
+ ## Commands and generated artifacts
197
+
198
+ | Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
199
+ | ------------------- | ----- | ------ | --------------------- | ---------------------- |
200
+ | `yarn workspace @webex/internal-plugin-lyra build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
201
+ | `yarn workspace @webex/internal-plugin-lyra build` | Package scripts | `src` | Runs `build:src` | Same output |
202
+ | `yarn workspace @webex/internal-plugin-lyra test:unit` | Package scripts | `test/unit/spec`, `dist/` | Jest run | Run `build:src` first |
203
+ | `yarn workspace @webex/internal-plugin-lyra test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
204
+
205
+ ## Cross-repository topology
206
+
207
+ | Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
208
+ | ----------------------------- | ------------- | ------------------------------ | ----- | --------------------- |
209
+ | `@webex/webex-core` (workspace sibling; module and services specs consulted) | Consumes | `registerInternalPlugin`, `WebexPlugin`, service resolution | @webex/web-sdk | Registered before the first instance |
210
+ | `@webex/internal-plugin-encryption` (workspace sibling; no spec, code consulted) | Consumes | `kms.prepareRequest`, the outbound KMS transform | @webex/web-sdk | Imported before registration |
211
+ | `@webex/common` (workspace sibling; module spec consulted) | Consumes | `base64` | @webex/web-sdk | None |
212
+ | `@webex/internal-plugin-device` (workspace sibling; module spec consulted) | Consumes | `url` | @webex/web-sdk | Device registered before `join` and `leave` |
213
+ | `@webex/internal-plugin-mercury` (workspace sibling; module spec consulted) | Imports | Registration only; the room device receives `lyra.*` events through it | @webex/web-sdk | None |
214
+ | `@webex/plugin-device-manager` (workspace sibling; no spec, code consulted) | Consumed by | Every public method except `list`, `verifyOccupant`, `getCurrentBindings`, and `deleteBinding` | @webex/web-sdk | None |
215
+ | `@webex/recipe-private-web-client` (workspace sibling) | Consumed by | The plugin registration | @webex/web-sdk | None |
216
+ | Lyra service, proximity service, KMS | Consumes | Spaces, occupants, bindings, audio; advertisements; authorizations | Not recorded in this repository | KMS wrap before a delete binding request |
217
+
218
+ ## Security architecture
219
+
220
+ ```mermaid
221
+ flowchart LR
222
+ Client[Client] -->|token in query| Prox[proximity service]
223
+ Client -->|deviceUrl in body or base64url query| Lyra[Lyra service]
224
+ Client -->|create authorization object| Enc[encryption plugin]
225
+ Enc -->|wrapped kmsMessage in body| Lyra
226
+ Client -->|delete authorization| Enc
227
+ Enc -->|wrapped kmsMessage in query| Lyra
228
+ ```
229
+
230
+ - This package holds no credential and no key. `bindConversation` asks the KMS, through the encryption
231
+ plugin's outbound transform, to authorize the space identity on the conversation's KMS resource, so
232
+ the space can decrypt that conversation; `unbindConversation` and `deleteBinding` delete that
233
+ authorization (`MOD-010`, `MOD-012`, `MOD-013` in the module spec).
234
+ - Delete KMS messages travel in a query string and are wrapped by `kms.prepareRequest` before the
235
+ request (`INV-003`).
236
+ - The ultrasound token is sent as a query parameter to the proximity service, and the device URL as a
237
+ base64url query parameter on `leave`; both reach request URLs and any URL logging downstream.
238
+ - The package writes no log line, so it adds no logging exposure of its own.
239
+
240
+ ## Domain language
241
+
242
+ | Term | Repository-specific meaning | Authoritative source |
243
+ | ---- | --------------------------- | -------------------- |
244
+ | Lyra space | The Lyra service's record of a room device, identified by `identity.id`, with occupants, bindings, and audio | `src/space.js` |
245
+ | Occupant | A user device joined to a space at `occupants/@me` | `src/space.js` |
246
+ | Pass type | The `pass.type` of an occupancy request: `MANUAL` by default for `join` (callers also send other types such as `PIN_ANSWER`), and `VERIFICATION` for `verifyOccupant` | `src/space.js` |
247
+ | Binding | A link between a space and a conversation, created with a KMS authorization for the space | `src/space.js` |
248
+ | Advertised endpoint | The proximity service's answer for an ultrasound token: the advertiser, links, and a proof | `src/lyra.js` |
249
+ | KRO | KMS resource object, `kmsResourceObjectUrl`; authorizing a user id on it shares its keys | `src/space.js` |
250
+
251
+ ## References and maintenance
252
+
253
+ - Decisions: [adr/](adr/index.md)
254
+ - Instantiated specifications and routing: [specs/README.md](specs/README.md)
255
+ - Repository rules and patterns: [package agent instructions](../AGENTS.md)
256
+ - Update this document in the same change that alters package boundaries, resource ownership,
257
+ cross-resource interaction, or cross-cutting architecture.
@@ -0,0 +1,119 @@
1
+ ---
2
+ type: Getting Started
3
+ title: Getting started
4
+ description: Local setup, build, run, and test routing for @webex/internal-plugin-lyra.
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-12T15:15:46Z
13
+ validation_status: pass
14
+ -->
15
+
16
+ # Getting started
17
+
18
+ Onboarding for **@webex/internal-plugin-lyra**, a package inside the `webex-js-sdk` Yarn workspace.
19
+ Run every command from the workspace root; package scripts run as `yarn workspace @webex/internal-plugin-lyra <script>`.
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 pins; the build, unit tests, and lint 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, unit tests, and linting |
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-lyra build:src
43
+ ```
44
+
45
+ `build:src` writes JavaScript and source maps for the five source files to `dist/` through
46
+ `webex-legacy-tools`. `dist/` is ignored by Git. The `build` script runs `build:src`; the package
47
+ emits no type declarations.
48
+
49
+ ```bash
50
+ yarn workspace @webex/internal-plugin-lyra build
51
+ ```
52
+
53
+ ## Run
54
+
55
+ N/A — this is a library with no start script. Importing `@webex/internal-plugin-lyra` registers
56
+ `webex.internal.lyra` together with the mercury, encryption, conversation, and feature plugins.
57
+
58
+ ## Tests
59
+
60
+ ```bash
61
+ yarn workspace @webex/internal-plugin-lyra test:unit
62
+ ```
63
+
64
+ ```bash
65
+ yarn workspace @webex/internal-plugin-lyra test:style
66
+ ```
67
+
68
+ | Tier | Command | Test location | Framework | External dependencies |
69
+ | ---- | ------- | ------------- | --------- | --------------------- |
70
+ | Unit | `yarn workspace @webex/internal-plugin-lyra test:unit` | `test/unit/spec` | jest through `webex-legacy-tools` and `@webex/jest-config-legacy` | None; `@webex/test-helper-mock-webex` and sinon stubs |
71
+
72
+ Run `build:src` before `test:unit`. The unit specs import `@webex/internal-plugin-lyra` by name, which
73
+ resolves to `dist/index.js`, so a stale build tests old code.
74
+
75
+ `test:style` lints `src/` with eslint through `@webex/eslint-config-legacy`.
76
+
77
+ - Coverage or quality gate: none; the package defines no coverage script, and the legacy Jest
78
+ configuration it re-exports sets no threshold
79
+ - Enforcement source: N/A
80
+ - Test environment or QA dependencies: none for unit tests and lint
81
+
82
+ `test:browser` runs `webex-legacy-tools test --integration --runner karma` over the two specs in
83
+ `test/integration/spec`, which need live test users, a `LYRA_SPACE` machine user, mercury, and the
84
+ Lyra service. On 2026-11-12 under Node 22.14 the karma bundle failed to parse `isbot` (an ES module in
85
+ the workspace `node_modules`), so the run reported "0 tests completed" and still exited zero. It is not
86
+ listed in the table above because it verifies nothing today.
87
+
88
+ `yarn workspace @webex/internal-plugin-lyra test` chains style, unit, integration, and browser runs, and stops at `test:integration`, which is not defined in this package's `package.json`.
89
+
90
+ ## Configuration and secrets
91
+
92
+ - Required configuration: none. `config.lyra` is an empty object and no code reads a key from it
93
+ (`src/config.js`)
94
+ - Environment overrides: none read by this package
95
+ - Secret source: N/A; the package holds no secret
96
+ - Package or artifact access: N/A
97
+ - Required neighboring packages: `@webex/webex-core`, `@webex/common`,
98
+ `@webex/internal-plugin-encryption`, `@webex/internal-plugin-mercury`,
99
+ `@webex/internal-plugin-conversation`, and `@webex/internal-plugin-feature` resolve through the
100
+ workspace
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-lyra build:src` and check that it reports
107
+ `Built internal-plugin-lyra: 5 files`.
108
+ 2. Run `yarn workspace @webex/internal-plugin-lyra test:unit`.
109
+ 3. Run `yarn workspace @webex/internal-plugin-lyra test:style`.
110
+
111
+ Expected result: all three commands exit zero. The unit run reports 20 passing tests in 3 suites.
112
+ `test:style` prints warnings but no errors: one `no-unreachable` warning in `src/space.js` and "File
113
+ ignored" for `src/docs/README.md`.
114
+
115
+ ## Next steps
116
+
117
+ - [Package architecture](architecture.md)
118
+ - [Specification registry](specs/README.md)
119
+ - [Documentation index](index.md)
package/docs/index.md ADDED
@@ -0,0 +1,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-12T15:15:46Z
10
+ validation_status: pass
11
+ -->
12
+
13
+ # @webex/internal-plugin-lyra documentation
14
+
15
+ Doc map for developers and agents working on the Lyra 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 Lyra 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`,
36
+ `src/index.js`, and `src/config.js` for the package and its defaults, and `src/lyra.js`,
37
+ `src/space.js`, and `src/device.js` for the API.
38
+
39
+ ## Related repository resources
40
+
41
+ - [`README.md`](../README.md) — retained npm page; context only, its Usage block is a placeholder, 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-12T15:15:46Z
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
+ | Lyra 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.lyra`: proximity lookup from an ultrasound token; the `space` child (list, get, join, leave, occupant verification, conversation bindings); the `device` child (audio state, mute, volume) | Partial | `src/docs/README.md` |
46
+
47
+ Generator-side field measurement for the module is complete (100%, assessed 2026-11-12). Independent
48
+ semantic validation passed on 2026-11-12 (0 Blocking, 0 findings); prior finding B11-001 was rechecked and
49
+ fixed. A characterization baseline and promotion past Partial remain pending.
50
+
51
+ ## Change and verification routing
52
+
53
+ | Change affects | Load and update | Verification route |
54
+ | -------------- | --------------- | ------------------ |
55
+ | Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn workspace @webex/internal-plugin-lyra build:src`, then `test:unit` and `test:style`, and the module spec |
56
+ | A stable code, package, or component boundary | `src/docs/README.md` | Build, unit tests, and lint |
57
+ | A public method, request path, query string, body, KMS message, or config default | The owning architecture section, `src/docs/README.md`, and the native definition in `src/lyra.js`, `src/space.js`, `src/device.js`, `src/index.js`, `src/config.js`, or `package.json` | Build, unit tests, and lint; check the calls in `@webex/plugin-device-manager` when a signature, a `space.url` form, or a resolved value changes |
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
@@ -26,24 +26,24 @@
26
26
  "@webex/eslint-config-legacy": "0.0.0",
27
27
  "@webex/jest-config-legacy": "0.0.0",
28
28
  "@webex/legacy-tools": "0.0.0",
29
- "@webex/test-helper-chai": "3.12.0-next.13",
30
- "@webex/test-helper-mocha": "3.12.0-next.13",
31
- "@webex/test-helper-mock-webex": "3.12.0-next.13",
32
- "@webex/test-helper-retry": "3.12.0-next.13",
33
- "@webex/test-helper-test-users": "3.12.0-next.13",
29
+ "@webex/test-helper-chai": "3.13.0-next.2",
30
+ "@webex/test-helper-mocha": "3.13.0-next.2",
31
+ "@webex/test-helper-mock-webex": "3.13.0-next.2",
32
+ "@webex/test-helper-retry": "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
  "randomstring": "^1.3.0",
37
37
  "sinon": "^9.2.4"
38
38
  },
39
39
  "dependencies": {
40
- "@webex/common": "3.12.0-next.13",
41
- "@webex/internal-plugin-conversation": "3.13.0-next.1",
42
- "@webex/internal-plugin-encryption": "3.13.0-next.1",
43
- "@webex/internal-plugin-feature": "3.12.0-next.72",
44
- "@webex/internal-plugin-locus": "3.12.0-next.79",
45
- "@webex/internal-plugin-mercury": "3.12.0-next.76",
46
- "@webex/webex-core": "3.12.0-next.71",
40
+ "@webex/common": "3.13.0-next.2",
41
+ "@webex/internal-plugin-conversation": "3.13.0-next.10",
42
+ "@webex/internal-plugin-encryption": "3.13.0-next.10",
43
+ "@webex/internal-plugin-feature": "3.13.0-next.6",
44
+ "@webex/internal-plugin-locus": "3.13.0-next.6",
45
+ "@webex/internal-plugin-mercury": "3.13.0-next.6",
46
+ "@webex/webex-core": "3.13.0-next.6",
47
47
  "bowser": "^2.11.0",
48
48
  "uuid": "^3.3.2"
49
49
  },
@@ -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.13.0-next.1"
59
+ "version": "3.13.0-next.10"
60
60
  }