@webex/internal-plugin-lyra 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 +476 -0
- package/.sdd/manifest.json +402 -0
- package/AGENTS.md +205 -0
- package/dist/device.js +1 -1
- package/dist/lyra.js +1 -1
- package/dist/space.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +99 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +257 -0
- package/docs/getting-started.md +119 -0
- package/docs/index.md +43 -0
- package/docs/specs/README.md +68 -0
- package/package.json +13 -13
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +447 -0
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 1,
|
|
3
|
+
"repository": {
|
|
4
|
+
"name": "@webex/internal-plugin-lyra",
|
|
5
|
+
"purpose": "Internal plugin registered as webex.internal.lyra for Lyra spaces (room devices). getAdvertisedEndpoint() resolves an ultrasound token to the advertising space through the proximity service. The space child lists and reads the user's spaces, joins (default pass type MANUAL, with the current device url) and leaves them, verifies occupants, reads bindings, and binds and unbinds conversations with KMS create and delete authorization messages for the space identity; join, leave, bindConversation, and unbindConversation take a space.url relative to the lyra service, while the other space methods take an absolute one. The device child reads and reports audio state and invokes mute, unmute, and volume actions under the audio resource of the space url. It stores nothing itself.",
|
|
6
|
+
"category": "cat2-legacy",
|
|
7
|
+
"primary_languages": [
|
|
8
|
+
"javascript"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"topology": "Orchestrator-plus-components",
|
|
12
|
+
"commands": {
|
|
13
|
+
"install": {
|
|
14
|
+
"command": "yarn",
|
|
15
|
+
"source_file": "../../../.github/workflows/deploy.yml",
|
|
16
|
+
"role": "install"
|
|
17
|
+
},
|
|
18
|
+
"compile": {
|
|
19
|
+
"command": "yarn workspace @webex/internal-plugin-lyra build",
|
|
20
|
+
"source_file": "package.json",
|
|
21
|
+
"role": "compile"
|
|
22
|
+
},
|
|
23
|
+
"build": {
|
|
24
|
+
"command": "yarn workspace @webex/internal-plugin-lyra build:src",
|
|
25
|
+
"source_file": "package.json",
|
|
26
|
+
"role": "package"
|
|
27
|
+
},
|
|
28
|
+
"unit-test": {
|
|
29
|
+
"command": "yarn workspace @webex/internal-plugin-lyra test:unit",
|
|
30
|
+
"source_file": "package.json",
|
|
31
|
+
"role": "unit-test"
|
|
32
|
+
},
|
|
33
|
+
"lint": {
|
|
34
|
+
"command": "yarn workspace @webex/internal-plugin-lyra test:style",
|
|
35
|
+
"source_file": "package.json",
|
|
36
|
+
"role": "lint"
|
|
37
|
+
},
|
|
38
|
+
"deploy": {
|
|
39
|
+
"command": "yarn workspace @webex/internal-plugin-lyra deploy:npm",
|
|
40
|
+
"source_file": "package.json",
|
|
41
|
+
"role": "deploy"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"toolchain": [
|
|
45
|
+
{
|
|
46
|
+
"name": "node",
|
|
47
|
+
"version": ">=18",
|
|
48
|
+
"origin": "repo-config",
|
|
49
|
+
"source_file": "package.json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "node",
|
|
53
|
+
"version": "22.14",
|
|
54
|
+
"origin": "repo-config",
|
|
55
|
+
"source_file": "../../../AGENTS.md"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "node",
|
|
59
|
+
"version": "lts/jod",
|
|
60
|
+
"origin": "repo-config",
|
|
61
|
+
"source_file": "../../../.nvmrc"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "node",
|
|
65
|
+
"version": "18.x",
|
|
66
|
+
"origin": "repo-config",
|
|
67
|
+
"source_file": "../../../package.json"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "yarn",
|
|
71
|
+
"version": "3.4.1",
|
|
72
|
+
"origin": "repo-config",
|
|
73
|
+
"source_file": "../../../package.json"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "babel",
|
|
77
|
+
"version": "^7.17.10",
|
|
78
|
+
"origin": "repo-config",
|
|
79
|
+
"source_file": "package.json"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "eslint",
|
|
83
|
+
"version": "^8.24.0",
|
|
84
|
+
"origin": "repo-config",
|
|
85
|
+
"source_file": "package.json"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "prettier",
|
|
89
|
+
"version": "^2.7.1",
|
|
90
|
+
"origin": "repo-config",
|
|
91
|
+
"source_file": "package.json"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"tests": {
|
|
95
|
+
"unit": {
|
|
96
|
+
"command_ref": "unit-test",
|
|
97
|
+
"dir": "test/unit/spec",
|
|
98
|
+
"framework": "jest"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"quality_gates": {
|
|
102
|
+
"code_coverage": {
|
|
103
|
+
"origin": "none",
|
|
104
|
+
"declared_by": "rarajes2@cisco.com via the bootstrap questionnaire (generator check: test:unit runs webex-legacy-tools with --runner jest; jest.config.js re-exports @webex/jest-config-legacy, which sets no coverageThreshold; package.json defines no coverage script)"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"coverage_status_definitions": {
|
|
108
|
+
"specced": ">=80% public surface specced, drift <5% - spec is authoritative",
|
|
109
|
+
"partial": "40-80% specced - spec is a hint, cross-check code",
|
|
110
|
+
"untracked": "<40% specced - code is the source of truth"
|
|
111
|
+
},
|
|
112
|
+
"spec_source_policy": {
|
|
113
|
+
"mode": "keep-separate",
|
|
114
|
+
"migrated_source_disposition": "retain",
|
|
115
|
+
"disposition_decided_by": "rarajes2@cisco.com",
|
|
116
|
+
"disposition_decided_at": "2026-11-12T14:45:00Z",
|
|
117
|
+
"decided_by": "rarajes2@cisco.com",
|
|
118
|
+
"decided_at": "2026-11-12T14:45:00Z",
|
|
119
|
+
"decision_record": "docs/adr/0001-retain-product-readme.md"
|
|
120
|
+
},
|
|
121
|
+
"spec_sources": [
|
|
122
|
+
{
|
|
123
|
+
"path": "README.md",
|
|
124
|
+
"scope": "repo",
|
|
125
|
+
"role": "reference-only",
|
|
126
|
+
"canonical": false,
|
|
127
|
+
"use_by_agents": "context-only",
|
|
128
|
+
"post_migration_action": "retain",
|
|
129
|
+
"deletion_status": "not-applicable",
|
|
130
|
+
"notes": "npm page, kept unchanged under keep-separate. Its Usage block ends with the placeholder member webex.internal.lyra.WHATEVER and documents no method, option, or result; see docs/adr/0001-retain-product-readme.md."
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"modules": [
|
|
134
|
+
{
|
|
135
|
+
"path": "src",
|
|
136
|
+
"canonical_spec": "src/docs/README.md",
|
|
137
|
+
"coverage_status": "Partial",
|
|
138
|
+
"coverage_evidence": "Field coverage 100% (13/13) assessed 2026-11-12 by the generator; critical field coverage 7/7. test:unit runs test/unit/spec/lyra.js, test/unit/spec/space.js, and test/unit/spec/device.js, 20 of 20 passing under Node 22.14 after build:src on 2026-11-12; they cover the argument guards of MOD-005, MOD-010, MOD-012 to MOD-014 (INV-002), the MOD-003 request, the four MOD-006 join bodies (INV-004), and the MOD-015 setVolume default. MOD-001, MOD-002 (only indirectly), MOD-004, MOD-007 to MOD-009, MOD-011, the success paths of MOD-010 and MOD-012 to MOD-014, INV-001, and INV-003 have no unit case. The two integration specs in test/integration/spec run only under test:browser, which bundles nothing (0 tests, exit 0). build:src and test:style exit 0. No characterization baseline exists. Independent validation passed on 2026-11-12 (0 Blocking, 0 findings; validator runtime 01a1d048-7850-76c1-b613-3973b3145b4d). Prior finding B11-001 was rechecked and fixed: the five package-directory commands (yarn build, yarn build:src, yarn test:unit, yarn test:style, yarn deploy:npm) resolve to scripts defined in package.json. The first four were re-run under Node 22.14 at 2026-11-12T15:10Z and exit 0 (20 of 20 unit tests). Held at Partial pending a characterization baseline and promotion review.",
|
|
139
|
+
"last_assessed": "2026-11-12",
|
|
140
|
+
"contracts": {
|
|
141
|
+
"provides": [
|
|
142
|
+
"lyra-internal-sdk"
|
|
143
|
+
],
|
|
144
|
+
"requires": [
|
|
145
|
+
"lyra-http",
|
|
146
|
+
"proximity-http",
|
|
147
|
+
"webex-core-plugin-host",
|
|
148
|
+
"webex-core-services",
|
|
149
|
+
"internal-plugin-encryption-kms",
|
|
150
|
+
"internal-plugin-device-identity",
|
|
151
|
+
"common-base64",
|
|
152
|
+
"internal-plugin-side-effect-imports"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"section_profile": {
|
|
156
|
+
"has_tiers": false,
|
|
157
|
+
"has_ui": false,
|
|
158
|
+
"crosses_service_boundaries": true,
|
|
159
|
+
"holds_client_state": false,
|
|
160
|
+
"enforces_domain_rules": true,
|
|
161
|
+
"is_concurrent_async": true,
|
|
162
|
+
"owns_persistence": false,
|
|
163
|
+
"stateful_transitions": false,
|
|
164
|
+
"exposes_wire_protocol": true,
|
|
165
|
+
"ui_multi_screen": false,
|
|
166
|
+
"large_data_model": false,
|
|
167
|
+
"returns_caller_errors": true,
|
|
168
|
+
"module_specific_conventions": true,
|
|
169
|
+
"published_package": true,
|
|
170
|
+
"embedded_in_host": false,
|
|
171
|
+
"has_design_tradeoff": true,
|
|
172
|
+
"resolved_by": "claude-code (code evidence; bootstrap questionnaire)",
|
|
173
|
+
"resolved_at": "2026-11-12T14:50:30Z",
|
|
174
|
+
"has_submodules": false,
|
|
175
|
+
"has_submodules_computed_by": "scripts/module_tree.py",
|
|
176
|
+
"has_submodules_computed_at": "2026-11-12T14:50:30Z"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"contract_catalog": {
|
|
181
|
+
"index_path": "docs/architecture.md",
|
|
182
|
+
"definitions": {
|
|
183
|
+
"lyra-internal-sdk": {
|
|
184
|
+
"kind": "sdk",
|
|
185
|
+
"publication": "published",
|
|
186
|
+
"source_kind": "repository-path",
|
|
187
|
+
"source": "package.json",
|
|
188
|
+
"summary": "Published npm package (internal plugin). main is dist/index.js and devMain is src/index.js; no type declarations are published. Importing it imports @webex/internal-plugin-mercury, @webex/internal-plugin-encryption, @webex/internal-plugin-conversation, and @webex/internal-plugin-feature, then registers Lyra as internal plugin 'lyra' with config {lyra: {}}; the first registration of the name wins. The entry exports the default Lyra class and the named config. webex.internal.lyra exposes getAdvertisedEndpoint and the children space (list, get, join, leave, verifyOccupant, getCurrentBindings, bindConversation, unbindConversation, deleteBinding, plus _bindConversation) and device (getAudioState, putAudioState, mute, unmute, increaseVolume, decreaseVolume, setVolume); specified in src/docs/README.md."
|
|
189
|
+
},
|
|
190
|
+
"lyra-http": {
|
|
191
|
+
"kind": "http",
|
|
192
|
+
"publication": "internal",
|
|
193
|
+
"source_kind": "external",
|
|
194
|
+
"source": "Lyra service (catalog service name lyra, reached through api: 'lyra' and through caller-supplied space URLs in src/space.js and src/device.js; route definitions are not in this repository)",
|
|
195
|
+
"summary": "GET /spaces and /spaces/<id>; PUT and DELETE <space.url>/occupants/@me (body {pass: {type, data}, deviceUrl, verificationInitiation}; optional query deviceUrl); PUT <space.url>/occupants/<occupantId> with pass type VERIFICATION; GET, POST, and DELETE <space.url>/bindings with a KMS authorization message in the body or, wrapped, in the query; DELETE <space.url>/bindings/<bindingId>; GET and PUT <space.url>/audio; POST <space.url>/audio/microphones/actions/{mute,un-mute}/invoke and <space.url>/audio/volume/actions/{increase,decrease,set}/invoke."
|
|
196
|
+
},
|
|
197
|
+
"proximity-http": {
|
|
198
|
+
"kind": "http",
|
|
199
|
+
"publication": "internal",
|
|
200
|
+
"source_kind": "external",
|
|
201
|
+
"source": "Proximity service (catalog service name proximity, reached through api: 'proximity' in src/lyra.js; route definitions are not in this repository)",
|
|
202
|
+
"summary": "GET /ultrasound/advertisements?token=<decoded ultrasound token> resolving the advertised endpoint: advertiser {id, displayName, orgId}, links addMeToSpace and lyra_space, proof, and token."
|
|
203
|
+
},
|
|
204
|
+
"webex-core-plugin-host": {
|
|
205
|
+
"kind": "sdk",
|
|
206
|
+
"publication": "published",
|
|
207
|
+
"source_kind": "external",
|
|
208
|
+
"source": "@webex/webex-core (workspace package; module spec consulted: packages/@webex/webex-core/src/docs/README.md MOD-008, MOD-013, MOD-044)",
|
|
209
|
+
"summary": "registerInternalPlugin keys the plugin by its raw name (lyra, first registration wins) and merges its config into the defaults; WebexPlugin supplies webex, children, namespaced config, and request."
|
|
210
|
+
},
|
|
211
|
+
"webex-core-services": {
|
|
212
|
+
"kind": "sdk",
|
|
213
|
+
"publication": "published",
|
|
214
|
+
"source_kind": "external",
|
|
215
|
+
"source": "@webex/webex-core services plugin (services spec consulted: packages/@webex/webex-core/src/lib/services/docs/README.md SVC-022; code consulted: packages/@webex/webex-core/src/lib/interceptors/service.js)",
|
|
216
|
+
"summary": "ServiceInterceptor maps api to service, requires resource and service, waits for the service, and joins its catalog URL with the resource by concatenation after trimming one slash; it leaves a request with uri unchanged."
|
|
217
|
+
},
|
|
218
|
+
"internal-plugin-encryption-kms": {
|
|
219
|
+
"kind": "sdk",
|
|
220
|
+
"publication": "published",
|
|
221
|
+
"source_kind": "external",
|
|
222
|
+
"source": "@webex/internal-plugin-encryption (workspace package; no spec exists; code consulted: packages/@webex/internal-plugin-encryption/src/kms.js, src/index.js)",
|
|
223
|
+
"summary": "kms.prepareRequest(payload) resolves a request whose wrapped field is the encrypted KMS message; the outbound encryptKmsMessage predicate and transform wrap an object body.kmsMessage unless it carries an empty keyUris or a <KRO> or <KEYURL> template."
|
|
224
|
+
},
|
|
225
|
+
"internal-plugin-device-identity": {
|
|
226
|
+
"kind": "sdk",
|
|
227
|
+
"publication": "published",
|
|
228
|
+
"source_kind": "external",
|
|
229
|
+
"source": "@webex/internal-plugin-device (workspace package; module spec consulted: packages/@webex/internal-plugin-device/src/docs/README.md)",
|
|
230
|
+
"summary": "Neither imported by src/ nor declared in package.json; registered through the encryption plugin's imports. url is a registration property read from webex.internal.device."
|
|
231
|
+
},
|
|
232
|
+
"common-base64": {
|
|
233
|
+
"kind": "sdk",
|
|
234
|
+
"publication": "published",
|
|
235
|
+
"source_kind": "external",
|
|
236
|
+
"source": "@webex/common (workspace package; module spec consulted: packages/@webex/common/src/docs/README.md; code consulted: packages/@webex/common/src/base64.js)",
|
|
237
|
+
"summary": "base64.toBase64Url and base64.encode produce base64url strings; toBase64Url builds a Buffer from its input and throws for undefined."
|
|
238
|
+
},
|
|
239
|
+
"internal-plugin-side-effect-imports": {
|
|
240
|
+
"kind": "sdk",
|
|
241
|
+
"publication": "published",
|
|
242
|
+
"source_kind": "external",
|
|
243
|
+
"source": "@webex/internal-plugin-mercury (module spec consulted: packages/@webex/internal-plugin-mercury/src/docs/README.md, stale on sessions), @webex/internal-plugin-conversation (no spec), @webex/internal-plugin-feature (module spec consulted: packages/@webex/internal-plugin-feature/src/docs/README.md)",
|
|
244
|
+
"summary": "Imported by src/index.js for registration only; no src/ file calls them. The Lyra service delivers lyra.* events to room devices through mercury, whose emit scheme (event:<eventType> for dotted types) the integration specs rely on."
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"spec_policy": {
|
|
249
|
+
"require_what_and_why": true,
|
|
250
|
+
"require_provenance": true,
|
|
251
|
+
"protected_specs": [
|
|
252
|
+
"src/docs/README.md"
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
"validation": {
|
|
256
|
+
"generator_runtime": "claude-code",
|
|
257
|
+
"generator_model": "claude-opus-5-5",
|
|
258
|
+
"generator_runtime_source": "host-metadata",
|
|
259
|
+
"source_commit": "bd4ed4b952d7d2fae2a4803d54bf4acb9d97f361",
|
|
260
|
+
"minimum_independence": "different-runtime",
|
|
261
|
+
"blocking_severities": [
|
|
262
|
+
"Blocking"
|
|
263
|
+
],
|
|
264
|
+
"validator_runtime": "01a1d048-7850-76c1-b613-3973b3145b4d",
|
|
265
|
+
"validator_runtime_source": "invocation-input",
|
|
266
|
+
"runtime_fallback_tier": "different-runtime"
|
|
267
|
+
},
|
|
268
|
+
"layout": {
|
|
269
|
+
"sdd_root": ".sdd",
|
|
270
|
+
"docs_root": "docs",
|
|
271
|
+
"agent_entry_path": "AGENTS.md",
|
|
272
|
+
"standing_docs_root": "docs",
|
|
273
|
+
"spec_index_path": "docs/specs/README.md",
|
|
274
|
+
"module_docs_strategy": "source-local",
|
|
275
|
+
"module_docs_relative_path": "docs/README.md",
|
|
276
|
+
"module_docs_decision": {
|
|
277
|
+
"basis": "repo-standards-default",
|
|
278
|
+
"reason": "No module-local documentation existed. The source-local default gives src/docs/README.md. test:style runs eslint ./src/**/*.*, and the shared @webex/eslint-config-legacy ignore patterns exclude docs/** and *.md; build:src processes -js -ts only, so Markdown under src/ does not enter dist/.",
|
|
279
|
+
"decided_by": "rarajes2@cisco.com (bootstrap questionnaire)",
|
|
280
|
+
"decided_at": "2026-11-12T14:50:30Z"
|
|
281
|
+
},
|
|
282
|
+
"repo_context_decision": {
|
|
283
|
+
"path": ".repo-context.json",
|
|
284
|
+
"schema_path": "schemas/repo-context.schema.json",
|
|
285
|
+
"action": "create",
|
|
286
|
+
"schema_action": "create",
|
|
287
|
+
"reason": "Neither the operational context nor its schema existed in this package. The context is created from package evidence and the schema is copied from the repository-root .sdd/templates/repo-standards/schemas/repo-context.schema.json.",
|
|
288
|
+
"decided_by": "rarajes2@cisco.com (bootstrap questionnaire)",
|
|
289
|
+
"decided_at": "2026-11-12T14:50:30Z"
|
|
290
|
+
},
|
|
291
|
+
"artifact_decisions": [
|
|
292
|
+
{
|
|
293
|
+
"path": "docs/service.md",
|
|
294
|
+
"action": "omit",
|
|
295
|
+
"reason": "Library package, not a deployable service. package.json has no start script, container, or deployment descriptor.",
|
|
296
|
+
"decided_by": "claude-code (code evidence)",
|
|
297
|
+
"decided_at": "2026-11-12T14:50:30Z"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"path": "mkdocs.yml",
|
|
301
|
+
"action": "omit",
|
|
302
|
+
"reason": "No package-level documentation site exists. Documentation publishing stays with the workspace.",
|
|
303
|
+
"decided_by": "claude-code (code evidence)",
|
|
304
|
+
"decided_at": "2026-11-12T14:50:30Z"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"path": "api-specs/openapi.yaml",
|
|
308
|
+
"action": "omit",
|
|
309
|
+
"reason": "The package serves no HTTP routes. It is a client of the Lyra and proximity services; its published surface is the npm export described by lyra-internal-sdk.",
|
|
310
|
+
"decided_by": "claude-code (code evidence)",
|
|
311
|
+
"decided_at": "2026-11-12T14:50:30Z"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"path": "SECURITY.md",
|
|
315
|
+
"action": "omit",
|
|
316
|
+
"reason": "No package-level security policy exists. The workspace owns security policy, and a per-package copy would duplicate it; security architecture is described in docs/architecture.md.",
|
|
317
|
+
"decided_by": "claude-code (code evidence)",
|
|
318
|
+
"decided_at": "2026-11-12T14:50:30Z"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"path": "CONTRIBUTING.md",
|
|
322
|
+
"action": "omit",
|
|
323
|
+
"reason": "Contribution instructions are owned at the workspace root CONTRIBUTING.md.",
|
|
324
|
+
"decided_by": "claude-code (code evidence)",
|
|
325
|
+
"decided_at": "2026-11-12T14:50:30Z"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"path": "CHANGELOG.md",
|
|
329
|
+
"action": "omit",
|
|
330
|
+
"reason": "Changelog generation is owned at the workspace root. This package has no changelog file.",
|
|
331
|
+
"decided_by": "claude-code (code evidence)",
|
|
332
|
+
"decided_at": "2026-11-12T14:50:30Z"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"path": "CTO_CHECKLIST.yml",
|
|
336
|
+
"action": "omit",
|
|
337
|
+
"reason": "The CTO readiness checklist applies to deployable services. This package is a library.",
|
|
338
|
+
"decided_by": "claude-code (code evidence)",
|
|
339
|
+
"decided_at": "2026-11-12T14:50:30Z"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"path": "schemas/cto-checklist.schema.json",
|
|
343
|
+
"action": "omit",
|
|
344
|
+
"reason": "Omitted together with CTO_CHECKLIST.yml.",
|
|
345
|
+
"decided_by": "claude-code (code evidence)",
|
|
346
|
+
"decided_at": "2026-11-12T14:50:30Z"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"template_roots": {
|
|
350
|
+
"canonical": ".sdd/templates/repo-standards"
|
|
351
|
+
},
|
|
352
|
+
"contract_index_path": "docs/architecture.md",
|
|
353
|
+
"repo_skills_root": ".sdd/skills",
|
|
354
|
+
"monorepo_package": {
|
|
355
|
+
"package_path": "packages/@webex/internal-plugin-lyra",
|
|
356
|
+
"root_manifest_path": "../../../.sdd/manifest.json",
|
|
357
|
+
"templates_root_path": "../../../.sdd/templates/repo-standards"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"tooling": {
|
|
361
|
+
"sdlc_skills": {
|
|
362
|
+
"source_ref": "repo-annotation@2.3.1"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"coverage_ratchet": {
|
|
366
|
+
"enabled": true,
|
|
367
|
+
"waivers": []
|
|
368
|
+
},
|
|
369
|
+
"substrate": {
|
|
370
|
+
"source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
371
|
+
"consumed": [
|
|
372
|
+
"@webex/eslint-config-legacy via .eslintrc.js",
|
|
373
|
+
"@webex/babel-config-legacy via babel.config.js",
|
|
374
|
+
"@webex/jest-config-legacy via jest.config.js",
|
|
375
|
+
"@webex/legacy-tools build and test runner via package.json",
|
|
376
|
+
"package README.md (context only)",
|
|
377
|
+
"Repo Standards templates at the monorepo root .sdd/templates/repo-standards, referred to through layout.monorepo_package.templates_root_path (this package holds no templates)"
|
|
378
|
+
],
|
|
379
|
+
"compliance_tier": "baseline"
|
|
380
|
+
},
|
|
381
|
+
"section_profiles": {
|
|
382
|
+
"repo": {
|
|
383
|
+
"owns_datastore": false,
|
|
384
|
+
"holds_client_state": false,
|
|
385
|
+
"components_interact": true,
|
|
386
|
+
"domain_data_across_components": true,
|
|
387
|
+
"caches_data": false,
|
|
388
|
+
"observability_convention": false,
|
|
389
|
+
"deploys_to_infra": false,
|
|
390
|
+
"shared_base_libs": true,
|
|
391
|
+
"is_monorepo": false,
|
|
392
|
+
"multi_platform": false,
|
|
393
|
+
"published_package": true,
|
|
394
|
+
"embedded_in_host": false,
|
|
395
|
+
"cross_repo_deps_material": true,
|
|
396
|
+
"security_arch_warranted": true,
|
|
397
|
+
"exposes_commands_or_artifacts": true
|
|
398
|
+
},
|
|
399
|
+
"resolved_by": "claude-code (code evidence; bootstrap questionnaire)",
|
|
400
|
+
"resolved_at": "2026-11-12T14:50:30Z"
|
|
401
|
+
}
|
|
402
|
+
}
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: agent-entry
|
|
3
|
+
generated_from: agents@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
|
+
# AI Agent Instructions
|
|
11
|
+
|
|
12
|
+
Package-scoped SDD entry for `@webex/internal-plugin-lyra`, the internal `lyra` plugin of the SDK (it
|
|
13
|
+
finds Lyra spaces from ultrasound tokens, joins and leaves them, binds conversations to them, and
|
|
14
|
+
drives their room device's audio). This file orients agents. The monorepo root `AGENTS.md` governs
|
|
15
|
+
workspace-wide setup.
|
|
16
|
+
|
|
17
|
+
## Working Method
|
|
18
|
+
|
|
19
|
+
- Read the relevant package files before editing. Do not edit blind.
|
|
20
|
+
- Understand the task and affected surfaces before writing code.
|
|
21
|
+
- Prefer focused edits over rewriting whole files.
|
|
22
|
+
- Do not invent commands, paths, exports, method names, or request paths. Verify them from this
|
|
23
|
+
package's source.
|
|
24
|
+
- Test or validate before declaring done.
|
|
25
|
+
- Keep output concise. If something is uncertain, say so instead of guessing.
|
|
26
|
+
|
|
27
|
+
## Canonical Repository Documentation
|
|
28
|
+
|
|
29
|
+
Before changing code or documentation, start with:
|
|
30
|
+
|
|
31
|
+
- [`docs/index.md`](docs/index.md) for package documentation navigation;
|
|
32
|
+
- [`docs/architecture.md`](docs/architecture.md) for package boundaries and interactions;
|
|
33
|
+
- [`docs/specs/README.md`](docs/specs/README.md) for the manifest-backed module and contract registry;
|
|
34
|
+
- the module specification at [`src/docs/README.md`](src/docs/README.md) (Lyra plugin); and
|
|
35
|
+
- [`docs/adr/index.md`](docs/adr/index.md) plus applicable concrete ADRs.
|
|
36
|
+
|
|
37
|
+
Follow `.sdd/manifest.json` for each contract's publication state and canonical source. This package
|
|
38
|
+
publishes an internal SDK surface, so its contract artifact is `package.json` plus the `src/index.js`
|
|
39
|
+
entry. It serves no HTTP, so no OpenAPI applies.
|
|
40
|
+
|
|
41
|
+
## 1. Commands (Run First)
|
|
42
|
+
|
|
43
|
+
Use only documented commands. Do not invent alternatives when a command is missing. Run every command from the workspace root; package scripts run as `yarn workspace @webex/internal-plugin-lyra <script>`.
|
|
44
|
+
Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the workspace root; see [Prebuilding](../../../CONTRIBUTING.md#prebuilding).
|
|
45
|
+
|
|
46
|
+
| Task | Command |
|
|
47
|
+
| ---------------------- | ------- |
|
|
48
|
+
| Install dependencies | `yarn` (workspace root; the deploy workflow runs the same command) |
|
|
49
|
+
| Start dev environment | N/A — library package with no start script in `package.json` |
|
|
50
|
+
| Run tests | `yarn workspace @webex/internal-plugin-lyra test:unit` (after `build:src`; the specs import the package by name, so they test `dist/`) |
|
|
51
|
+
| Run linters | `yarn workspace @webex/internal-plugin-lyra test:style` |
|
|
52
|
+
| Build/release artifact | `yarn workspace @webex/internal-plugin-lyra build:src` (JavaScript and source maps to `dist/`) |
|
|
53
|
+
| Format code | N/A — no format script; `prettier` is a devDependency used through eslint |
|
|
54
|
+
|
|
55
|
+
`yarn workspace @webex/internal-plugin-lyra build` runs the `build:src` script and produces the same output; the package emits no type
|
|
56
|
+
declarations.
|
|
57
|
+
|
|
58
|
+
Do not use the aggregate `test` script: it calls `test:integration`, which this package does not
|
|
59
|
+
define. `test:browser` runs the live-service specs in `test/integration/spec` through karma; see
|
|
60
|
+
[Getting started](docs/getting-started.md#tests) for its state.
|
|
61
|
+
|
|
62
|
+
If a required command is unknown, stop and ask for the exact command.
|
|
63
|
+
|
|
64
|
+
## 2. Agent Persona and Scope
|
|
65
|
+
|
|
66
|
+
You are the Webex JS SDK engineering assistant for `@webex/internal-plugin-lyra`.
|
|
67
|
+
|
|
68
|
+
Primary outcomes:
|
|
69
|
+
|
|
70
|
+
- Deliver production-safe changes with build, unit tests, and lint passing.
|
|
71
|
+
- Preserve existing behavior unless a change request explicitly requires a behavior change.
|
|
72
|
+
- Keep docs and configuration aligned with code changes.
|
|
73
|
+
|
|
74
|
+
Definition of done:
|
|
75
|
+
|
|
76
|
+
1. Requested change is implemented.
|
|
77
|
+
2. Build, unit tests, and lint pass locally.
|
|
78
|
+
3. Updated docs cover new behavior, including the owning module spec.
|
|
79
|
+
4. PR summary includes risks and rollback notes.
|
|
80
|
+
|
|
81
|
+
## 3. Repository Knowledge
|
|
82
|
+
|
|
83
|
+
### Tech Stack
|
|
84
|
+
|
|
85
|
+
| Area | Tooling | Version |
|
|
86
|
+
| ---------------- | ------- | ------- |
|
|
87
|
+
| Language runtime | node; JavaScript sources | 22.14 (workspace root `AGENTS.md`; `.nvmrc` `lts/jod`); package `engines` accepts `>=18`; the workspace root `package.json` `engines.node` reads `18.x` |
|
|
88
|
+
| Build tool | yarn workspaces and `@webex/legacy-tools` over babel | yarn `3.4.1` (root `packageManager`), `@babel/core` `^7.17.10` |
|
|
89
|
+
| Test framework | jest through `webex-legacy-tools` and `@webex/jest-config-legacy`, with sinon, `@webex/test-helper-chai`, and `@webex/test-helper-mock-webex` | — |
|
|
90
|
+
| Lint/format | eslint via `@webex/eslint-config-legacy`, prettier | eslint `^8.24.0`, prettier `^2.7.1` |
|
|
91
|
+
|
|
92
|
+
### Project Map
|
|
93
|
+
|
|
94
|
+
- `src/index.js`: imports the mercury, encryption, conversation, and feature plugins, registers
|
|
95
|
+
internal plugin `lyra` with its config, and exports `Lyra` (default) and `config`.
|
|
96
|
+
- `src/lyra.js`: `Lyra`, its `space` and `device` children, and `getAdvertisedEndpoint`.
|
|
97
|
+
- `src/space.js`: `Space` — `list`, `get`, `join`, `leave`, `verifyOccupant`, `getCurrentBindings`,
|
|
98
|
+
`bindConversation`, `unbindConversation`, `deleteBinding`, and the `_bindConversation` stub.
|
|
99
|
+
- `src/device.js`: `Device` — audio state, mute, and volume.
|
|
100
|
+
- `src/config.js`: the empty `config.lyra` block.
|
|
101
|
+
- `test/unit/spec/`: unit cases (`lyra.js`, `space.js`, `device.js`) run by `test:unit`.
|
|
102
|
+
- `test/integration/spec/`: live-service cases (`space.js`, `device.js`) run only by `test:browser`.
|
|
103
|
+
- `process`: package-root module exporting `{browser: true}`; not imported by `src/`.
|
|
104
|
+
- `dist/`: generated build output. Never edit by hand.
|
|
105
|
+
- `README.md`: retained npm page, context only; its Usage block is a placeholder; see
|
|
106
|
+
[ADR-0001](docs/adr/0001-retain-product-readme.md).
|
|
107
|
+
- Spec for every file under `src/`: `src/docs/README.md`.
|
|
108
|
+
|
|
109
|
+
### Critical Constraints
|
|
110
|
+
|
|
111
|
+
- The plugin is `webex.internal.lyra`, with children `space` and `device`;
|
|
112
|
+
`@webex/plugin-device-manager` calls them and `@webex/recipe-private-web-client` registers them.
|
|
113
|
+
- `join`, `leave`, `bindConversation`, and `unbindConversation` need a `space.url` relative to the
|
|
114
|
+
Lyra service (`/spaces/<id>`); the other space methods and every device method need the absolute
|
|
115
|
+
URL (`INV-001` in the module spec).
|
|
116
|
+
- KMS messages sent in a query string must be wrapped with `kms.prepareRequest` first (`INV-003`).
|
|
117
|
+
- Which methods resolve the response body and which the whole response is part of the contract.
|
|
118
|
+
|
|
119
|
+
## 4. Testing Workflow
|
|
120
|
+
|
|
121
|
+
Run checks in this order, from the workspace root:
|
|
122
|
+
|
|
123
|
+
1. `yarn workspace @webex/internal-plugin-lyra build:src`
|
|
124
|
+
2. `yarn workspace @webex/internal-plugin-lyra test:unit`
|
|
125
|
+
3. `yarn workspace @webex/internal-plugin-lyra test:style`
|
|
126
|
+
|
|
127
|
+
Testing rules:
|
|
128
|
+
|
|
129
|
+
- Add or update cases in `test/unit/spec/lyra.js`, `test/unit/spec/space.js`, or
|
|
130
|
+
`test/unit/spec/device.js` for every behavior you change.
|
|
131
|
+
- Use `@webex/test-helper-mock-webex` with sinon stubs for `webex.request` and the encryption plugin,
|
|
132
|
+
and assert with `@webex/test-helper-chai`.
|
|
133
|
+
- Use `assert.calledOnceWithExactly` for call arguments, and parametrize when more than three cases are
|
|
134
|
+
alike.
|
|
135
|
+
- Cover failure paths and edge cases, not only happy paths.
|
|
136
|
+
- Do not remove tests to make CI pass.
|
|
137
|
+
|
|
138
|
+
No coverage gate applies to this package; do not infer one.
|
|
139
|
+
|
|
140
|
+
## 5. Code Style and Patterns
|
|
141
|
+
|
|
142
|
+
Coding expectations:
|
|
143
|
+
|
|
144
|
+
- Follow repository style rules and static analysis output. The local `.eslintrc.js` sets
|
|
145
|
+
`root: true` and extends the legacy config.
|
|
146
|
+
- Prefer small functions over large procedural blocks.
|
|
147
|
+
- Make error handling explicit; reject guard failures before any request.
|
|
148
|
+
- Keep public interfaces stable unless a breaking change is requested.
|
|
149
|
+
|
|
150
|
+
Pattern example:
|
|
151
|
+
|
|
152
|
+
```text
|
|
153
|
+
Preferred:
|
|
154
|
+
- Guard required fields with Promise.reject(new Error('<field> is required')) before any request.
|
|
155
|
+
- Send one request per method through this.webex.request.
|
|
156
|
+
- Leave a body kmsMessage as an object for the encryption plugin's outbound transform.
|
|
157
|
+
|
|
158
|
+
Avoid:
|
|
159
|
+
- Deriving a space URL inside a method that takes space.url from the caller.
|
|
160
|
+
- Putting an unwrapped KMS message in a query string.
|
|
161
|
+
- Treating README.md as a usage reference.
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## 6. Git Workflow
|
|
165
|
+
|
|
166
|
+
- Branch naming: no package convention is defined; follow the workspace `CONTRIBUTING.md`.
|
|
167
|
+
- Commit format: conventional commits (`feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`), which
|
|
168
|
+
the workspace `CONTRIBUTING.md` requires for pull requests.
|
|
169
|
+
- Keep commits focused and reversible.
|
|
170
|
+
- Rebase on the target branch before opening a pull request.
|
|
171
|
+
|
|
172
|
+
PR checklist:
|
|
173
|
+
|
|
174
|
+
- What changed and why.
|
|
175
|
+
- Tests run and results.
|
|
176
|
+
- Risk and impact on `@webex/plugin-device-manager` and first-party clients that call
|
|
177
|
+
`webex.internal.lyra`.
|
|
178
|
+
- Rollback approach.
|
|
179
|
+
|
|
180
|
+
## 7. Boundaries and Escalation
|
|
181
|
+
|
|
182
|
+
### Always
|
|
183
|
+
|
|
184
|
+
- Prefer existing patterns over introducing new architecture.
|
|
185
|
+
- Keep changes minimal for the requested scope.
|
|
186
|
+
- Call out assumptions and unknowns explicitly.
|
|
187
|
+
- Update the owning module spec in the same change that alters observable behavior.
|
|
188
|
+
|
|
189
|
+
### Ask First
|
|
190
|
+
|
|
191
|
+
- Adding dependencies, or removing a declared one.
|
|
192
|
+
- Renaming or removing a method, a child, or the registered plugin name.
|
|
193
|
+
- Changing a request path, a query string, a body, a KMS message, or the `space.url` form a method
|
|
194
|
+
expects.
|
|
195
|
+
- Changing whether a method resolves the body or the whole response.
|
|
196
|
+
- Enabling the capabilities call in `_bindConversation`.
|
|
197
|
+
|
|
198
|
+
### Never
|
|
199
|
+
|
|
200
|
+
- Edit `dist/` by hand.
|
|
201
|
+
- Commit secrets, tokens, or credentials, including in test fixtures.
|
|
202
|
+
- Log ultrasound tokens, proofs, device URLs, or KMS messages.
|
|
203
|
+
- Add a `.sdd/templates` directory, a copy of the templates, or a link to them in this package. The
|
|
204
|
+
templates live once at the monorepo root, `../../../.sdd/templates/repo-standards`, and
|
|
205
|
+
`.sdd/manifest.json` refers to them through `layout.monorepo_package`.
|
package/dist/device.js
CHANGED
package/dist/lyra.js
CHANGED