@webex/internal-plugin-wdm 3.12.0-webex-services-ready.4 → 3.13.0-next.1
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 +401 -0
- package/.sdd/manifest.json +319 -0
- package/AGENTS.md +190 -0
- package/docs/adr/index.md +28 -0
- package/docs/architecture.md +182 -0
- package/docs/getting-started.md +95 -0
- package/docs/index.md +42 -0
- package/docs/specs/README.md +78 -0
- package/package.json +9 -9
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +270 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 1,
|
|
3
|
+
"repository": {
|
|
4
|
+
"name": "@webex/internal-plugin-wdm",
|
|
5
|
+
"purpose": "Deprecated alias package of the Webex JS SDK: keeps the historical @webex/internal-plugin-wdm import path working by re-exporting the Device plugin and its config, constants, interceptor, and feature classes from @webex/internal-plugin-device.",
|
|
6
|
+
"category": "cat2-legacy",
|
|
7
|
+
"primary_languages": [
|
|
8
|
+
"javascript"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"topology": "Orchestrator-plus-components",
|
|
12
|
+
"commands": {
|
|
13
|
+
"compile": {
|
|
14
|
+
"command": "yarn workspace @webex/internal-plugin-wdm build:src",
|
|
15
|
+
"source_file": "package.json",
|
|
16
|
+
"role": "compile"
|
|
17
|
+
},
|
|
18
|
+
"build": {
|
|
19
|
+
"command": "yarn workspace @webex/internal-plugin-wdm build",
|
|
20
|
+
"source_file": "package.json",
|
|
21
|
+
"role": "package"
|
|
22
|
+
},
|
|
23
|
+
"unit-test": {
|
|
24
|
+
"command": "yarn workspace @webex/internal-plugin-wdm test:unit",
|
|
25
|
+
"source_file": "package.json",
|
|
26
|
+
"role": "unit-test"
|
|
27
|
+
},
|
|
28
|
+
"browser-test": {
|
|
29
|
+
"command": "yarn workspace @webex/internal-plugin-wdm test:browser",
|
|
30
|
+
"source_file": "package.json",
|
|
31
|
+
"role": "integration-test"
|
|
32
|
+
},
|
|
33
|
+
"lint": {
|
|
34
|
+
"command": "yarn workspace @webex/internal-plugin-wdm test:style",
|
|
35
|
+
"source_file": "package.json",
|
|
36
|
+
"role": "lint"
|
|
37
|
+
},
|
|
38
|
+
"deploy": {
|
|
39
|
+
"command": "yarn workspace @webex/internal-plugin-wdm deploy:npm",
|
|
40
|
+
"source_file": "package.json",
|
|
41
|
+
"role": "deploy"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"toolchain": [
|
|
45
|
+
{
|
|
46
|
+
"name": "node",
|
|
47
|
+
"version": ">=16",
|
|
48
|
+
"origin": "repo-config",
|
|
49
|
+
"source_file": "package.json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "node",
|
|
53
|
+
"version": "22.14",
|
|
54
|
+
"origin": "human-declared",
|
|
55
|
+
"declared_by": "riag@cisco.com (declared 2026-10-12 as the Node.js version for running this package's tests and build commands from the monorepo, matching the monorepo agent instructions; package.json engines >=16 remains the consumer runtime floor)"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"tests": {
|
|
59
|
+
"unit": {
|
|
60
|
+
"command_ref": "unit-test",
|
|
61
|
+
"dir": "test/unit",
|
|
62
|
+
"framework": "jest"
|
|
63
|
+
},
|
|
64
|
+
"integration": {
|
|
65
|
+
"command_ref": "browser-test",
|
|
66
|
+
"dir": "test/integration",
|
|
67
|
+
"framework": "mocha (karma runner)",
|
|
68
|
+
"external_deps": [
|
|
69
|
+
"Provisioned Webex test users via @webex/test-helper-test-users",
|
|
70
|
+
"Network access to Webex services"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"quality_gates": {
|
|
75
|
+
"code_coverage": {
|
|
76
|
+
"origin": "none",
|
|
77
|
+
"declared_by": "riag@cisco.com via bootstrap questionnaire on 2026-10-12: no coverage gate specific to this package (its test:unit defines no threshold; the monorepo root jest.config.js carries its own global coverage thresholds, which the owner did not designate as this package's gate)"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"coverage_status_definitions": {
|
|
81
|
+
"specced": ">=80% public surface specced, drift <5% — spec is authoritative",
|
|
82
|
+
"partial": "40-80% specced — spec is a hint, cross-check code",
|
|
83
|
+
"untracked": "<40% specced — code is the source of truth"
|
|
84
|
+
},
|
|
85
|
+
"modules": [
|
|
86
|
+
{
|
|
87
|
+
"path": "src/",
|
|
88
|
+
"coverage_status": "Partial",
|
|
89
|
+
"coverage_evidence": "Generator-side field measurement 86.7% (13 of 15 mandatory fields PRESENT, critical 7 of 7) assessed 2026-10-12. WEAK: test and characterization coverage (the only unit test asserts true; MOD-001 to MOD-003 and MOD-005 to MOD-007 have no automated evidence and MOD-004 needs provisioned test users), and WHAT/WHY (MOD-003 rationale for omitting two device exports is an approved unknown). Provenance is PRESENT now that approval by riag@cisco.com is recorded. Independent validation passed on 2026-10-28 with validator 01a18302-bd56-78f3-906e-7393e5034b42 and 0 Blocking or warning findings. Promotion to Specced remains held because no drift measurement exists.",
|
|
90
|
+
"canonical_spec": "src/docs/README.md",
|
|
91
|
+
"contracts": {
|
|
92
|
+
"provides": [
|
|
93
|
+
"wdm-alias-sdk"
|
|
94
|
+
],
|
|
95
|
+
"requires": [
|
|
96
|
+
"device-plugin-sdk",
|
|
97
|
+
"webex-core-plugin-host"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"last_assessed": "2026-10-12",
|
|
101
|
+
"section_profile": {
|
|
102
|
+
"has_ui": false,
|
|
103
|
+
"crosses_service_boundaries": false,
|
|
104
|
+
"enforces_domain_rules": false,
|
|
105
|
+
"is_concurrent_async": false,
|
|
106
|
+
"owns_persistence": false,
|
|
107
|
+
"returns_caller_errors": false,
|
|
108
|
+
"has_design_tradeoff": false,
|
|
109
|
+
"stateful_transitions": false,
|
|
110
|
+
"exposes_wire_protocol": false,
|
|
111
|
+
"ui_multi_screen": false,
|
|
112
|
+
"large_data_model": false,
|
|
113
|
+
"has_tiers": false,
|
|
114
|
+
"module_specific_conventions": true,
|
|
115
|
+
"published_package": true,
|
|
116
|
+
"embedded_in_host": false,
|
|
117
|
+
"holds_client_state": false,
|
|
118
|
+
"has_submodules": false,
|
|
119
|
+
"has_submodules_computed_by": "scripts/module_tree.py",
|
|
120
|
+
"has_submodules_computed_at": "2026-10-12T14:40:00Z",
|
|
121
|
+
"resolved_by": "claude-code/claude-sonnet-5-5 (host metadata; bootstrap questionnaire)",
|
|
122
|
+
"resolved_at": "2026-10-12T14:40:00Z"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"contract_catalog": {
|
|
127
|
+
"index_path": "docs/architecture.md",
|
|
128
|
+
"definitions": {
|
|
129
|
+
"wdm-alias-sdk": {
|
|
130
|
+
"kind": "sdk",
|
|
131
|
+
"publication": "published",
|
|
132
|
+
"source_kind": "repository-path",
|
|
133
|
+
"source": "package.json",
|
|
134
|
+
"summary": "Published npm package surface of the deprecated alias (main: dist/index.js, devMain: src/index.js): the default export Device and the named exports config, constants, DeviceUrlInterceptor, FeatureCollection, FeatureModel, and FeaturesModel, all re-exported from @webex/internal-plugin-device. Importing it loads the device plugin; it registers no plugin of its own. Internal plugin: semantic versioning is not strictly followed. Per-export detail lives in the owning module spec Public surface."
|
|
135
|
+
},
|
|
136
|
+
"device-plugin-sdk": {
|
|
137
|
+
"kind": "sdk",
|
|
138
|
+
"publication": "published",
|
|
139
|
+
"source_kind": "external",
|
|
140
|
+
"source": "@webex/internal-plugin-device (workspace package; module spec consulted: packages/@webex/internal-plugin-device/src/docs/README.md, contract device-plugin-sdk in its manifest)",
|
|
141
|
+
"summary": "Device plugin package re-exported by this alias: default Device export, config, constants, CatalogDetails, DeviceRegistrationOptions, DeviceUrlInterceptor, and the feature classes. Its entry module registers the internal plugin device on import."
|
|
142
|
+
},
|
|
143
|
+
"webex-core-plugin-host": {
|
|
144
|
+
"kind": "sdk",
|
|
145
|
+
"publication": "published",
|
|
146
|
+
"source_kind": "external",
|
|
147
|
+
"source": "@webex/webex-core (workspace package; no module spec, so source was used: packages/@webex/webex-core/src/index.js exports the default WebexCore and registerInternalPlugin, defined in packages/@webex/webex-core/src/webex-core.js)",
|
|
148
|
+
"summary": "Plugin host consumed by the integration test, which constructs a WebexCore instance to observe webex.internal.device after importing the alias. src/index.js does not import it; the device package calls its registerInternalPlugin."
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"spec_source_policy": {
|
|
153
|
+
"mode": "keep-separate",
|
|
154
|
+
"decided_by": "riag@cisco.com",
|
|
155
|
+
"decided_at": "2026-10-12T14:36:00Z",
|
|
156
|
+
"decision_record": ".generated/sdd/spec-source-policy/decision.md"
|
|
157
|
+
},
|
|
158
|
+
"spec_sources": [
|
|
159
|
+
{
|
|
160
|
+
"path": "README.md",
|
|
161
|
+
"scope": "repo",
|
|
162
|
+
"role": "reference-only",
|
|
163
|
+
"canonical": false,
|
|
164
|
+
"use_by_agents": "context-only",
|
|
165
|
+
"post_migration_action": "retain",
|
|
166
|
+
"deletion_status": "not-applicable",
|
|
167
|
+
"notes": "The package's npm landing page: deprecation notice, install, usage, maintainers, license. Kept separate and untouched by owner decision; facts were reconciled from code, and its stale usage line (webex.internal.wdm.WHATEVER) is recorded as a pitfall in the module spec. Never a deletion candidate."
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"spec_policy": {
|
|
171
|
+
"require_what_and_why": true,
|
|
172
|
+
"require_provenance": true,
|
|
173
|
+
"protected_specs": [
|
|
174
|
+
"src/docs/README.md"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"validation": {
|
|
178
|
+
"generator_runtime": "claude-code",
|
|
179
|
+
"generator_model": "claude-sonnet-5-5",
|
|
180
|
+
"generator_runtime_source": "host-metadata",
|
|
181
|
+
"validator_runtime": "codex",
|
|
182
|
+
"validator_run_id": "01a18302-bd56-78f3-906e-7393e5034b42",
|
|
183
|
+
"validator_runtime_source": "host-metadata",
|
|
184
|
+
"minimum_independence": "different-runtime",
|
|
185
|
+
"runtime_fallback_tier": "different-runtime",
|
|
186
|
+
"blocking_severities": [
|
|
187
|
+
"Blocking"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"layout": {
|
|
191
|
+
"sdd_root": ".sdd",
|
|
192
|
+
"docs_root": "docs",
|
|
193
|
+
"agent_entry_path": "AGENTS.md",
|
|
194
|
+
"standing_docs_root": "docs",
|
|
195
|
+
"spec_index_path": "docs/specs/README.md",
|
|
196
|
+
"module_docs_strategy": "source-local",
|
|
197
|
+
"module_docs_relative_path": "docs/README.md",
|
|
198
|
+
"module_docs_decision": {
|
|
199
|
+
"basis": "repo-standards-default",
|
|
200
|
+
"reason": "The package has no module-local documentation folder, documentation build, or protected authored file that collides with the source-local default.",
|
|
201
|
+
"decided_by": "claude-code (bootstrap questionnaire)",
|
|
202
|
+
"decided_at": "2026-10-12T14:36:00Z"
|
|
203
|
+
},
|
|
204
|
+
"repo_context_decision": {
|
|
205
|
+
"path": ".repo-context.json",
|
|
206
|
+
"schema_path": "schemas/repo-context.schema.json",
|
|
207
|
+
"action": "create",
|
|
208
|
+
"schema_action": "create",
|
|
209
|
+
"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 Repo Standards 0.3.0 snapshot resolved at the monorepo root.",
|
|
210
|
+
"decided_by": "claude-code (bootstrap questionnaire)",
|
|
211
|
+
"decided_at": "2026-10-12T14:36:00Z"
|
|
212
|
+
},
|
|
213
|
+
"artifact_decisions": [
|
|
214
|
+
{
|
|
215
|
+
"path": "docs/service.md",
|
|
216
|
+
"action": "omit",
|
|
217
|
+
"reason": "The package is a published library, not a deployable service; it declares no deployment descriptor, container, or runtime entry point.",
|
|
218
|
+
"decided_by": "claude-code (bootstrap questionnaire)",
|
|
219
|
+
"decided_at": "2026-10-12T14:36:00Z"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"path": "mkdocs.yml",
|
|
223
|
+
"action": "omit",
|
|
224
|
+
"reason": "No documentation build exists for this package.",
|
|
225
|
+
"decided_by": "claude-code (bootstrap questionnaire)",
|
|
226
|
+
"decided_at": "2026-10-12T14:36:00Z"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"path": "api-specs/openapi.yaml",
|
|
230
|
+
"action": "omit",
|
|
231
|
+
"reason": "The package serves no HTTP routes; its published surface is the npm package declared in package.json, so no OpenAPI source applies.",
|
|
232
|
+
"decided_by": "claude-code (bootstrap questionnaire)",
|
|
233
|
+
"decided_at": "2026-10-12T14:36:00Z"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"path": "SECURITY.md",
|
|
237
|
+
"action": "omit",
|
|
238
|
+
"reason": "Absent at the package; the questionnaire did not select a security-policy artifact and no reporting contact is established.",
|
|
239
|
+
"decided_by": "claude-code (bootstrap questionnaire)",
|
|
240
|
+
"decided_at": "2026-10-12T14:36:00Z"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"path": "CONTRIBUTING.md",
|
|
244
|
+
"action": "omit",
|
|
245
|
+
"reason": "No package-level contribution guide exists; the package README points to the surrounding monorepo root for contribution rules.",
|
|
246
|
+
"decided_by": "claude-code (bootstrap questionnaire)",
|
|
247
|
+
"decided_at": "2026-10-12T14:36:00Z"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"path": "CHANGELOG.md",
|
|
251
|
+
"action": "omit",
|
|
252
|
+
"reason": "No package-level changelog exists; release notes are owned at the surrounding monorepo root.",
|
|
253
|
+
"decided_by": "claude-code (bootstrap questionnaire)",
|
|
254
|
+
"decided_at": "2026-10-12T14:36:00Z"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"path": "CTO_CHECKLIST.yml",
|
|
258
|
+
"action": "omit",
|
|
259
|
+
"reason": "The CTO readiness workflow applies to deployable services; this package is a published library.",
|
|
260
|
+
"decided_by": "claude-code (bootstrap questionnaire)",
|
|
261
|
+
"decided_at": "2026-10-12T14:36:00Z"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"path": "schemas/cto-checklist.schema.json",
|
|
265
|
+
"action": "omit",
|
|
266
|
+
"reason": "Selected together with CTO_CHECKLIST.yml, which is omitted.",
|
|
267
|
+
"decided_by": "claude-code (bootstrap questionnaire)",
|
|
268
|
+
"decided_at": "2026-10-12T14:36:00Z"
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"template_roots": {
|
|
272
|
+
"canonical": ".sdd/templates/repo-standards"
|
|
273
|
+
},
|
|
274
|
+
"repo_skills_root": ".sdd/skills",
|
|
275
|
+
"contract_index_path": "docs/architecture.md",
|
|
276
|
+
"monorepo_package": {
|
|
277
|
+
"package_path": "packages/@webex/internal-plugin-wdm",
|
|
278
|
+
"root_manifest_path": "../../../.sdd/manifest.json",
|
|
279
|
+
"templates_root_path": "../../../.sdd/templates/repo-standards"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"substrate": {
|
|
283
|
+
"source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
284
|
+
"consumed": [
|
|
285
|
+
"@webex/eslint-config-legacy and ESLint through package.json scripts",
|
|
286
|
+
"@webex/babel-config-legacy via babel.config.js",
|
|
287
|
+
"@webex/jest-config-legacy via jest.config.js",
|
|
288
|
+
"@webex/legacy-tools build and test runner via package.json",
|
|
289
|
+
"package README.md"
|
|
290
|
+
],
|
|
291
|
+
"compliance_tier": "baseline"
|
|
292
|
+
},
|
|
293
|
+
"section_profiles": {
|
|
294
|
+
"repo": {
|
|
295
|
+
"owns_datastore": false,
|
|
296
|
+
"holds_client_state": false,
|
|
297
|
+
"components_interact": true,
|
|
298
|
+
"domain_data_across_components": false,
|
|
299
|
+
"caches_data": false,
|
|
300
|
+
"observability_convention": false,
|
|
301
|
+
"deploys_to_infra": false,
|
|
302
|
+
"shared_base_libs": false,
|
|
303
|
+
"is_monorepo": false,
|
|
304
|
+
"multi_platform": true,
|
|
305
|
+
"published_package": true,
|
|
306
|
+
"embedded_in_host": false,
|
|
307
|
+
"cross_repo_deps_material": false,
|
|
308
|
+
"security_arch_warranted": false,
|
|
309
|
+
"exposes_commands_or_artifacts": false
|
|
310
|
+
},
|
|
311
|
+
"resolved_by": "claude-code/claude-sonnet-5-5 (host metadata; bootstrap questionnaire)",
|
|
312
|
+
"resolved_at": "2026-10-12T14:40:00Z"
|
|
313
|
+
},
|
|
314
|
+
"tooling": {
|
|
315
|
+
"sdlc_skills": {
|
|
316
|
+
"source_ref": "repo-annotation@2.3.1"
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: agent-entry
|
|
3
|
+
generated_from: agents@0.3.0
|
|
4
|
+
generated_by: claude-code
|
|
5
|
+
approved_by: riag@cisco.com
|
|
6
|
+
updated_at: 2026-10-28T14:58:37Z
|
|
7
|
+
validation_status: pass
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# AI Agent Instructions
|
|
11
|
+
|
|
12
|
+
Instructions for AI coding assistants working in `@webex/internal-plugin-wdm`, a package of the Webex JS SDK
|
|
13
|
+
monorepo. The package is a deprecated alias that re-exports `@webex/internal-plugin-device`. The monorepo root has
|
|
14
|
+
its own `AGENTS.md`; this file adds the package-specific rules and does not replace it.
|
|
15
|
+
|
|
16
|
+
## Working Method
|
|
17
|
+
|
|
18
|
+
- Read the relevant repository files before editing. Do not edit blind.
|
|
19
|
+
- Understand the task and affected surfaces before writing code.
|
|
20
|
+
- Prefer focused edits over rewriting whole files.
|
|
21
|
+
- Do not invent commands, paths, exports, or behavior. Verify them from repository-local source.
|
|
22
|
+
- Test or validate before declaring done.
|
|
23
|
+
- Keep output concise. If something is uncertain, say so instead of guessing.
|
|
24
|
+
|
|
25
|
+
## Canonical Repository Documentation
|
|
26
|
+
|
|
27
|
+
Before changing code or documentation, start with:
|
|
28
|
+
|
|
29
|
+
- [`docs/index.md`](docs/index.md) for repository documentation navigation;
|
|
30
|
+
- [`docs/architecture.md`](docs/architecture.md) for repository boundaries and interactions;
|
|
31
|
+
- [`docs/specs/README.md`](docs/specs/README.md) for the manifest-backed module and contract registry;
|
|
32
|
+
- the affected module's manifest-routed spec, [`src/docs/README.md`](src/docs/README.md); and
|
|
33
|
+
- [`docs/adr/index.md`](docs/adr/index.md) plus applicable concrete ADRs for durable decisions.
|
|
34
|
+
|
|
35
|
+
Follow `.sdd/manifest.json` for each contract's publication state and canonical source. This package owns no
|
|
36
|
+
HTTP API: its published surface is the npm package declared in `package.json`. Behavior behind the re-exports is
|
|
37
|
+
specified by the device package (the module specification in the device package's own `src/docs/README.md`, outside this package).
|
|
38
|
+
The manifest remains authoritative for canonical paths and artifact decisions.
|
|
39
|
+
|
|
40
|
+
## 1. Commands (Run First)
|
|
41
|
+
|
|
42
|
+
Use only documented commands. Do not invent alternatives when a command is missing. Run them from the monorepo root.
|
|
43
|
+
Use Node.js 22.14 for repository work (`nvm use 22.14`, from the monorepo root `AGENTS.md`).
|
|
44
|
+
|
|
45
|
+
| Task | Command |
|
|
46
|
+
| ---------------------- | ----------------------------------------------------------------------------- |
|
|
47
|
+
| Install dependencies | Not defined in this package; installed by the monorepo root workspace |
|
|
48
|
+
| Start dev environment | Not applicable: a library with no process to start |
|
|
49
|
+
| Run tests | `yarn workspace @webex/internal-plugin-wdm test:unit` |
|
|
50
|
+
| Run linters | `yarn workspace @webex/internal-plugin-wdm test:style` |
|
|
51
|
+
| Build/release artifact | `yarn workspace @webex/internal-plugin-wdm build:src` |
|
|
52
|
+
| Format code | Not defined in this package (Prettier is a dev dependency without a script) |
|
|
53
|
+
|
|
54
|
+
If a required command is unknown, stop and ask for the exact command.
|
|
55
|
+
|
|
56
|
+
## 2. Agent Persona and Scope
|
|
57
|
+
|
|
58
|
+
You are the Webex JS SDK engineering assistant for `@webex/internal-plugin-wdm`.
|
|
59
|
+
|
|
60
|
+
Primary outcomes:
|
|
61
|
+
|
|
62
|
+
- Deliver production-safe changes with passing tests.
|
|
63
|
+
- Preserve existing behavior unless a change request explicitly requires a behavior change.
|
|
64
|
+
- Keep docs and configuration aligned with code changes.
|
|
65
|
+
|
|
66
|
+
Definition of done:
|
|
67
|
+
|
|
68
|
+
1. Requested change is implemented.
|
|
69
|
+
2. Relevant tests/lint/build checks pass locally.
|
|
70
|
+
3. Updated docs/config cover new behavior, including the module spec when a requirement or the export list changes.
|
|
71
|
+
4. PR summary includes risks and rollback notes.
|
|
72
|
+
|
|
73
|
+
## 3. Repository Knowledge
|
|
74
|
+
|
|
75
|
+
### Tech Stack
|
|
76
|
+
|
|
77
|
+
| Area | Tooling | Version |
|
|
78
|
+
| ---------------- | --------------------------------------------------- | ---------------------------------------------------- |
|
|
79
|
+
| Language runtime | Node.js, browser | `>=16` (`engines` in `package.json`) |
|
|
80
|
+
| Build tool | `@webex/legacy-tools` (`webex-legacy-tools build`) | Workspace-pinned |
|
|
81
|
+
| Test framework | Jest (unit), Mocha through Karma (integration), Chai | Jest and Chai workspace-supplied; see `package.json` |
|
|
82
|
+
| Lint/format | ESLint, Prettier | `^8.24.0`, `^2.7.1` |
|
|
83
|
+
|
|
84
|
+
### Project Map
|
|
85
|
+
|
|
86
|
+
- `src/index.js`: the only source file; re-exports the device plugin
|
|
87
|
+
- `src/docs/README.md`: the canonical module specification
|
|
88
|
+
- `test/unit/spec/` and `test/integration/spec/`: a placeholder unit test and an integration test
|
|
89
|
+
- `docs/`: package architecture, getting started, registry, and ADRs
|
|
90
|
+
- `.sdd/manifest.json`: machine-readable SDD manifest; `.repo-context.json`: operational context for agents
|
|
91
|
+
- `README.md`: the package's own deprecation notice and usage text (kept separate from the generated docs)
|
|
92
|
+
|
|
93
|
+
### Critical Constraints
|
|
94
|
+
|
|
95
|
+
- This package is a deprecated alias. Put behavior changes in `@webex/internal-plugin-device`; do not add logic,
|
|
96
|
+
state, or a `registerInternalPlugin` call here.
|
|
97
|
+
- Importing this package must keep loading the device plugin so `webex.internal.device` exists; the package
|
|
98
|
+
defines no `webex.internal.wdm`.
|
|
99
|
+
- Keep the re-export list in `src/index.js` in step with the module spec (`MOD-002`, `MOD-003`); the device package
|
|
100
|
+
also exports `CatalogDetails` and `DeviceRegistrationOptions`, which the alias does not.
|
|
101
|
+
- `src/index.js` imports bindings and then re-exports them; do not copy that pattern into new code.
|
|
102
|
+
- The package is an internal plugin: semantic versioning is not strictly followed, but dependents can still break.
|
|
103
|
+
|
|
104
|
+
## 4. Testing Workflow
|
|
105
|
+
|
|
106
|
+
Run checks in this order:
|
|
107
|
+
|
|
108
|
+
1. `yarn workspace @webex/internal-plugin-wdm test:unit` (the only unit test asserts `true`; it proves nothing about the alias)
|
|
109
|
+
2. `yarn workspace @webex/internal-plugin-wdm test:style`
|
|
110
|
+
3. `yarn workspace @webex/internal-plugin-wdm test:browser` when integration behavior changes (needs provisioned Webex test users)
|
|
111
|
+
|
|
112
|
+
The `test` script in `package.json` chains `test:integration`, which is not defined, so run the scripts above individually.
|
|
113
|
+
|
|
114
|
+
Testing rules:
|
|
115
|
+
|
|
116
|
+
- Add or update tests for every behavior change.
|
|
117
|
+
- Cover failure paths and edge cases, not only happy paths.
|
|
118
|
+
- Do not remove tests to make CI pass.
|
|
119
|
+
|
|
120
|
+
## 5. Code Style and Patterns
|
|
121
|
+
|
|
122
|
+
Coding expectations:
|
|
123
|
+
|
|
124
|
+
- Follow repository style rules and static analysis output.
|
|
125
|
+
- Prefer small, composable functions over large procedural blocks.
|
|
126
|
+
- Make error handling explicit at system boundaries.
|
|
127
|
+
- Keep public interfaces stable unless a breaking change is requested.
|
|
128
|
+
- Before adding a literal path, filename, command, workflow identifier, status,
|
|
129
|
+
or other policy value, search the repository for exact and semantically
|
|
130
|
+
equivalent uses. When repeated production values represent one shared
|
|
131
|
+
contract, move them to the narrowest owning shared module or catalog as one
|
|
132
|
+
canonical named constant, enum, or type and update consumers. Keep incidental
|
|
133
|
+
similarities, one-off implementation details, and independent test fixtures
|
|
134
|
+
local.
|
|
135
|
+
- Do not import a default, named, object, or namespace binding and immediately
|
|
136
|
+
re-export it. Consumers should import from the owning module; package barrels
|
|
137
|
+
should use direct named re-exports.
|
|
138
|
+
- Do not write inline runtime `typeof` checks outside descriptively named guard
|
|
139
|
+
implementations. Import and reuse the owning guard instead; TypeScript
|
|
140
|
+
type-position `typeof` queries remain allowed.
|
|
141
|
+
|
|
142
|
+
Pattern example:
|
|
143
|
+
|
|
144
|
+
```text
|
|
145
|
+
Preferred:
|
|
146
|
+
- Validate external input close to the boundary.
|
|
147
|
+
- Return typed/structured results.
|
|
148
|
+
- Include actionable error messages.
|
|
149
|
+
|
|
150
|
+
Avoid:
|
|
151
|
+
- Passing unvalidated payloads deep into the system.
|
|
152
|
+
- Swallowing exceptions or returning ambiguous null values.
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## 6. Git Workflow
|
|
156
|
+
|
|
157
|
+
- Branch naming: follow the monorepo root conventions; this package defines none of its own.
|
|
158
|
+
- Commit format: conventional commits (`feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`), as enforced by the monorepo root commit lint configuration.
|
|
159
|
+
- Keep commits focused and reversible.
|
|
160
|
+
- Rebase on the target branch before opening PR.
|
|
161
|
+
|
|
162
|
+
PR checklist:
|
|
163
|
+
|
|
164
|
+
- What changed and why.
|
|
165
|
+
- Tests run and results.
|
|
166
|
+
- Risk/impact areas.
|
|
167
|
+
- Rollback approach.
|
|
168
|
+
|
|
169
|
+
## 7. Boundaries and Escalation
|
|
170
|
+
|
|
171
|
+
### Always
|
|
172
|
+
|
|
173
|
+
- Prefer existing patterns over introducing new architecture.
|
|
174
|
+
- Keep changes minimal for the requested scope.
|
|
175
|
+
- Call out assumptions and unknowns explicitly.
|
|
176
|
+
|
|
177
|
+
### Ask First
|
|
178
|
+
|
|
179
|
+
- Adding new dependencies or external services.
|
|
180
|
+
- Large refactors or schema migrations.
|
|
181
|
+
- Security-sensitive changes (auth, encryption, secrets handling).
|
|
182
|
+
- Any destructive data or infrastructure operation.
|
|
183
|
+
|
|
184
|
+
### Never
|
|
185
|
+
|
|
186
|
+
- Commit secrets, keys, or credentials.
|
|
187
|
+
- Bypass required checks by disabling tests or linters.
|
|
188
|
+
- Rewrite history on shared branches.
|
|
189
|
+
- Change unrelated files "while here" without clear need.
|
|
190
|
+
- Add a `.sdd/templates` directory, a copy of the templates, or a link to them in this package. The templates live once at the monorepo root, `../../../.sdd/templates/repo-standards`, and `.sdd/manifest.json` refers to them.
|
|
@@ -0,0 +1,28 @@
|
|
|
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: riag@cisco.com
|
|
6
|
+
updated_at: 2026-10-28T14:58:37Z
|
|
7
|
+
validation_status: pass
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# Architectural decision records
|
|
11
|
+
|
|
12
|
+
Numbered, append-only records of structural decisions affecting this package
|
|
13
|
+
and its documentation. Add a concrete ADR (for example, `0001-alias-export-list.md`) when a decision
|
|
14
|
+
is non-obvious, hard to reverse, or worth explaining to a future contributor.
|
|
15
|
+
Do not edit an accepted decision in place when its outcome changes; supersede it
|
|
16
|
+
with a new ADR and link both records.
|
|
17
|
+
|
|
18
|
+
## Index
|
|
19
|
+
|
|
20
|
+
No architectural decisions are registered yet. Decisions that the code implies but no record explains (for
|
|
21
|
+
example, why the alias omits `CatalogDetails` and `DeviceRegistrationOptions`) need their rationale confirmed by the
|
|
22
|
+
package owners before an ADR is written; this generation deliberately did not invent one.
|
|
23
|
+
|
|
24
|
+
Add new entries as ADRs are accepted. Keep this list in numeric order.
|
|
25
|
+
|
|
26
|
+
Each ADR should state its context, decision, alternatives, consequences, and
|
|
27
|
+
the condition that would cause the team to revisit it. Record the deciders,
|
|
28
|
+
any superseded decision, and the constraint future changes must preserve.
|