webex-node 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 +403 -0
- package/.sdd/manifest.json +361 -0
- package/AGENTS.md +182 -0
- package/dist/webex-node.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +93 -0
- package/docs/adr/index.md +22 -0
- package/docs/architecture.md +244 -0
- package/docs/getting-started.md +118 -0
- package/docs/index.md +46 -0
- package/docs/specs/README.md +67 -0
- package/package.json +27 -27
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +357 -0
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 1,
|
|
3
|
+
"repository": {
|
|
4
|
+
"name": "webex-node",
|
|
5
|
+
"purpose": "Node.js build of the Webex JS SDK. Loading the package installs @babel/polyfill when no polyfill is present, loads 17 Webex plugin packages for their registration side effects, and exports WebexNode, a WebexCore subclass with a static init factory that merges sdkType 'webex-node', the package configuration object, and the caller's config before constructing an instance. The package configuration in src/config.js is currently nested under config.default and not applied.",
|
|
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-node build:src",
|
|
20
|
+
"source_file": "package.json",
|
|
21
|
+
"role": "compile"
|
|
22
|
+
},
|
|
23
|
+
"build": {
|
|
24
|
+
"command": "yarn workspace webex-node build",
|
|
25
|
+
"source_file": "package.json",
|
|
26
|
+
"role": "package"
|
|
27
|
+
},
|
|
28
|
+
"unit-test": {
|
|
29
|
+
"command": "yarn workspace webex-node test:unit",
|
|
30
|
+
"source_file": "package.json",
|
|
31
|
+
"role": "unit-test"
|
|
32
|
+
},
|
|
33
|
+
"lint": {
|
|
34
|
+
"command": "yarn workspace webex-node test:style",
|
|
35
|
+
"source_file": "package.json",
|
|
36
|
+
"role": "lint"
|
|
37
|
+
},
|
|
38
|
+
"deploy": {
|
|
39
|
+
"command": "yarn workspace webex-node deploy:npm",
|
|
40
|
+
"source_file": "package.json",
|
|
41
|
+
"role": "deploy"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"toolchain": [
|
|
45
|
+
{
|
|
46
|
+
"name": "node",
|
|
47
|
+
"version": "22.14",
|
|
48
|
+
"origin": "human-declared",
|
|
49
|
+
"declared_by": "akulakum@cisco.com (bootstrap instruction 'nvm use 22.14.0'; the workspace root AGENTS.md requires Node 22.14 for development and the root .nvmrc selects the Node 22 LTS line; package.json engines >=18 is the consumer floor; the root package.json engines.node still declares 18.x)"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "yarn",
|
|
53
|
+
"version": "3.4.1",
|
|
54
|
+
"origin": "human-declared",
|
|
55
|
+
"declared_by": "akulakum@cisco.com (workspace root package.json packageManager yarn@3.4.1, provided through Corepack per the workspace root CONTRIBUTING.md; install runs from the workspace root)"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "corepack",
|
|
59
|
+
"version": "bundled with node 22.14",
|
|
60
|
+
"origin": "human-declared",
|
|
61
|
+
"declared_by": "akulakum@cisco.com (workspace root CONTRIBUTING.md setup step enables Corepack for the selected Node.js version)"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "babel",
|
|
65
|
+
"version": "^7.22.11",
|
|
66
|
+
"origin": "repo-config",
|
|
67
|
+
"source_file": "package.json"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "eslint",
|
|
71
|
+
"version": "^8.24.0",
|
|
72
|
+
"origin": "repo-config",
|
|
73
|
+
"source_file": "package.json"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "prettier",
|
|
77
|
+
"version": "^2.7.1",
|
|
78
|
+
"origin": "repo-config",
|
|
79
|
+
"source_file": "package.json"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"registries": [
|
|
83
|
+
{
|
|
84
|
+
"name": "npm",
|
|
85
|
+
"type": "npm",
|
|
86
|
+
"host": "registry.npmjs.org",
|
|
87
|
+
"origin": "human-declared",
|
|
88
|
+
"egress_required": true,
|
|
89
|
+
"declared_by": "akulakum@cisco.com (verified from the workspace root .yarnrc.yml npmRegistryServer: https://registry.npmjs.org; the committed configuration declares no registry authentication, so no auth_env is recorded)"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"tests": {
|
|
93
|
+
"unit": {
|
|
94
|
+
"command_ref": "unit-test",
|
|
95
|
+
"dir": "test/unit/spec",
|
|
96
|
+
"framework": "jest"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"quality_gates": {
|
|
100
|
+
"code_coverage": {
|
|
101
|
+
"origin": "none",
|
|
102
|
+
"declared_by": "akulakum@cisco.com via bootstrap questionnaire (delegated check: jest.config.js re-exports @webex/jest-config-legacy, which sets collectCoverage false and no coverageThreshold; test:unit runs webex-legacy-tools with --runner jest; package.json defines no coverage script)"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"coverage_status_definitions": {
|
|
106
|
+
"specced": ">=80% public surface specced, drift <5% - spec is authoritative",
|
|
107
|
+
"partial": "40-80% specced - spec is a hint, cross-check code",
|
|
108
|
+
"untracked": "<40% specced - code is the source of truth"
|
|
109
|
+
},
|
|
110
|
+
"spec_source_policy": {
|
|
111
|
+
"mode": "keep-separate",
|
|
112
|
+
"migrated_source_disposition": "retain",
|
|
113
|
+
"disposition_decided_by": "akulakum@cisco.com",
|
|
114
|
+
"disposition_decided_at": "2026-10-15T16:41:58Z",
|
|
115
|
+
"decided_by": "akulakum@cisco.com",
|
|
116
|
+
"decided_at": "2026-10-15T16:41:58Z",
|
|
117
|
+
"decision_record": "docs/adr/0001-retain-product-readme.md"
|
|
118
|
+
},
|
|
119
|
+
"spec_sources": [],
|
|
120
|
+
"modules": [
|
|
121
|
+
{
|
|
122
|
+
"path": "src",
|
|
123
|
+
"canonical_spec": "src/docs/README.md",
|
|
124
|
+
"coverage_status": "Partial",
|
|
125
|
+
"coverage_evidence": "Field coverage 93.3% (14/15) assessed 2026-10-15 by the generator; critical field coverage 8/8. The one WEAK field is test strategy: test/unit/spec/webex-node.test.js runs 5 tests that cover init merging, the sdkType override, the webex property, and the webex-core fedramp setting, but no test asserts any src/config.js value at the top level, plugin registration, the polyfill guard, the CommonJS export, or init mutating its argument, and no characterization baseline exists. Independent validation: PASS-WITH-WARNINGS on 2026-11-13 by current-session; 0 Blocking, 0 Important, 0 Medium, 2 Minor tooling warnings. Held at Partial: untested configuration and registration behavior, no characterization baseline, and no spec-drift record.",
|
|
126
|
+
"last_assessed": "2026-10-15",
|
|
127
|
+
"contracts": {
|
|
128
|
+
"provides": [
|
|
129
|
+
"webex-node-sdk"
|
|
130
|
+
],
|
|
131
|
+
"requires": [
|
|
132
|
+
"webex-core-plugin-host",
|
|
133
|
+
"webex-sdk-plugins",
|
|
134
|
+
"babel-polyfill",
|
|
135
|
+
"lodash"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"section_profile": {
|
|
139
|
+
"has_tiers": false,
|
|
140
|
+
"has_ui": false,
|
|
141
|
+
"crosses_service_boundaries": false,
|
|
142
|
+
"holds_client_state": false,
|
|
143
|
+
"enforces_domain_rules": true,
|
|
144
|
+
"is_concurrent_async": false,
|
|
145
|
+
"owns_persistence": false,
|
|
146
|
+
"stateful_transitions": false,
|
|
147
|
+
"exposes_wire_protocol": false,
|
|
148
|
+
"ui_multi_screen": false,
|
|
149
|
+
"large_data_model": false,
|
|
150
|
+
"returns_caller_errors": false,
|
|
151
|
+
"module_specific_conventions": true,
|
|
152
|
+
"published_package": true,
|
|
153
|
+
"embedded_in_host": false,
|
|
154
|
+
"has_design_tradeoff": true,
|
|
155
|
+
"resolved_by": "claude-cowork (code evidence; bootstrap questionnaire)",
|
|
156
|
+
"resolved_at": "2026-10-15T16:41:58Z",
|
|
157
|
+
"has_submodules": false,
|
|
158
|
+
"has_submodules_computed_by": "scripts/module_tree.py",
|
|
159
|
+
"has_submodules_computed_at": "2026-10-15T16:41:58Z"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"contract_catalog": {
|
|
164
|
+
"index_path": "docs/architecture.md",
|
|
165
|
+
"definitions": {
|
|
166
|
+
"webex-node-sdk": {
|
|
167
|
+
"kind": "sdk",
|
|
168
|
+
"publication": "published",
|
|
169
|
+
"source_kind": "repository-path",
|
|
170
|
+
"source": "package.json",
|
|
171
|
+
"summary": "Published npm package webex-node. main and exports['.'] point at dist/index.js, exports['./package'] at package.json, and devMain at src/index.js. require('webex-node') returns the WebexNode class (CommonJS module.exports, no named exports). Loading it installs @babel/polyfill when global._babelPolyfill is not set and loads the 17 plugin packages listed in src/webex-node.js. WebexNode.init(attrs) merges {sdkType: 'webex-node'}, the src/config.js module object, and attrs.config into attrs.config and returns new WebexNode(attrs). Per-file behavior is in src/docs/README.md. Declared in package.json but not required by src/: @webex/common, @webex/internal-plugin-voicea, and @webex/storage-adapter-local-storage. @babel/runtime-corejs2 is used by the build output (Babel transform-runtime helpers), not by src/."
|
|
172
|
+
},
|
|
173
|
+
"webex-core-plugin-host": {
|
|
174
|
+
"kind": "sdk",
|
|
175
|
+
"publication": "internal",
|
|
176
|
+
"source_kind": "external",
|
|
177
|
+
"source": "@webex/webex-core (default export WebexCore)",
|
|
178
|
+
"summary": "WebexCore.extend creates WebexNode; the WebexCore constructor normalizes credential attributes and its initialize merges the webex-core configuration (with registered plugin configuration) under attrs.config. Plugin registration, credentials, the service catalog, storage, and the request pipeline are owned and specified by @webex/webex-core."
|
|
179
|
+
},
|
|
180
|
+
"webex-sdk-plugins": {
|
|
181
|
+
"kind": "sdk",
|
|
182
|
+
"publication": "internal",
|
|
183
|
+
"source_kind": "external",
|
|
184
|
+
"source": "The 17 workspace plugin packages required by src/webex-node.js",
|
|
185
|
+
"summary": "Loaded for their registration side effects: @webex/plugin-authorization, @webex/internal-plugin-calendar, @webex/internal-plugin-device, @webex/internal-plugin-presence, @webex/internal-plugin-support, @webex/internal-plugin-llm, @webex/plugin-attachment-actions, @webex/plugin-device-manager, @webex/plugin-logger, @webex/plugin-messages, @webex/plugin-memberships, @webex/plugin-people, @webex/plugin-rooms, @webex/plugin-teams, @webex/plugin-team-memberships, @webex/plugin-webhooks, and @webex/plugin-encryption. Each package owns its registered name, API, and configuration."
|
|
186
|
+
},
|
|
187
|
+
"babel-polyfill": {
|
|
188
|
+
"kind": "sdk",
|
|
189
|
+
"publication": "published",
|
|
190
|
+
"source_kind": "external",
|
|
191
|
+
"source": "@babel/polyfill@^7.12.1 (npm)",
|
|
192
|
+
"summary": "src/index.js requires it for its global side effect when global._babelPolyfill is falsy."
|
|
193
|
+
},
|
|
194
|
+
"lodash": {
|
|
195
|
+
"kind": "sdk",
|
|
196
|
+
"publication": "published",
|
|
197
|
+
"source_kind": "external",
|
|
198
|
+
"source": "lodash@^4.17.21 (npm)",
|
|
199
|
+
"summary": "src/webex-node.js uses lodash/merge in WebexNode.init."
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"spec_policy": {
|
|
204
|
+
"require_what_and_why": true,
|
|
205
|
+
"require_provenance": true,
|
|
206
|
+
"protected_specs": [
|
|
207
|
+
"src/docs/README.md"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"validation": {
|
|
211
|
+
"generator_runtime": "claude-cowork",
|
|
212
|
+
"generator_model": "claude-opus-5-5",
|
|
213
|
+
"generator_runtime_source": "host-metadata",
|
|
214
|
+
"generator_run_id": "spark-853131-sdd-stage0-2026-10-15",
|
|
215
|
+
"minimum_independence": "different-runtime",
|
|
216
|
+
"runtime_fallback_tier": "different-runtime",
|
|
217
|
+
"blocking_severities": [
|
|
218
|
+
"Blocking"
|
|
219
|
+
],
|
|
220
|
+
"base_ref": "next",
|
|
221
|
+
"head_ref": "WEBEX_NODE_PACKAGE_SDD",
|
|
222
|
+
"validator_runtime": "current-session",
|
|
223
|
+
"validator_runtime_source": "invocation-input",
|
|
224
|
+
"validator_run_id": "spark-853131-spec-validator-2026-11-13-session-b",
|
|
225
|
+
"source_commit": "5cecfb62833a413f7b9c7d7dbf00c597024d563c"
|
|
226
|
+
},
|
|
227
|
+
"layout": {
|
|
228
|
+
"sdd_root": ".sdd",
|
|
229
|
+
"docs_root": "docs",
|
|
230
|
+
"agent_entry_path": "AGENTS.md",
|
|
231
|
+
"standing_docs_root": "docs",
|
|
232
|
+
"spec_index_path": "docs/specs/README.md",
|
|
233
|
+
"module_docs_strategy": "source-local",
|
|
234
|
+
"module_docs_relative_path": "docs/README.md",
|
|
235
|
+
"module_docs_decision": {
|
|
236
|
+
"basis": "repo-standards-default",
|
|
237
|
+
"reason": "No module-local documentation existed. The source-local default gives src/docs/README.md. test:style runs eslint ./src/**/*.* and the workspace root .eslintrc.js ignores *.md, so eslint reports the file as ignored; build:src processes -js -ts only, so Markdown under src/ does not enter the build output.",
|
|
238
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
239
|
+
"decided_at": "2026-10-15T16:41:58Z"
|
|
240
|
+
},
|
|
241
|
+
"repo_context_decision": {
|
|
242
|
+
"path": ".repo-context.json",
|
|
243
|
+
"schema_path": "schemas/repo-context.schema.json",
|
|
244
|
+
"action": "create",
|
|
245
|
+
"schema_action": "create",
|
|
246
|
+
"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 packages/@webex/common/schemas/repo-context.schema.json (Repo Standards 0.3.0).",
|
|
247
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
248
|
+
"decided_at": "2026-10-15T16:41:58Z"
|
|
249
|
+
},
|
|
250
|
+
"artifact_decisions": [
|
|
251
|
+
{
|
|
252
|
+
"path": "docs/service.md",
|
|
253
|
+
"action": "omit",
|
|
254
|
+
"reason": "Library package, not a deployable service. package.json has no start script, container, or deployment descriptor.",
|
|
255
|
+
"decided_by": "claude-cowork (code evidence)",
|
|
256
|
+
"decided_at": "2026-10-15T16:41:58Z"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"path": "mkdocs.yml",
|
|
260
|
+
"action": "omit",
|
|
261
|
+
"reason": "No package-level documentation site exists. Documentation publishing stays with the workspace.",
|
|
262
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
263
|
+
"decided_at": "2026-10-15T16:41:58Z"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"path": "api-specs/openapi.yaml",
|
|
267
|
+
"action": "omit",
|
|
268
|
+
"reason": "The package serves no HTTP routes and sends no requests itself; its published surface is the npm export described by webex-node-sdk.",
|
|
269
|
+
"decided_by": "claude-cowork (code evidence)",
|
|
270
|
+
"decided_at": "2026-10-15T16:41:58Z"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"path": "SECURITY.md",
|
|
274
|
+
"action": "omit",
|
|
275
|
+
"reason": "No security policy file exists in this package or at the workspace root. Stage 0 creates none; a policy is a governance decision outside this package's annotation.",
|
|
276
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
277
|
+
"decided_at": "2026-10-15T16:41:58Z"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"path": "CONTRIBUTING.md",
|
|
281
|
+
"action": "omit",
|
|
282
|
+
"reason": "Contribution instructions are owned at the workspace root and linked from this package README.md.",
|
|
283
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
284
|
+
"decided_at": "2026-10-15T16:41:58Z"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"path": "CHANGELOG.md",
|
|
288
|
+
"action": "omit",
|
|
289
|
+
"reason": "Changelog generation is owned at the workspace root. This package has no changelog file.",
|
|
290
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
291
|
+
"decided_at": "2026-10-15T16:41:58Z"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"path": "CTO_CHECKLIST.yml",
|
|
295
|
+
"action": "omit",
|
|
296
|
+
"reason": "The CTO readiness checklist applies to deployable services. This package is a library.",
|
|
297
|
+
"decided_by": "claude-cowork (code evidence)",
|
|
298
|
+
"decided_at": "2026-10-15T16:41:58Z"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"path": "schemas/cto-checklist.schema.json",
|
|
302
|
+
"action": "omit",
|
|
303
|
+
"reason": "Omitted together with CTO_CHECKLIST.yml.",
|
|
304
|
+
"decided_by": "claude-cowork (code evidence)",
|
|
305
|
+
"decided_at": "2026-10-15T16:41:58Z"
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"template_roots": {
|
|
309
|
+
"canonical": ".sdd/templates/repo-standards"
|
|
310
|
+
},
|
|
311
|
+
"repo_skills_root": ".sdd/skills",
|
|
312
|
+
"contract_index_path": "docs/architecture.md",
|
|
313
|
+
"monorepo_package": {
|
|
314
|
+
"package_path": "packages/webex-node",
|
|
315
|
+
"root_manifest_path": "../../.sdd/manifest.json",
|
|
316
|
+
"templates_root_path": "../../.sdd/templates/repo-standards"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"coverage_ratchet": {
|
|
320
|
+
"enabled": true,
|
|
321
|
+
"waivers": []
|
|
322
|
+
},
|
|
323
|
+
"substrate": {
|
|
324
|
+
"source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
325
|
+
"consumed": [
|
|
326
|
+
"workspace root .eslintrc.js via the test:style script",
|
|
327
|
+
"@webex/babel-config-legacy via babel.config.js",
|
|
328
|
+
"@webex/jest-config-legacy via jest.config.js",
|
|
329
|
+
"@webex/legacy-tools build and test runner via package.json",
|
|
330
|
+
"package README.md",
|
|
331
|
+
"Repo Standards 0.3.0 templates at the monorepo root ../../.sdd/templates/repo-standards, referred to through layout.monorepo_package.templates_root_path; the package holds no templates"
|
|
332
|
+
],
|
|
333
|
+
"compliance_tier": "baseline"
|
|
334
|
+
},
|
|
335
|
+
"section_profiles": {
|
|
336
|
+
"repo": {
|
|
337
|
+
"owns_datastore": false,
|
|
338
|
+
"holds_client_state": false,
|
|
339
|
+
"components_interact": false,
|
|
340
|
+
"domain_data_across_components": false,
|
|
341
|
+
"caches_data": false,
|
|
342
|
+
"observability_convention": false,
|
|
343
|
+
"deploys_to_infra": false,
|
|
344
|
+
"shared_base_libs": true,
|
|
345
|
+
"is_monorepo": false,
|
|
346
|
+
"multi_platform": false,
|
|
347
|
+
"published_package": true,
|
|
348
|
+
"embedded_in_host": false,
|
|
349
|
+
"cross_repo_deps_material": true,
|
|
350
|
+
"security_arch_warranted": true,
|
|
351
|
+
"exposes_commands_or_artifacts": true
|
|
352
|
+
},
|
|
353
|
+
"resolved_by": "claude-cowork (code evidence; bootstrap questionnaire)",
|
|
354
|
+
"resolved_at": "2026-10-15T16:41:58Z"
|
|
355
|
+
},
|
|
356
|
+
"tooling": {
|
|
357
|
+
"sdlc_skills": {
|
|
358
|
+
"source_ref": "repo-annotation@2.3.1"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: agent-entry
|
|
3
|
+
generated_from: agents@0.3.0
|
|
4
|
+
generated_by: claude-cowork
|
|
5
|
+
approved_by: akulakum@cisco.com
|
|
6
|
+
updated_at: 2026-11-13T09:30:49Z
|
|
7
|
+
validation_status: pass-with-warnings
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# AI Agent Instructions
|
|
11
|
+
|
|
12
|
+
Package-scoped SDD entry for `webex-node`, the Node.js build of the Webex JS SDK. This file orients
|
|
13
|
+
agents. The monorepo root `AGENTS.md` governs workspace-wide setup.
|
|
14
|
+
|
|
15
|
+
## Working Method
|
|
16
|
+
|
|
17
|
+
- Read the relevant package files before editing. Do not edit blind.
|
|
18
|
+
- Understand the task and affected surfaces before writing code.
|
|
19
|
+
- Prefer focused edits over rewriting whole files.
|
|
20
|
+
- Do not invent commands, paths, exports, configuration keys, or plugin names. Verify them from this
|
|
21
|
+
package's source and tests, or from the plugin package that owns them.
|
|
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 package documentation navigation;
|
|
30
|
+
- [`docs/architecture.md`](docs/architecture.md) for package boundaries and interactions;
|
|
31
|
+
- [`docs/specs/README.md`](docs/specs/README.md) for the manifest-backed module and contract registry;
|
|
32
|
+
- the module specification at [`src/docs/README.md`](src/docs/README.md) (webex-node SDK entry); and
|
|
33
|
+
- [`docs/adr/index.md`](docs/adr/index.md) plus applicable concrete ADRs.
|
|
34
|
+
|
|
35
|
+
Follow `.sdd/manifest.json` for each contract's publication state and canonical source. This package
|
|
36
|
+
publishes an SDK surface, so its contract artifact is `package.json` plus the `src/index.js` entry.
|
|
37
|
+
It serves no HTTP API, so no OpenAPI applies.
|
|
38
|
+
|
|
39
|
+
## 1. Commands (Run First)
|
|
40
|
+
|
|
41
|
+
Use only documented commands. Do not invent alternatives when a command is missing. Run workspace
|
|
42
|
+
commands from the monorepo root. The workspace name is `webex-node`, with no `@webex/` scope.
|
|
43
|
+
|
|
44
|
+
| Task | Command |
|
|
45
|
+
| ---------------------- | ------- |
|
|
46
|
+
| Install dependencies | `yarn` (workspace root) |
|
|
47
|
+
| Start dev environment | N/A — library package with no start script in `package.json` |
|
|
48
|
+
| Run tests | `yarn workspace webex-node test:unit` (Jest) |
|
|
49
|
+
| Run linters | `yarn workspace webex-node test:style` |
|
|
50
|
+
| Build/release artifact | `yarn workspace webex-node build` (runs `build:src`) |
|
|
51
|
+
| Format code | N/A — no format script; `prettier` is a devDependency used through eslint |
|
|
52
|
+
|
|
53
|
+
The `package.json` script `test` chains `test:style` and `test:unit`; run those two commands
|
|
54
|
+
separately instead. No integration or browser test script exists.
|
|
55
|
+
|
|
56
|
+
If a required command is unknown, stop and ask for the exact command.
|
|
57
|
+
|
|
58
|
+
## 2. Agent Persona and Scope
|
|
59
|
+
|
|
60
|
+
You are the Webex web SDK engineering assistant for `webex-node`.
|
|
61
|
+
|
|
62
|
+
Primary outcomes:
|
|
63
|
+
|
|
64
|
+
- Deliver production-safe changes with unit tests and lint passing.
|
|
65
|
+
- Preserve existing behavior unless a change request explicitly requires a behavior change.
|
|
66
|
+
- Keep docs and configuration aligned with code changes.
|
|
67
|
+
|
|
68
|
+
Definition of done:
|
|
69
|
+
|
|
70
|
+
1. Requested change is implemented.
|
|
71
|
+
2. Relevant tests, lint, and build checks pass locally.
|
|
72
|
+
3. Updated docs cover new behavior, including the module spec.
|
|
73
|
+
4. PR summary includes risks and rollback notes.
|
|
74
|
+
|
|
75
|
+
## 3. Repository Knowledge
|
|
76
|
+
|
|
77
|
+
### Tech Stack
|
|
78
|
+
|
|
79
|
+
| Area | Tooling | Version |
|
|
80
|
+
| ---------------- | ------- | ------- |
|
|
81
|
+
| Language runtime | node | 22.14 for development (workspace root `AGENTS.md`; the root `.nvmrc` selects the Node 22 LTS line; the root `package.json` `engines.node` still declares `18.x`); `>=18` for consumers (`package.json` engines) |
|
|
82
|
+
| Build tool | `@webex/legacy-tools` over babel | `@babel/core` version in `package.json` `devDependencies` |
|
|
83
|
+
| Test framework | Jest via `webex-legacy-tools` (`test:unit`) | workspace versions |
|
|
84
|
+
| Lint/format | eslint with the workspace root `.eslintrc.js` (which applies prettier through its prettier plugin) | eslint and prettier versions in `package.json` `devDependencies` |
|
|
85
|
+
|
|
86
|
+
### Project Map
|
|
87
|
+
|
|
88
|
+
- `src/index.js`: package entry; conditional `@babel/polyfill` load and CommonJS re-export.
|
|
89
|
+
- `src/webex-node.js`: plugin load list, `WebexNode` class, and `init`. Spec: `src/docs/README.md`.
|
|
90
|
+
- `src/config.js` and `src/config-storage.js`: the package configuration object.
|
|
91
|
+
- `test/unit/spec/webex-node.test.js`: the only unit spec (5 tests).
|
|
92
|
+
- Build output from `build:src`: generated. Never edit by hand.
|
|
93
|
+
- `README.md`: retained product readme. It is not the behavioral authority.
|
|
94
|
+
|
|
95
|
+
### Critical Constraints
|
|
96
|
+
|
|
97
|
+
- `require('webex-node')` must keep returning the `WebexNode` class itself.
|
|
98
|
+
- Plugins are loaded only by side-effect `require` calls placed before `WebexCore.extend`.
|
|
99
|
+
- Defined caller configuration passed to `init` wins over package values, with lodash `merge`
|
|
100
|
+
semantics (module spec `INV-001`).
|
|
101
|
+
- The values in `src/config.js` are not applied today (module spec `MOD-007`). Fixing this changes
|
|
102
|
+
runtime defaults for every consumer; do it only in a dedicated change with a test.
|
|
103
|
+
- Other known defects are recorded in the module spec Pitfalls.
|
|
104
|
+
|
|
105
|
+
## 4. Testing Workflow
|
|
106
|
+
|
|
107
|
+
Run checks in this order:
|
|
108
|
+
|
|
109
|
+
1. `yarn workspace webex-node test:unit`
|
|
110
|
+
2. `yarn workspace webex-node test:style`
|
|
111
|
+
|
|
112
|
+
Only a `unit` tier is recorded in `.sdd/manifest.json` `tests`; the SDD manifest `tests` schema
|
|
113
|
+
allows `unit`, `integration`, `e2e`, and `qa`, and this package defines no other test command.
|
|
114
|
+
|
|
115
|
+
Testing rules:
|
|
116
|
+
|
|
117
|
+
- Add or update unit cases for every behavior change.
|
|
118
|
+
- Assert top-level configuration values when changing `init` or `src/config.js`.
|
|
119
|
+
- Cover failure paths and edge cases, not only happy paths.
|
|
120
|
+
- Do not remove tests to make CI pass.
|
|
121
|
+
|
|
122
|
+
No coverage gate applies to this package; do not infer one.
|
|
123
|
+
|
|
124
|
+
## 5. Code Style and Patterns
|
|
125
|
+
|
|
126
|
+
Coding expectations:
|
|
127
|
+
|
|
128
|
+
- Follow repository style rules and static analysis output. Lint uses the workspace root
|
|
129
|
+
`.eslintrc.js`.
|
|
130
|
+
- Prefer small functions over large procedural blocks.
|
|
131
|
+
- Keep `WebexNode` thin: behavior belongs to webex-core or a plugin.
|
|
132
|
+
- Keep public interfaces stable unless a breaking change is requested.
|
|
133
|
+
|
|
134
|
+
Pattern example:
|
|
135
|
+
|
|
136
|
+
```text
|
|
137
|
+
Preferred:
|
|
138
|
+
- Add a plugin with a side-effect require before WebexCore.extend and a package.json dependency.
|
|
139
|
+
- Pass overrides through init({config}) so they win over package values (see INV-001).
|
|
140
|
+
|
|
141
|
+
Avoid:
|
|
142
|
+
- Adding methods or state to WebexNode.
|
|
143
|
+
- Treating README.md as the package API.
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## 6. Git Workflow
|
|
147
|
+
|
|
148
|
+
- Branch naming: no convention is defined in this package or in the workspace `CONTRIBUTING.md`.
|
|
149
|
+
- Commit format: Conventional Commits, which the workspace `CONTRIBUTING.md` requires for pull
|
|
150
|
+
requests (it names no type list).
|
|
151
|
+
- Keep commits focused and reversible.
|
|
152
|
+
|
|
153
|
+
PR checklist:
|
|
154
|
+
|
|
155
|
+
- What changed and why.
|
|
156
|
+
- Tests run and results.
|
|
157
|
+
- Risk and impact, including Node.js applications that rely on the plugin set and `init`.
|
|
158
|
+
- Rollback approach.
|
|
159
|
+
|
|
160
|
+
## 7. Boundaries and Escalation
|
|
161
|
+
|
|
162
|
+
### Always
|
|
163
|
+
|
|
164
|
+
- Prefer existing patterns over introducing new architecture.
|
|
165
|
+
- Keep changes minimal for the requested scope.
|
|
166
|
+
- Call out assumptions and unknowns explicitly.
|
|
167
|
+
- Update the module spec in the same change that alters observable behavior.
|
|
168
|
+
|
|
169
|
+
### Ask First
|
|
170
|
+
|
|
171
|
+
- Adding or removing a plugin, or changing the load order.
|
|
172
|
+
- Changing `init`, the merge order, or `src/config.js` values.
|
|
173
|
+
- Adding or removing dependencies.
|
|
174
|
+
- Changing the package entry, `exports`, or the CommonJS export.
|
|
175
|
+
|
|
176
|
+
### Never
|
|
177
|
+
|
|
178
|
+
- Edit build output by hand.
|
|
179
|
+
- Commit secrets, tokens, or credentials, including in test fixtures.
|
|
180
|
+
- Add a `.sdd/templates` directory, a copy of the templates, or a link to them in this package. The
|
|
181
|
+
templates live once at the monorepo root, `../../.sdd/templates/repo-standards`, and
|
|
182
|
+
`.sdd/manifest.json` refers to them through `layout.monorepo_package.templates_root_path`.
|
package/dist/webex-node.js
CHANGED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ADR
|
|
3
|
+
title: ADR-0001 - Retain the product README
|
|
4
|
+
description: Stage 0 keeps README.md as product documentation and does not route it as a spec source.
|
|
5
|
+
tags: [adr]
|
|
6
|
+
timestamp: 2026-10-15T00:00: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-cowork
|
|
13
|
+
approved_by: akulakum@cisco.com
|
|
14
|
+
updated_at: 2026-11-13T09:30:49Z
|
|
15
|
+
validation_status: pass-with-warnings
|
|
16
|
+
-->
|
|
17
|
+
|
|
18
|
+
# ADR-0001 - Retain the product README
|
|
19
|
+
|
|
20
|
+
| Field | Value |
|
|
21
|
+
| ------------- | ----- |
|
|
22
|
+
| Status | Accepted |
|
|
23
|
+
| Decision date | 2026-10-15 |
|
|
24
|
+
| Deciders | akulakum@cisco.com (bootstrap questionnaire, SPARK-853131) |
|
|
25
|
+
| Supersedes | N/A |
|
|
26
|
+
| Superseded by | N/A |
|
|
27
|
+
|
|
28
|
+
## Context
|
|
29
|
+
|
|
30
|
+
Stage 0 found one existing document, `README.md`. It is the npm usage page. It links an upgrade
|
|
31
|
+
guide, shows the install commands, shows a usage example that creates an instance with
|
|
32
|
+
`init({credentials: {access_token}})` and then calls the rooms, memberships, and messages plugins,
|
|
33
|
+
and states that the package is not meant for browsers.
|
|
34
|
+
|
|
35
|
+
The implementation in `src/` has the polyfill guard, the 17-package plugin load list, the
|
|
36
|
+
`WebexNode` class with `init`, and the configuration object. The README describes none of the
|
|
37
|
+
configuration or the plugin set, and its usage example relies on plugins whose APIs other packages
|
|
38
|
+
own. No other intent, design, or AI-authored spec exists in this package.
|
|
39
|
+
|
|
40
|
+
## Decision
|
|
41
|
+
|
|
42
|
+
Keep `README.md` unchanged. Do not migrate it into the module specification. Record
|
|
43
|
+
`spec_source_policy.mode` as `keep-separate` with `migrated_source_disposition` `retain` and an
|
|
44
|
+
empty `spec_sources` list.
|
|
45
|
+
|
|
46
|
+
The canonical behavior is `src/` plus `test/`. Where the README is incomplete, code wins.
|
|
47
|
+
|
|
48
|
+
## Why
|
|
49
|
+
|
|
50
|
+
The README is the npm-facing page. Rewriting it is a product-doc change, not a requirement of making
|
|
51
|
+
the package SDD-ready. What it states about this package (the name, the install, `init` with
|
|
52
|
+
credentials, and Node.js only) agrees with `package.json` and `src/`, and it states no behavior of
|
|
53
|
+
this package that conflicts with the module specification.
|
|
54
|
+
|
|
55
|
+
## Alternatives considered
|
|
56
|
+
|
|
57
|
+
| Alternative | Why it was not selected |
|
|
58
|
+
| ----------- | ----------------------- |
|
|
59
|
+
| Migrate the README into `src/docs/README.md` and delete it | The page is retained product documentation, and deletion was not requested |
|
|
60
|
+
| Expand the README during Stage 0 | Stage 0 writes the SDD tree only and does not edit `README.md` |
|
|
61
|
+
|
|
62
|
+
## Consequences
|
|
63
|
+
|
|
64
|
+
**Positive:**
|
|
65
|
+
|
|
66
|
+
- The npm page stays stable for consumers.
|
|
67
|
+
- The module specification is the single behavioral reference.
|
|
68
|
+
|
|
69
|
+
**Negative / tradeoffs:**
|
|
70
|
+
|
|
71
|
+
- Agents must not treat the README usage example as the API of this package; the plugin calls it
|
|
72
|
+
shows belong to other packages.
|
|
73
|
+
- README improvements remain a separate product-doc change.
|
|
74
|
+
|
|
75
|
+
## Constraint on future changes
|
|
76
|
+
|
|
77
|
+
Do not delete `README.md` as part of spec maintenance. If its usage text changes, keep the module
|
|
78
|
+
specification aligned with code rather than with the README.
|
|
79
|
+
|
|
80
|
+
## Follow-up
|
|
81
|
+
|
|
82
|
+
- [ ] None required for Stage 0.
|
|
83
|
+
|
|
84
|
+
## Revisit when
|
|
85
|
+
|
|
86
|
+
- A maintainer chooses to document the package configuration or plugin set on the npm page.
|
|
87
|
+
|
|
88
|
+
## References
|
|
89
|
+
|
|
90
|
+
- `README.md`
|
|
91
|
+
- `src/index.js`
|
|
92
|
+
- `src/webex-node.js`
|
|
93
|
+
- `.sdd/manifest.json` `spec_source_policy`
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: standing-doc
|
|
3
|
+
generated_from: adr-index@0.3.0
|
|
4
|
+
generated_by: claude-cowork
|
|
5
|
+
approved_by: akulakum@cisco.com
|
|
6
|
+
updated_at: 2026-11-13T09:30:49Z
|
|
7
|
+
validation_status: pass-with-warnings
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# Architectural decision records
|
|
11
|
+
|
|
12
|
+
Numbered, append-only records of structural decisions for this package and its documentation. The
|
|
13
|
+
module specification owns current behavior. An ADR owns why a documentation or structural choice was
|
|
14
|
+
made. Supersede an accepted ADR with a new one instead of editing its outcome.
|
|
15
|
+
|
|
16
|
+
## Index
|
|
17
|
+
|
|
18
|
+
| ADR | Title | Status |
|
|
19
|
+
| --- | ----- | ------ |
|
|
20
|
+
| [0001](0001-retain-product-readme.md) | Retain the product README and treat code as the behavioral authority | Accepted |
|
|
21
|
+
|
|
22
|
+
Keep this list in numeric order.
|