@webex/plugin-device-manager 3.13.0-next.7 → 3.13.0-next.9
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 +489 -0
- package/.sdd/manifest.json +416 -0
- package/AGENTS.md +216 -0
- package/dist/device-manager.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +103 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +279 -0
- package/docs/getting-started.md +131 -0
- package/docs/index.md +44 -0
- package/docs/specs/README.md +69 -0
- package/package.json +8 -8
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +525 -0
|
@@ -0,0 +1,103 @@
|
|
|
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-13T02:25: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-13T03:13:49Z
|
|
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-13 |
|
|
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 DeviceManager service"), a warning that the plugin is under active development and
|
|
32
|
+
that breaking changes will happen, an install command, a pointer to the developer portal and API docs,
|
|
33
|
+
a samples command, a connect snippet, and a "Typical flow" list of methods. No other intent, design,
|
|
34
|
+
or AI-authored spec exists in this package. The `sample/` page and the package-root `webex.js` are
|
|
35
|
+
code, not documents.
|
|
36
|
+
|
|
37
|
+
The README's examples do not run as written:
|
|
38
|
+
|
|
39
|
+
| README content | Code |
|
|
40
|
+
| -------------- | ---- |
|
|
41
|
+
| The README's samples command, `samples:devicemanager` | The workspace `package.json` defines no such script, and `sample/index.html` loads a `../webex.min.js` that nothing builds |
|
|
42
|
+
| The connect snippet reads `webex` in `if (!webex)` without declaring it | Reading an undeclared variable throws a `ReferenceError` |
|
|
43
|
+
| "Typical flow" chains `getAll().refresh().search()…` | `getAll` returns an array, so `.refresh` is undefined on it; every other method returns a promise (`src/device-manager.js`) |
|
|
44
|
+
| The list names twelve methods | `src/device-manager.js` also has `get`, `upsert`, `remove`, `getAudioState`, `putAudioState`, `setVolume`, `getPairedDevice`, `getPairedMethod`, and `setPairedMethod` |
|
|
45
|
+
|
|
46
|
+
## Decision
|
|
47
|
+
|
|
48
|
+
Keep `README.md` unchanged. Do not migrate it into the module specification. Record
|
|
49
|
+
`spec_source_policy.mode` as `keep-separate` with `migrated_source_disposition` `retain`, and route
|
|
50
|
+
`README.md` in `spec_sources` as `reference-only` and `context-only`.
|
|
51
|
+
|
|
52
|
+
The canonical behavior is `src/` plus `test/`. The module specification follows code.
|
|
53
|
+
|
|
54
|
+
## Why
|
|
55
|
+
|
|
56
|
+
The README is the npm-facing page. Fixing or filling it in is a product-doc change, not a requirement
|
|
57
|
+
of making the package SDD-ready, and the other onboarded packages in this workspace kept their READMEs
|
|
58
|
+
the same way. It makes no behavioral claim the code does not already settle: every method it lists is described
|
|
59
|
+
from code in the module specification, and its stability warning is carried into the module specification's Export stability section, so nothing is
|
|
60
|
+
lost by not migrating it.
|
|
61
|
+
|
|
62
|
+
## Alternatives considered
|
|
63
|
+
|
|
64
|
+
| Alternative | Why it was not selected |
|
|
65
|
+
| ----------- | ----------------------- |
|
|
66
|
+
| Migrate the README into `src/docs/README.md` and delete it | It holds no behavior the specification lacks; deletion was not requested |
|
|
67
|
+
| Reconcile the README with the module specification in place | Reconciling would only carry examples that do not run; the developer chose `keep-separate` |
|
|
68
|
+
| Rewrite the README during onboarding | Onboarding writes the SDD tree only and does not edit `README.md` |
|
|
69
|
+
|
|
70
|
+
## Consequences
|
|
71
|
+
|
|
72
|
+
**Positive:**
|
|
73
|
+
|
|
74
|
+
- The npm page stays stable for consumers.
|
|
75
|
+
- The module specification is the single behavioral reference.
|
|
76
|
+
|
|
77
|
+
**Negative / tradeoffs:**
|
|
78
|
+
|
|
79
|
+
- Agents must not copy the README's chained flow or samples command.
|
|
80
|
+
- The broken examples remain until a maintainer makes a separate product-doc change.
|
|
81
|
+
|
|
82
|
+
## Constraint on future changes
|
|
83
|
+
|
|
84
|
+
Do not delete `README.md` as part of spec maintenance. If its usage text changes, keep the module
|
|
85
|
+
specification aligned with code rather than with the README.
|
|
86
|
+
|
|
87
|
+
## Follow-up
|
|
88
|
+
|
|
89
|
+
- [ ] A maintainer may replace the chained flow with awaited calls, declare `webex` in the connect
|
|
90
|
+
snippet, remove or wire up the samples command, and list the other methods in a separate
|
|
91
|
+
product-doc change.
|
|
92
|
+
|
|
93
|
+
## Revisit when
|
|
94
|
+
|
|
95
|
+
- A maintainer rewrites the README or wires the `sample/` page into the workspace samples.
|
|
96
|
+
|
|
97
|
+
## References
|
|
98
|
+
|
|
99
|
+
- `README.md`
|
|
100
|
+
- `src/index.js`
|
|
101
|
+
- `src/device-manager.js`
|
|
102
|
+
- `sample/index.html`
|
|
103
|
+
- `.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-13T03:13:49Z
|
|
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-13
|
|
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,279 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Architecture
|
|
3
|
+
title: '@webex/plugin-device-manager 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-13T03:13:49Z
|
|
13
|
+
validation_status: pass
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# @webex/plugin-device-manager architecture
|
|
17
|
+
|
|
18
|
+
Canonical architecture for this package. Flow behavior lives in the
|
|
19
|
+
[Device Manager plugin specification](../src/docs/README.md). This page owns package boundaries, the
|
|
20
|
+
plugin 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; `src/collection.js` is in memory | Repository data and schema |
|
|
30
|
+
| `repo.holds_client_state` | Applicable | `src/device-manager.js` keeps the pairing state and `src/collection.js` the device list | Client state model |
|
|
31
|
+
| `repo.components_interact` | Applicable | `src/index.js` registers the class from `src/device-manager.js`, which uses `src/collection.js` and `src/constants.js` | Dependency and interaction topology |
|
|
32
|
+
| `repo.domain_data_across_components` | Applicable | Device records pass from WDM and Lyra through `src/device-manager.js` into `src/collection.js` and to callers | Object and data ownership |
|
|
33
|
+
| `repo.caches_data` | Applicable | `src/collection.js` keeps the recent-device list between calls | Caching catalog |
|
|
34
|
+
| `repo.observability_convention` | Applicable | Every log line in `src/device-manager.js` but one uses the DeviceManager#method prefix through this.logger | 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`, `.eslintrc.js`, `jest.config.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/device-manager.js` has no platform branch; `process` declares {browser: true} and is not imported | Platform matrix |
|
|
39
|
+
| `repo.published_package` | Applicable | `package.json` name is @webex/plugin-device-manager and deploy:npm publishes it | Release and versioning |
|
|
40
|
+
| `repo.embedded_in_host` | N/A | No host theme or embed API in `src/device-manager.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 WDM auxiliary devices API and the Lyra service (`src/device-manager.js`) | Cross-repository topology |
|
|
43
|
+
| `repo.security_arch_warranted` | Applicable | PINs, KMS-encrypted device names, and conversation KMS resources pass through `src/device-manager.js` | Security architecture |
|
|
44
|
+
|
|
45
|
+
## Design overview
|
|
46
|
+
|
|
47
|
+
`@webex/plugin-device-manager` is a published JavaScript library with one module. Importing it
|
|
48
|
+
registers `DeviceManager` as the public plugin `devicemanager`, reached as `webex.devicemanager`, and
|
|
49
|
+
also registers the internal `device`, `lyra`, and `search` plugins it imports. The `webex` and
|
|
50
|
+
`webex-node` bundles import it to register it; no other workspace package calls it from its source.
|
|
51
|
+
|
|
52
|
+
The plugin is a client-side coordinator for Webex room devices and Lyra spaces. It reads and edits
|
|
53
|
+
the user's recent auxiliary devices on WDM, searches for devices, pairs with one device through a Lyra
|
|
54
|
+
PIN challenge, binds a conversation to it, and changes its audio. Lyra, search, and KMS work is
|
|
55
|
+
delegated to the internal plugins; only the three WDM requests are its own.
|
|
56
|
+
|
|
57
|
+
It keeps client state: the device list in a module-level collection and the pairing state on the
|
|
58
|
+
plugin instance. Neither is persisted. Lyra `space_updated` events from Mercury update both.
|
|
59
|
+
|
|
60
|
+
## Resource inventory and responsibilities
|
|
61
|
+
|
|
62
|
+
| Resource | Kind | Responsibility | Owner | Source | Detailed specification |
|
|
63
|
+
| -------- | ---- | -------------- | ----- | ------ | ---------------------- |
|
|
64
|
+
| Device Manager plugin | package (one module) | Registration; recent devices, search, PIN pairing, binding, audio | @webex/web-client, @webex/web-sdk | src | [`src/docs/README.md`](../src/docs/README.md) |
|
|
65
|
+
|
|
66
|
+
## Interaction and execution flows
|
|
67
|
+
|
|
68
|
+
Representative end-to-end flow: an application refreshes the recent devices, pairs with one by PIN,
|
|
69
|
+
binds the current conversation to it, and mutes it.
|
|
70
|
+
|
|
71
|
+
```mermaid
|
|
72
|
+
flowchart LR
|
|
73
|
+
App[application] -->|refresh, requestPin, pair, bindSpace, mute| Plugin[webex.devicemanager]
|
|
74
|
+
Plugin -->|request api wdm| Core[webex-core request pipeline]
|
|
75
|
+
Core -->|devices/auxiliary| WDM[WDM auxiliary devices API]
|
|
76
|
+
Plugin -->|space.get, join, bindConversation, device.mute| Lyra[internal-plugin-lyra]
|
|
77
|
+
Lyra --> LyraSvc[Lyra service]
|
|
78
|
+
Plugin -->|decryptText| Enc[internal-plugin-encryption]
|
|
79
|
+
Plugin -->|people| Search[internal-plugin-search]
|
|
80
|
+
Mercury[internal-plugin-mercury] -->|event:lyra.space_updated| Plugin
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
| From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
|
|
84
|
+
| ---- | -- | ------------------------ | ------- | --------------------------------- |
|
|
85
|
+
| Application | `webex.devicemanager` | In-process calls | Devices, pairing, binding, audio | Guards and dependency errors reject; `refresh` resolves `undefined` on failure |
|
|
86
|
+
| `DeviceManager` | WDM | HTTPS through `webex.request`, `api: 'wdm'` | Recent-device list | No retry here |
|
|
87
|
+
| `DeviceManager` | Lyra plugin | In-process calls | Spaces, PIN, bindings, audio | Endpoint, PIN, unpair, and binding failures are logged and rejected; audio failures reject unlogged; failed reads in `refresh` and the Mercury handler are logged and do not reject |
|
|
88
|
+
| `DeviceManager` | Search plugin | In-process call | Device search | Logged and rethrown |
|
|
89
|
+
| `DeviceManager` | Encryption plugin | In-process call | Device-name decryption | A failure drops the device |
|
|
90
|
+
| Mercury | `DeviceManager` | Event `event:lyra.space_updated` | Pairing and product-name updates | Errors logged; never surfaced |
|
|
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/device-manager.js` | Registration, plugin base, logger, `webex.request`, service catalog | `workspace:*` in `package.json` |
|
|
97
|
+
| `@webex/internal-plugin-lyra` | Internal | `src/device-manager.js` | Spaces, PIN pairing, bindings, audio; its import registers mercury and encryption | `workspace:*` |
|
|
98
|
+
| `@webex/internal-plugin-search` | Internal | `src/device-manager.js` | Device search | `workspace:*` |
|
|
99
|
+
| `@webex/internal-plugin-device` | Internal | `src/index.js` | Registers `webex.internal.device`, whose URL Lyra joins with | `workspace:*` |
|
|
100
|
+
| `@webex/internal-plugin-mercury`, `@webex/internal-plugin-encryption` | Internal, undeclared | `src/device-manager.js` | Lyra events and name decryption | Not in `package.json`; reached through the Lyra plugin's imports |
|
|
101
|
+
| `@webex/internal-plugin-calendar`, `@webex/plugin-authorization`, `@webex/plugin-logger`, `@webex/test-helper-chai` | Internal | The package-root `webex.js` and the unit spec only | Browser harness and assertions | `workspace:*` runtime dependencies that `src/` does not import |
|
|
102
|
+
| `lodash`, `uuid` | External | `src/device-manager.js`, `src/collection.js` | Deep copy and merge; search ids | `^4.17.21`, `^3.3.2` |
|
|
103
|
+
| WDM auxiliary devices API, Lyra service | External service | `src/device-manager.js` | Device records and pairing | Resolved through the service catalog |
|
|
104
|
+
|
|
105
|
+
No import cycle exists: none of these packages imports this one.
|
|
106
|
+
|
|
107
|
+
## Public and consumer surfaces
|
|
108
|
+
|
|
109
|
+
| Surface | Type | Owner | Consumers | Compatibility policy | Source |
|
|
110
|
+
| ------- | ---- | ----- | --------- | -------------------- | ------ |
|
|
111
|
+
| `device-manager-public-sdk` — package @webex/plugin-device-manager, `webex.devicemanager` with its public methods | SDK, published to npm, public | Device Manager plugin | `webex`, `webex-node` (registration); applications (calls) | No versioning rule is declared; the README warns that breaking changes will happen | `package.json`, `src/index.js`, `src/device-manager.js` |
|
|
112
|
+
|
|
113
|
+
The WDM requests, Lyra and search payloads, and the Mercury event are a protocol this package speaks,
|
|
114
|
+
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
|
+
## Client state model
|
|
119
|
+
|
|
120
|
+
| State or slice | Owner | Transition triggers | Persistence or reset boundary |
|
|
121
|
+
| -------------- | ----- | ------------------- | ----------------------------- |
|
|
122
|
+
| Recent-device list | `DeviceCollection` (`src/collection.js`) | `refresh`, `upsert`, Lyra updates | In memory, one per loaded module; see the Caching catalog |
|
|
123
|
+
| Pairing state: pending PIN device, paired device, bound conversation | `DeviceManager` instance | `requestPin`, `pair`, `upsert`, `bindSpace`, `unbindSpace`, Lyra updates | In memory per instance; never persisted |
|
|
124
|
+
| Paired method label | `DeviceManager` instance | `setPairedMethod` | In memory per instance; default `Manual` |
|
|
125
|
+
|
|
126
|
+
Transitions, guards, and the paths that change pairing unexpectedly are specified in the module
|
|
127
|
+
specification's [State machine](../src/docs/README.md#state-machine).
|
|
128
|
+
|
|
129
|
+
## Cross-cutting architecture
|
|
130
|
+
|
|
131
|
+
### Security
|
|
132
|
+
|
|
133
|
+
- Trust boundaries and identity flow: see [Security architecture](#security-architecture).
|
|
134
|
+
- Sensitive surfaces and data classes: PINs, user-assigned device names (KMS-encrypted at rest), KMS
|
|
135
|
+
key and resource URLs, conversation URLs, ultrasound tokens, and device and space ids.
|
|
136
|
+
- Encryption and secret boundaries: see [Security architecture](#security-architecture).
|
|
137
|
+
|
|
138
|
+
### Observability and operations
|
|
139
|
+
|
|
140
|
+
- Logging and correlation: see [Observability patterns](#observability-patterns). Request tracking
|
|
141
|
+
comes from the webex-core interceptors.
|
|
142
|
+
- Metrics, traces, and audit signals: none.
|
|
143
|
+
- Ownership and operational entry points: the workspace `.github/CODEOWNERS` line for
|
|
144
|
+
`packages/@webex/plugin-device-manager` assigns `@webex/web-client` and `@webex/web-sdk`. No
|
|
145
|
+
dashboards or runbooks are recorded in this package.
|
|
146
|
+
|
|
147
|
+
### Quality attributes
|
|
148
|
+
|
|
149
|
+
- Compatibility: callers rely on the registered name `devicemanager`, the method names and their
|
|
150
|
+
option names, the `DeviceManager#<method>:` error messages, and `refresh` resolving the device array.
|
|
151
|
+
- Latency: `refresh` is one WDM request plus a catalog wait and one KMS decryption per encrypted
|
|
152
|
+
device, run in parallel; `getAll` answers from memory.
|
|
153
|
+
- Test confidence: 14 unit cases cover only `getPairedDevice` and the paired-method accessors; no
|
|
154
|
+
integration spec exists. No coverage threshold is enforced.
|
|
155
|
+
|
|
156
|
+
## Dependency and interaction topology
|
|
157
|
+
|
|
158
|
+
```mermaid
|
|
159
|
+
flowchart LR
|
|
160
|
+
Index[src/index.js] -->|registerPlugin devicemanager| Core[webex-core]
|
|
161
|
+
Index -->|import| DevP[internal-plugin-device]
|
|
162
|
+
Index --> Config[src/config.js]
|
|
163
|
+
Index --> DM[src/device-manager.js]
|
|
164
|
+
DM -->|import| LyraP[internal-plugin-lyra]
|
|
165
|
+
DM -->|import| SearchP[internal-plugin-search]
|
|
166
|
+
DM --> Coll[src/collection.js]
|
|
167
|
+
DM --> Const[src/constants.js]
|
|
168
|
+
DM -->|WebexPlugin, request, services| Core
|
|
169
|
+
LyraP -->|import| MercP[internal-plugin-mercury]
|
|
170
|
+
LyraP -->|import| EncP[internal-plugin-encryption]
|
|
171
|
+
MercP -->|event:lyra.space_updated| DM
|
|
172
|
+
DM -->|decryptText| EncP
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
| From | To | Kind | Purpose | Ordering or failure boundary |
|
|
176
|
+
| ---- | -- | ---- | ------- | ---------------------------- |
|
|
177
|
+
| `src/index.js` | webex-core | Call at import | Register `devicemanager` | First registration wins |
|
|
178
|
+
| `src/device-manager.js` | `src/collection.js` | Import | The shared device list | One object per loaded module |
|
|
179
|
+
| `src/device-manager.js` | Lyra plugin | Call | Spaces, PIN, bindings, audio | Logged and rejected, except audio (rejected unlogged) and the reads in `refresh` and the Mercury handler (logged, not rejected) |
|
|
180
|
+
| Mercury plugin | `src/device-manager.js` | Event | `lyra.space_updated` | Subscribed in `initialize`; never removed |
|
|
181
|
+
|
|
182
|
+
## Object and data ownership
|
|
183
|
+
|
|
184
|
+
| Object or state | System of record | May write | May read | Movement or lifecycle |
|
|
185
|
+
| --------------- | ---------------- | --------- | -------- | --------------------- |
|
|
186
|
+
| Recent auxiliary device | WDM (the JSDoc says Redis-backed) | `upsert` (add), `remove` (delete) | `refresh` | Fetched by `refresh`; copied into the device list |
|
|
187
|
+
| Lyra space, its occupants, PIN challenge, and bindings | Lyra service | Lyra, through `requestPin`, `pair`, `unpair`, `bindSpace`, `unbindSpace` | `requestPin`, `get`, Lyra updates | Read per call; the space object is kept as the pending or paired device |
|
|
188
|
+
| User-assigned device name | WDM metadata, encrypted with a KMS key | Not written here | `_decryptDeviceName` | Decrypted per device on a copy |
|
|
189
|
+
| Pairing state | This package (instance memory) | `DeviceManager` | Callers through `getPairedDevice` | Lost when the instance ends |
|
|
190
|
+
|
|
191
|
+
## Caching catalog
|
|
192
|
+
|
|
193
|
+
| Cache | Owner | Backend | Contents | TTL or bound | Invalidation trigger | Failure behavior |
|
|
194
|
+
| ----- | ----- | ------- | -------- | ------------ | -------------------- | ---------------- |
|
|
195
|
+
| Recent-device list | `DeviceCollection` (`src/collection.js`) | In-memory object keyed by device id, one per loaded module | WDM device records as returned, merged with later `upsert` arguments and Lyra `productName` updates | No TTL and no size bound | `refresh` empties it first; `remove` does not touch it | A failed `refresh` leaves it empty (Caller-visible failure modes in the module specification) |
|
|
196
|
+
|
|
197
|
+
## Observability patterns
|
|
198
|
+
|
|
199
|
+
| Signal | Convention or required fields | Propagation or naming rule | Primary evidence |
|
|
200
|
+
| ------- | ----------------------------- | -------------------------- | ---------------- |
|
|
201
|
+
| Logs | `this.logger.error` for guard failures and for dependency errors outside the audio methods, mostly with the error object as the second argument; `this.logger.info` for PIN capability, lost pairing, and no paired device. No PIN, device name, key URL, or search query is logged; one info line names a device id | Messages start `DeviceManager#<method>:` (one starts `DeviceCollection#_decryptDeviceName:`); a guard's log message equals its rejected `Error` message, except the `bindSpace` url guard, which logs a `DeviceManager#pair:` message | `src/device-manager.js` |
|
|
202
|
+
| Metrics | None | — | `src/device-manager.js` |
|
|
203
|
+
| Traces | None in the package; webex-core adds request tracking ids | — | `src/device-manager.js` |
|
|
204
|
+
| Audit | None | — | `src/device-manager.js` |
|
|
205
|
+
|
|
206
|
+
## Shared and base libraries
|
|
207
|
+
|
|
208
|
+
| Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
|
|
209
|
+
| ------- | ------------------------ | --------- | ------------- | ------------------ |
|
|
210
|
+
| `@webex/webex-core` `WebexPlugin` | `webex`, `logger`, `config` (by namespace), and `request` | `DeviceManager` | `workspace:*` | Keep the registered name `devicemanager` and the namespace `DeviceManager` |
|
|
211
|
+
| `@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 |
|
|
212
|
+
|
|
213
|
+
## Release and versioning
|
|
214
|
+
|
|
215
|
+
| Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
|
|
216
|
+
| -------- | -------------- | --------------- | ------------------ | --------------------------------- |
|
|
217
|
+
| @webex/plugin-device-manager | npm through `deploy:npm` | None declared in the package; the README says breaking changes can happen | None declared | None declared in the package; the workspace owns changelog generation |
|
|
218
|
+
|
|
219
|
+
## Commands and generated artifacts
|
|
220
|
+
|
|
221
|
+
| Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
|
|
222
|
+
| ------------------- | ----- | ------ | --------------------- | ---------------------- |
|
|
223
|
+
| `yarn build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
|
|
224
|
+
| `yarn build` | Package scripts | `src` | Runs `build:src` | Same output |
|
|
225
|
+
| `yarn test:unit` | Package scripts | `test/unit/spec` | Jest run through `webex-legacy-tools` | Loads `src/` by relative import |
|
|
226
|
+
| `yarn test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
|
|
227
|
+
|
|
228
|
+
## Cross-repository topology
|
|
229
|
+
|
|
230
|
+
| Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
|
|
231
|
+
| ----------------------------- | ------------- | ------------------------------ | ----- | --------------------- |
|
|
232
|
+
| `@webex/webex-core` (workspace sibling; module specs consulted) | Consumes | `registerPlugin`, `WebexPlugin`, `request`, services | @webex/web-client, @webex/web-sdk | Registered before the first instance |
|
|
233
|
+
| `@webex/internal-plugin-lyra` (workspace sibling; module spec consulted) | Consumes | Space, PIN, binding, and audio methods | @webex/web-sdk | Imported before use |
|
|
234
|
+
| `@webex/internal-plugin-search` (workspace sibling; module spec consulted) | Consumes | `people` | @webex/web-sdk | None |
|
|
235
|
+
| `@webex/internal-plugin-mercury` (workspace sibling; module spec consulted for the emit scheme) | Consumes | `event:lyra.space_updated` | @webex/web-client, @webex/web-sdk | Registered before the plugin is constructed |
|
|
236
|
+
| `@webex/internal-plugin-encryption` (workspace sibling; no spec, code consulted) | Consumes | `decryptText` | @webex/web-sdk | None |
|
|
237
|
+
| `webex`, `webex-node` (workspace siblings) | Consumed by | The plugin registration | @webex/web-sdk | None |
|
|
238
|
+
| WDM auxiliary devices API and Lyra service | Consumes | Device records, spaces, PIN challenge, bindings, audio | Not recorded in this repository | None |
|
|
239
|
+
|
|
240
|
+
## Security architecture
|
|
241
|
+
|
|
242
|
+
```mermaid
|
|
243
|
+
flowchart LR
|
|
244
|
+
Caller[caller] -->|PIN, ultrasound token, conversation url and KMS resource| Plugin[webex.devicemanager]
|
|
245
|
+
Plugin -->|SDK token| WDM[WDM]
|
|
246
|
+
Plugin -->|join with PIN, bindConversation| Lyra[Lyra plugin and service]
|
|
247
|
+
Plugin -->|key url, ciphertext| KMS[encryption plugin and KMS]
|
|
248
|
+
KMS -->|device name| Plugin
|
|
249
|
+
Plugin -->|device records| Caller
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
- This package holds no credential and no key. WDM requests carry the SDK authorization added by
|
|
253
|
+
webex-core; the Lyra, search, and encryption plugins authorize their own requests.
|
|
254
|
+
- The PIN goes to Lyra only, as the `PIN_ANSWER` join data; Lyra decides whether it is right.
|
|
255
|
+
- User-assigned device names arrive encrypted; the plugin decrypts them through the encryption plugin
|
|
256
|
+
with the key URL in the device metadata, on a copy that `refresh` then discards
|
|
257
|
+
([Pitfalls](../src/docs/README.md#pitfalls-and-constraints)).
|
|
258
|
+
- `bindSpace` passes the conversation's KMS resource object URL to Lyra, which grants the space a KMS
|
|
259
|
+
authorization on it (lyra MOD-010).
|
|
260
|
+
- Logging is described under [Observability patterns](#observability-patterns).
|
|
261
|
+
|
|
262
|
+
## Domain language
|
|
263
|
+
|
|
264
|
+
| Term | Repository-specific meaning | Authoritative source |
|
|
265
|
+
| ---- | --------------------------- | -------------------- |
|
|
266
|
+
| Auxiliary device | A device the user has used, listed by WDM under `devices/auxiliary` | `src/device-manager.js` |
|
|
267
|
+
| Lyra space | The Lyra representation of a room device, with occupants and bindings | `src/device-manager.js` |
|
|
268
|
+
| PIN challenge | A Lyra join that makes the device display a PIN the user then answers | `src/device-manager.js` |
|
|
269
|
+
| Paired device | The space this instance last paired with; gates `unpair`, binding, and every audio method except `putAudioState` | `src/device-manager.js` |
|
|
270
|
+
| Bound space | The conversation bound to the paired device (`_boundSpace`) | `src/device-manager.js` |
|
|
271
|
+
| uc-cloud | A device class whose id is prefixed with the WDM URL | `src/constants.js` |
|
|
272
|
+
|
|
273
|
+
## References and maintenance
|
|
274
|
+
|
|
275
|
+
- Decisions: [adr/](adr/index.md)
|
|
276
|
+
- Instantiated specifications and routing: [specs/README.md](specs/README.md)
|
|
277
|
+
- Repository rules and patterns: [package agent instructions](../AGENTS.md)
|
|
278
|
+
- Update this document in the same change that alters package boundaries, resource ownership,
|
|
279
|
+
cross-resource interaction, or cross-cutting architecture.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Getting Started
|
|
3
|
+
title: Getting started
|
|
4
|
+
description: Local setup, build, run, and test routing for @webex/plugin-device-manager.
|
|
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-13T03:13:49Z
|
|
13
|
+
validation_status: pass
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Getting started
|
|
17
|
+
|
|
18
|
+
Onboarding for **@webex/plugin-device-manager**, a package inside the `webex-js-sdk` Yarn workspace.
|
|
19
|
+
Run `yarn` and `yarn prebuild:modules` at the workspace root, and the package scripts from this
|
|
20
|
+
package directory, `packages/@webex/plugin-device-manager`, where `package.json` defines them. From
|
|
21
|
+
the workspace root, `yarn workspace @webex/plugin-device-manager <script>` runs the same script.
|
|
22
|
+
|
|
23
|
+
## Prerequisites
|
|
24
|
+
|
|
25
|
+
| Tool or access | Version or requirement |
|
|
26
|
+
| -------------- | ---------------------- |
|
|
27
|
+
| Node.js | Use 22.14: the workspace root `AGENTS.md` requires it and the workspace `.nvmrc` selects `lts/jod` (Node 22). This package's `engines` accepts `>=16`. The workspace root `package.json` `engines.node` reads `18.x`, which conflicts with the other pins; the build, unit tests, and lint pass on 22.14 |
|
|
28
|
+
| Yarn | `yarn@3.4.1` (`packageManager` in the workspace root `package.json`) |
|
|
29
|
+
| Registry or account access | N/A for building, unit tests, and linting |
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
yarn
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The workspace `deploy.yml` workflow installs with the same command.
|
|
38
|
+
|
|
39
|
+
On a fresh checkout, prebuild the workspace before the first package build. `yarn` does not build
|
|
40
|
+
`@webex/legacy-tools`, whose `webex-legacy-tools` binary runs this package's build and tests, or the
|
|
41
|
+
sibling packages' `dist/`:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
yarn prebuild:modules
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
It runs `yarn`, then builds the tools, the legacy tools, `@webex/webex-core`, and every package, in
|
|
48
|
+
that order (root `package.json`; see the workspace `CONTRIBUTING.md` "Prebuilding").
|
|
49
|
+
|
|
50
|
+
## Build
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
yarn build:src
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
`build:src` writes JavaScript and source maps for the five source files to `dist/` through
|
|
57
|
+
`webex-legacy-tools`. `dist/` is ignored by Git. The `build` script runs `yarn build:src`; the package
|
|
58
|
+
emits no type declarations.
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
yarn build
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Run
|
|
65
|
+
|
|
66
|
+
N/A — this is a library with no start script. Importing `@webex/plugin-device-manager` registers
|
|
67
|
+
`webex.devicemanager`. The package-root `webex.js` and the `sample/` page are manual-trial files that
|
|
68
|
+
no script builds or serves: the page loads `../webex.min.js`, which does not exist, and the
|
|
69
|
+
`samples:devicemanager` script the README names is not defined in the workspace `package.json`.
|
|
70
|
+
|
|
71
|
+
## Tests
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
yarn test:unit
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
yarn test:style
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
| Tier | Command | Test location | Framework | External dependencies |
|
|
82
|
+
| ---- | ------- | ------------- | --------- | --------------------- |
|
|
83
|
+
| Unit | `yarn test:unit` | `test/unit/spec` | jest (`webex-legacy-tools test --unit --runner jest`), sinon, `@webex/test-helper-chai` | None |
|
|
84
|
+
|
|
85
|
+
`test:style` lints `src/` with eslint through `@webex/eslint-config-legacy`.
|
|
86
|
+
|
|
87
|
+
- Coverage or quality gate: none; the package defines no coverage script, and the legacy Jest
|
|
88
|
+
configuration it re-exports sets no threshold
|
|
89
|
+
- Enforcement source: N/A
|
|
90
|
+
- Test environment or QA dependencies: none for unit tests and lint
|
|
91
|
+
|
|
92
|
+
The unit spec imports `src/` by relative path, so it does not need a fresh `dist/`. It covers only
|
|
93
|
+
`getPairedDevice` and the paired-method accessors; see the module specification's Verification
|
|
94
|
+
section for the gaps.
|
|
95
|
+
|
|
96
|
+
`yarn test:browser` (manifest command `browser-test`) runs `webex-legacy-tools test --integration
|
|
97
|
+
--runner karma`, which collects `test/integration/spec`. This package has no such directory, so the
|
|
98
|
+
command finds no file, starts no browser, prints nothing, and exits zero (checked 2026-11-13). It is
|
|
99
|
+
not listed in the table above because it verifies nothing.
|
|
100
|
+
|
|
101
|
+
Do not run the aggregate `test` script in `package.json`. It runs `test:style` and `test:unit`, then
|
|
102
|
+
exits 1 with `Couldn't find a script named "test:integration"` (checked 2026-11-13). It is
|
|
103
|
+
deliberately not a manifest command; run the commands above instead.
|
|
104
|
+
|
|
105
|
+
## Configuration and secrets
|
|
106
|
+
|
|
107
|
+
- Required configuration: none. The plugin registers the empty config `{}` (`src/config.js`)
|
|
108
|
+
- Environment overrides: none read by `src/`
|
|
109
|
+
- Secret source: N/A; the package holds no secret
|
|
110
|
+
- Package or artifact access: N/A
|
|
111
|
+
- Required neighboring packages: `@webex/webex-core`, `@webex/internal-plugin-device`,
|
|
112
|
+
`@webex/internal-plugin-lyra`, and `@webex/internal-plugin-search` resolve through the workspace;
|
|
113
|
+
mercury and encryption are registered by the Lyra plugin
|
|
114
|
+
- Platform, simulator, device, or SDK setup: none for build and tests; pairing needs a Lyra-enabled
|
|
115
|
+
room device on the user's account
|
|
116
|
+
- Never commit credentials or copy production secrets into a local config.
|
|
117
|
+
|
|
118
|
+
## First-run verification
|
|
119
|
+
|
|
120
|
+
1. Run `yarn build:src` and check that it reports `Built plugin-device-manager: 5 files`.
|
|
121
|
+
2. Run `yarn test:unit` and check that 14 tests pass.
|
|
122
|
+
3. Run `yarn test:style`.
|
|
123
|
+
|
|
124
|
+
Expected result: all three commands exit zero. `test:style` reports 5 `require-jsdoc` warnings and no
|
|
125
|
+
error in `src/`; it also prints "File ignored" for `src/docs/README.md`.
|
|
126
|
+
|
|
127
|
+
## Next steps
|
|
128
|
+
|
|
129
|
+
- [Package architecture](architecture.md)
|
|
130
|
+
- [Specification registry](specs/README.md)
|
|
131
|
+
- [Documentation index](index.md)
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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-13T03:13:49Z
|
|
10
|
+
validation_status: pass
|
|
11
|
+
-->
|
|
12
|
+
|
|
13
|
+
# @webex/plugin-device-manager documentation
|
|
14
|
+
|
|
15
|
+
Doc map for developers and agents working on the Device Manager 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 Device Manager plugin specification beside its
|
|
31
|
+
code
|
|
32
|
+
- [adr/](adr/index.md) — concrete architectural decisions; blank ADR templates remain under the
|
|
33
|
+
monorepo root `.sdd/`
|
|
34
|
+
|
|
35
|
+
This package is a library, so there is no service specification and no OpenAPI document. Exact
|
|
36
|
+
contract details live in the native sources linked from the architecture index: `package.json` and
|
|
37
|
+
`src/index.js` for the package and its registration, and `src/device-manager.js` and
|
|
38
|
+
`src/collection.js` for the API and the device list.
|
|
39
|
+
|
|
40
|
+
## Related repository resources
|
|
41
|
+
|
|
42
|
+
- [`README.md`](../README.md) — retained npm page; context only, its sample script and chained usage
|
|
43
|
+
do not run, see [ADR-0001](adr/0001-retain-product-readme.md)
|
|
44
|
+
- [`AGENTS.md`](../AGENTS.md) — agent instructions for this package
|
|
@@ -0,0 +1,69 @@
|
|
|
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-13T03:13:49Z
|
|
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-client, @webex/web-sdk | Draft | 2026-11-13 |
|
|
38
|
+
| Device Manager plugin | Module | `src/docs/README.md` | @webex/web-client, @webex/web-sdk | Draft | 2026-11-13 |
|
|
39
|
+
| Retain the product README | ADR | `docs/adr/0001-retain-product-readme.md` | @webex/web-client, @webex/web-sdk | Accepted | 2026-11-13 |
|
|
40
|
+
|
|
41
|
+
### Module registry
|
|
42
|
+
|
|
43
|
+
| Module | Responsibility | Manifest coverage state | Start here |
|
|
44
|
+
| --- | --- | --- | --- |
|
|
45
|
+
| `src/` | `webex.devicemanager`: recent devices from WDM, device search, Lyra PIN pairing, conversation binding, and audio control | Partial | `src/docs/README.md` |
|
|
46
|
+
|
|
47
|
+
Generator-side field measurement is complete (100%, assessed 2026-11-13). Independent semantic
|
|
48
|
+
validation passed on 2026-11-13 with validator runtime `01a1d2c4-873e-7eb1-bbd2-4e40457e8616` and no findings. The module remains
|
|
49
|
+
Partial pending unit cases for untested requirements, a characterization baseline, and promotion
|
|
50
|
+
review.
|
|
51
|
+
|
|
52
|
+
## Change and verification routing
|
|
53
|
+
|
|
54
|
+
| Change affects | Load and update | Verification route |
|
|
55
|
+
| -------------- | --------------- | ------------------ |
|
|
56
|
+
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn build:src`, `test:unit`, and `test:style`, and the module spec |
|
|
57
|
+
| A stable code, package, or component boundary | `src/docs/README.md` | Build, unit tests, and lint |
|
|
58
|
+
| A public method, guard, pairing transition, WDM request, or the registration | The owning architecture section, `src/docs/README.md`, and the native definition in `src/device-manager.js`, `src/collection.js`, `src/index.js`, or `package.json` | Build, unit tests, and lint; add a `test/unit/spec` case for the changed path, since most methods have none |
|
|
59
|
+
|
|
60
|
+
## Module and contract registration
|
|
61
|
+
|
|
62
|
+
The module specification is generated at the exact `modules[].canonical_spec` path recorded in
|
|
63
|
+
`.sdd/manifest.json`. Register every module and submodule in the Module registry above in manifest tree
|
|
64
|
+
order.
|
|
65
|
+
|
|
66
|
+
Contracts are registered in `.sdd/manifest.json` `contract_catalog` and indexed in
|
|
67
|
+
[`docs/architecture.md`](../architecture.md#public-and-consumer-surfaces) with a stable ID, publication
|
|
68
|
+
state, native source, and owning module. This page provides navigation and ownership rather than a copied
|
|
69
|
+
contract.
|