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,244 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Architecture
|
|
3
|
+
title: 'webex-node architecture'
|
|
4
|
+
description: Package-wide boundaries, resources, interactions, dependencies, and cross-cutting architecture.
|
|
5
|
+
tags: [architecture]
|
|
6
|
+
---
|
|
7
|
+
<!-- sdd-generated-metadata
|
|
8
|
+
doc_kind: standing-doc
|
|
9
|
+
generated_from: architecture@0.3.0
|
|
10
|
+
generated_by: claude-cowork
|
|
11
|
+
approved_by: akulakum@cisco.com
|
|
12
|
+
updated_at: 2026-11-13T09:30:49Z
|
|
13
|
+
validation_status: pass-with-warnings
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# webex-node architecture
|
|
17
|
+
|
|
18
|
+
Canonical architecture for this package. Module behavior lives in the
|
|
19
|
+
[webex-node SDK entry specification](../src/docs/README.md). This page owns package boundaries, the
|
|
20
|
+
contract index, and how the package meets the rest of the SDK.
|
|
21
|
+
|
|
22
|
+
Related context: [specification registry](specs/README.md) ·
|
|
23
|
+
[package agent instructions](../AGENTS.md)
|
|
24
|
+
|
|
25
|
+
## Applicability
|
|
26
|
+
|
|
27
|
+
| Condition ID | Status | Evidence or reason | Owned section |
|
|
28
|
+
| ------------------------------------ | ---------- | ------------------ | ------------- |
|
|
29
|
+
| `repo.owns_datastore` | N/A | No database, file store, or migration in `src/` | Repository data and schema |
|
|
30
|
+
| `repo.holds_client_state` | N/A | `src/` defines no state; instance state belongs to webex-core and the plugins | Client state model |
|
|
31
|
+
| `repo.components_interact` | N/A | One module. The load order is shown under Interaction and execution flows. | Dependency and interaction topology |
|
|
32
|
+
| `repo.domain_data_across_components` | N/A | No domain data in `src/` | Object and data ownership |
|
|
33
|
+
| `repo.caches_data` | N/A | No cache in `src/` | Caching catalog |
|
|
34
|
+
| `repo.observability_convention` | N/A | `src/` has no logger, metric, or trace call; logging comes from the plugin-logger plugin it loads | Observability patterns |
|
|
35
|
+
| `repo.deploys_to_infra` | N/A | Library published to npm. No service runtime. | Runtime and infrastructure |
|
|
36
|
+
| `repo.shared_base_libs` | Applicable | Extends `WebexCore` and uses the legacy build, lint, and test stack | Shared and base libraries |
|
|
37
|
+
| `repo.is_monorepo` | N/A | This SDD root is one package. The workspace around it is out of scope. | Package map and inter-package dependencies |
|
|
38
|
+
| `repo.multi_platform` | N/A | Node.js only: `package.json` has no `browser` field and the README says the package is not meant for browsers | Platform matrix |
|
|
39
|
+
| `repo.published_package` | Applicable | `package.json` `name` is `webex-node` and `deploy:npm` publishes it | Release and versioning |
|
|
40
|
+
| `repo.embedded_in_host` | N/A | No host theme or embed API | Host integration and theming |
|
|
41
|
+
| `repo.exposes_commands_or_artifacts` | Applicable | `build:src` writes the build output directory | Commands and generated artifacts |
|
|
42
|
+
| `repo.cross_repo_deps_material` | Applicable | Behavior is supplied by webex-core and 17 sibling plugin packages | Cross-repository topology |
|
|
43
|
+
| `repo.security_arch_warranted` | Applicable | Applications pass access tokens to `init`, and the package declares credential and domain-validation defaults | Security architecture |
|
|
44
|
+
|
|
45
|
+
## Design overview
|
|
46
|
+
|
|
47
|
+
`webex-node` is a published library with one module. Loading it installs the Babel polyfill when no
|
|
48
|
+
polyfill is present, loads 17 Webex plugin packages so that they register with webex-core, and
|
|
49
|
+
exports `WebexNode`, a `WebexCore` subclass with a static `init` factory that merges Node.js
|
|
50
|
+
configuration with the caller's configuration.
|
|
51
|
+
|
|
52
|
+
The package adds no behavior of its own after construction. Credentials, the service catalog,
|
|
53
|
+
requests, storage, events, and every plugin API belong to the sibling packages it loads. The
|
|
54
|
+
configuration it declares is currently nested under `config.default` and does not take effect; the
|
|
55
|
+
module spec records this under `MOD-007` and Pitfalls.
|
|
56
|
+
|
|
57
|
+
## Resource inventory and responsibilities
|
|
58
|
+
|
|
59
|
+
| Resource | Kind | Responsibility | Owner | Source | Detailed specification |
|
|
60
|
+
| -------- | ---- | -------------- | ----- | ------ | ---------------------- |
|
|
61
|
+
| webex-node SDK entry | module | Polyfill guard, plugin loading, `WebexNode` class, `init`, configuration object | @webex/web-sdk | `src/` | `src/docs/README.md` |
|
|
62
|
+
| Published package | package | npm entry points and `exports` | @webex/web-sdk | `package.json` | `docs/architecture.md` |
|
|
63
|
+
|
|
64
|
+
## Interaction and execution flows
|
|
65
|
+
|
|
66
|
+
```mermaid
|
|
67
|
+
flowchart LR
|
|
68
|
+
app[Node.js application]
|
|
69
|
+
index[src_index_js]
|
|
70
|
+
poly[babel_polyfill]
|
|
71
|
+
entry[src_webex_node_js]
|
|
72
|
+
plugins[17 plugin packages]
|
|
73
|
+
core[webex_core WebexCore]
|
|
74
|
+
cfg[src_config_js]
|
|
75
|
+
store[src_config_storage_js]
|
|
76
|
+
app -->|require| index
|
|
77
|
+
index -->|if no polyfill| poly
|
|
78
|
+
index --> entry
|
|
79
|
+
entry -->|side-effect require| plugins
|
|
80
|
+
plugins -->|register| core
|
|
81
|
+
entry -->|extend| core
|
|
82
|
+
entry --> cfg
|
|
83
|
+
cfg --> store
|
|
84
|
+
app -->|init attrs| entry
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
| From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
|
|
88
|
+
| ---- | -- | ------------------------ | ------- | --------------------------------- |
|
|
89
|
+
| Application | `src/index.js` | CommonJS `require` | Get the `WebexNode` class | A missing or unbuilt dependency throws at load |
|
|
90
|
+
| `src/index.js` | `@babel/polyfill` | side-effect `require` | Global polyfills when none are present | Load-time only |
|
|
91
|
+
| `src/webex-node.js` | Plugin packages | side-effect `require`, in order | Register plugins with webex-core | Load-time only; see the module spec Module-specific rules |
|
|
92
|
+
| `src/webex-node.js` | webex-core | `WebexCore.extend` and the constructor | Create the class and instances | Constructor behavior is webex-core's |
|
|
93
|
+
| Application | `WebexNode.init` | in-process call | Configured instance | See the module spec `INV-001` |
|
|
94
|
+
|
|
95
|
+
## Dependency topology
|
|
96
|
+
|
|
97
|
+
| Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
|
|
98
|
+
| ---------- | ---- | ------- | ------- | ------------------------------------ |
|
|
99
|
+
| `@webex/webex-core` | Internal | `src` | `WebexCore` base class, constructor, configuration, plugin registration | Workspace version |
|
|
100
|
+
| Plugin packages: `@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`, `@webex/plugin-encryption` | Internal | `src` | Side-effect registration | Workspace versions; load order in the module spec |
|
|
101
|
+
| `@babel/polyfill` | External | `src` | Global polyfills | Range in `package.json` |
|
|
102
|
+
| `@babel/runtime-corejs2` | External | build output | Babel runtime helpers | Range in `package.json` |
|
|
103
|
+
| `lodash` | External | `src` | `merge` in `init` | Range in `package.json` |
|
|
104
|
+
| `@webex/common`, `@webex/internal-plugin-voicea`, `@webex/storage-adapter-local-storage` | Internal | none | Declared, not required by `src/` | Workspace versions |
|
|
105
|
+
|
|
106
|
+
Registered names come from each plugin's own `registerPlugin` or `registerInternalPlugin` call in
|
|
107
|
+
that package's entry file: src/index.js, except src/index.ts in internal-plugin-llm and
|
|
108
|
+
plugin-encryption. plugin-authorization re-exports plugin-authorization-node in Node.js, and the
|
|
109
|
+
`authorization` call is in plugin-authorization-node, file src/index.js.
|
|
110
|
+
|
|
111
|
+
- Public: `authorization`, `attachmentActions`, `devicemanager`, `logger` (replacing webex-core's
|
|
112
|
+
built-in logger), `messages`, `memberships`, `people`, `rooms`, `teams`, `teamMemberships`,
|
|
113
|
+
`webhooks`, and `cypher` (plugin-encryption).
|
|
114
|
+
- Internal: `calendar`, `device`, `presence`, `support`, and `llm`.
|
|
115
|
+
|
|
116
|
+
Those packages import further plugins, such as internal-plugin-conversation and
|
|
117
|
+
internal-plugin-mercury, which register as well. No dependency cycle exists inside the package.
|
|
118
|
+
|
|
119
|
+
## Public and consumer surfaces
|
|
120
|
+
|
|
121
|
+
| Surface | Type | Owner | Consumers | Compatibility policy | Source |
|
|
122
|
+
| ------- | ---- | ----- | --------- | -------------------- | ------ |
|
|
123
|
+
| `webex-node-sdk` (published) | SDK | webex-node SDK entry | Node.js applications; sibling package test-webex-node (manual smoke script) | See Release and versioning | `package.json` |
|
|
124
|
+
| `webex-core-plugin-host` (required) | SDK | sibling package webex-core | webex-node SDK entry | External | `@webex/webex-core` |
|
|
125
|
+
| `webex-sdk-plugins` (required) | SDK | the 17 plugin packages | webex-node SDK entry | External; each plugin owns its API | the plugin packages |
|
|
126
|
+
| `babel-polyfill` (required) | SDK | npm | Package entry | See Dependency topology | npm |
|
|
127
|
+
| `lodash` (required) | SDK | npm | webex-node SDK entry | See Dependency topology | npm |
|
|
128
|
+
|
|
129
|
+
`webex-node-sdk` entry points: `main` and `exports["."]` point at the build output, `devMain` at
|
|
130
|
+
`src/index.js`, and `exports["./package"]` at `package.json`. No HTTP surface is served, so
|
|
131
|
+
`api-specs/openapi.yaml` is omitted.
|
|
132
|
+
|
|
133
|
+
## Cross-cutting architecture
|
|
134
|
+
|
|
135
|
+
### Security
|
|
136
|
+
|
|
137
|
+
- Trust boundaries and identity flow: see Security architecture.
|
|
138
|
+
- Sensitive surfaces and data classes: access tokens and OAuth client settings that applications
|
|
139
|
+
pass to `init`; handling is in Security architecture.
|
|
140
|
+
- Encryption and secret boundaries: the package stores no secret; see Security architecture.
|
|
141
|
+
|
|
142
|
+
### Observability and operations
|
|
143
|
+
|
|
144
|
+
- Logging and correlation: none in this package (see the `repo.observability_convention` row).
|
|
145
|
+
- Metrics, traces, and audit signals: N/A — none emitted by this package.
|
|
146
|
+
- Ownership and operational entry points: no runtime to deploy or monitor; owners are listed in
|
|
147
|
+
References and maintenance.
|
|
148
|
+
|
|
149
|
+
### Quality attributes
|
|
150
|
+
|
|
151
|
+
- Compatibility: `require('webex-node')` returns the class, and the plugin set and `init` merge
|
|
152
|
+
order are relied on by applications.
|
|
153
|
+
- Footprint: loading the package loads every listed plugin and its transitive plugins.
|
|
154
|
+
- Correctness: the declared configuration does not take effect today (module spec `MOD-007`).
|
|
155
|
+
|
|
156
|
+
## Shared and base libraries
|
|
157
|
+
|
|
158
|
+
| Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
|
|
159
|
+
| ------- | ------------------------ | --------- | ------------- | ------------------ |
|
|
160
|
+
| `WebexCore` from `@webex/webex-core` | Construction, credentials, configuration merge, plugin registry, storage, and request pipeline | `src/webex-node.js` | workspace | Follow webex-core conventions; do not reimplement them here |
|
|
161
|
+
| `@webex/babel-config-legacy`, `@webex/jest-config-legacy` | Build and Jest config passthroughs | `babel.config.js`, `jest.config.js` | workspace | Change upstream, not in the passthrough files |
|
|
162
|
+
| Workspace root `.eslintrc.js` | Lint rules for `test:style`; `@webex/eslint-config-legacy` is a devDependency that no file in this package references | `package.json` `test:style` | workspace | Change at the workspace root |
|
|
163
|
+
| `@webex/legacy-tools` | `webex-legacy-tools` build and test runners | `package.json` scripts | workspace | Scripts call it; do not replace locally |
|
|
164
|
+
|
|
165
|
+
## Release and versioning
|
|
166
|
+
|
|
167
|
+
| Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
|
|
168
|
+
| -------- | -------------- | --------------- | ------------------ | --------------------------------- |
|
|
169
|
+
| `webex-node` | npm, through the `deploy:npm` script (manifest `commands.deploy`) | Workspace release tooling; `package.json` in the repository has no `version` field | None declared in code | No package-local changelog; workspace tooling owns it |
|
|
170
|
+
|
|
171
|
+
## Commands and generated artifacts
|
|
172
|
+
|
|
173
|
+
| Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
|
|
174
|
+
| ------------------- | ----- | ------ | --------------------- | ---------------------- |
|
|
175
|
+
| `yarn` | workspace | root `package.json` and lockfile | workspace `node_modules` | Run from the workspace root |
|
|
176
|
+
| `yarn workspace webex-node build` | package | `src/` | build output through `build:src` | Build output is never edited by hand |
|
|
177
|
+
| `yarn workspace webex-node build:src` | package | `src/` (`.js` and `.ts`) | build output with source maps | Markdown under `src/` is not processed |
|
|
178
|
+
| `yarn workspace webex-node test:unit` | package | `test/unit/spec/` | Jest result | — |
|
|
179
|
+
| `yarn workspace webex-node test:style` | package | files under `src/` | eslint result | Markdown is reported as ignored |
|
|
180
|
+
| `yarn workspace webex-node deploy:npm` | package | build output, `package.json` | Publishes the package to the npm registry | Release pipeline only |
|
|
181
|
+
|
|
182
|
+
## Cross-repository topology
|
|
183
|
+
|
|
184
|
+
| Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
|
|
185
|
+
| ----------------------------- | ------------ | ------------------------------ | ----- | --------------------- |
|
|
186
|
+
| Sibling package webex-core | Consumes | `webex-core-plugin-host` | @webex/web-sdk (CODEOWNERS default rule) | Built before this package's tests run |
|
|
187
|
+
| The 17 sibling plugin packages | Consumes | `webex-sdk-plugins` | @webex/web-sdk (CODEOWNERS default rule) | Required before `WebexCore.extend`; built before use |
|
|
188
|
+
| Sibling package test-webex-node | Provides | `webex-node-sdk` | @webex/web-sdk (CODEOWNERS default rule) | None |
|
|
189
|
+
|
|
190
|
+
These are sibling workspace packages outside this package-scoped SDD root.
|
|
191
|
+
|
|
192
|
+
## Security architecture
|
|
193
|
+
|
|
194
|
+
Threats addressed: an access token passed by the application reaching a host it should not, and
|
|
195
|
+
weaker client or domain settings than the package intends.
|
|
196
|
+
|
|
197
|
+
```mermaid
|
|
198
|
+
flowchart LR
|
|
199
|
+
app[Application token or OAuth settings] -->|attrs| init[WebexNode.init]
|
|
200
|
+
init -->|attrs unchanged except config| core[webex-core constructor and credentials]
|
|
201
|
+
core -->|requests made by plugins| pipeline[webex.request interceptor pipeline owned by webex-core]
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Controls and boundaries:
|
|
205
|
+
|
|
206
|
+
- The package source in `src/` never reads, stores, or sends a token (one unit test reads an
|
|
207
|
+
optional `token` environment variable). `init` passes `credentials` and other
|
|
208
|
+
non-`config` attributes to the webex-core constructor unchanged; webex-core normalizes them
|
|
209
|
+
(sibling package webex-core, file src/webex-core.js).
|
|
210
|
+
- This package sends no request. Authorization, host validation, and redirect handling for the
|
|
211
|
+
requests that the loaded plugins make belong to the webex-core request pipeline; the module spec
|
|
212
|
+
Dependencies row for webex-core records what this package assumes.
|
|
213
|
+
- Gap: `src/config.js` declares `credentials.clientType: 'confidential'` and
|
|
214
|
+
`device.validateDomains: true`, but these values are nested under `config.default` and are not
|
|
215
|
+
applied (module spec `MOD-007`). The values in effect are webex-core's and the plugins' defaults
|
|
216
|
+
unless the application sets them in `config`.
|
|
217
|
+
- `HYDRA_SERVICE_URL` is read by `src/config.js` into the `hydra` and `hydraServiceUrl` keys of
|
|
218
|
+
its default export, which are nested under `config.default` the same way and not applied. The
|
|
219
|
+
variable still takes effect through webex-core: its own configuration reads it into
|
|
220
|
+
`services.discovery.hydra` and `device.preDiscoveryServices` (sibling package webex-core, file
|
|
221
|
+
src/config.js), and those defaults apply unless the caller overrides them or FedRAMP replaces
|
|
222
|
+
`services.discovery`.
|
|
223
|
+
|
|
224
|
+
No security policy file exists in this package or at the workspace root; Stage 0 creates none.
|
|
225
|
+
|
|
226
|
+
## Domain language
|
|
227
|
+
|
|
228
|
+
| Term | Repository-specific meaning | Authoritative source |
|
|
229
|
+
| ---- | --------------------------- | -------------------- |
|
|
230
|
+
| WebexNode | The `WebexCore` subclass exported by this package | `src/webex-node.js` |
|
|
231
|
+
| Plugin set | The 17 packages required by `src/webex-node.js` for their registration side effects | `src/webex-node.js` |
|
|
232
|
+
| `init` | The static factory that merges configuration and constructs an instance | `src/webex-node.js` |
|
|
233
|
+
| Package configuration | The object exported by `src/config.js` | `src/config.js` |
|
|
234
|
+
| `sdkType` | Configuration key that `init` sets to `webex-node` by default | `src/webex-node.js` |
|
|
235
|
+
|
|
236
|
+
## References and maintenance
|
|
237
|
+
|
|
238
|
+
- Decisions: [adr/](adr/), including [ADR 0001](adr/0001-retain-product-readme.md)
|
|
239
|
+
- Instantiated specifications and routing: [specs/README.md](specs/README.md)
|
|
240
|
+
- Module spec: `src/docs/README.md`
|
|
241
|
+
- Owner: `@webex/web-sdk` through the monorepo `.github/CODEOWNERS` default rule
|
|
242
|
+
- Manifest: `.sdd/manifest.json`
|
|
243
|
+
- Update this document in the same change that alters package boundaries, contracts, or
|
|
244
|
+
cross-cutting behavior.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Getting Started
|
|
3
|
+
title: Getting started
|
|
4
|
+
description: Local setup, build, run, and test routing for webex-node.
|
|
5
|
+
tags: [onboarding]
|
|
6
|
+
---
|
|
7
|
+
<!-- sdd-generated-metadata
|
|
8
|
+
doc_kind: standing-doc
|
|
9
|
+
generated_from: getting-started@0.3.0
|
|
10
|
+
generated_by: claude-cowork
|
|
11
|
+
approved_by: akulakum@cisco.com
|
|
12
|
+
updated_at: 2026-11-13T09:30:49Z
|
|
13
|
+
validation_status: pass-with-warnings
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Getting started
|
|
17
|
+
|
|
18
|
+
Onboarding for **webex-node**. Commands run from the webex-js-sdk workspace root. The workspace name
|
|
19
|
+
is `webex-node`, without an `@webex/` scope, and the package lives at `packages/webex-node`.
|
|
20
|
+
|
|
21
|
+
## Prerequisites
|
|
22
|
+
|
|
23
|
+
| Tool or access | Version or requirement |
|
|
24
|
+
| -------------- | ---------------------- |
|
|
25
|
+
| Node.js | 22.14, required for working in this repository by the workspace root `AGENTS.md`; the root `.nvmrc` selects the Node 22 LTS line (the root `package.json` `engines.node` still declares `18.x`; the root `AGENTS.md` and `.nvmrc` take precedence for development) |
|
|
26
|
+
| Yarn | The version pinned by the workspace root `packageManager` field, provided through Corepack, which must be enabled for the selected Node.js version, as the workspace root `CONTRIBUTING.md` setup requires. Workspaces are used, so install from the workspace root rather than this directory |
|
|
27
|
+
| Browser | Not needed: the package has no browser test script and is not meant for browsers |
|
|
28
|
+
|
|
29
|
+
The `package.json` `engines` value `>=18` is the floor for applications that install the package,
|
|
30
|
+
not the development runtime.
|
|
31
|
+
|
|
32
|
+
## Install
|
|
33
|
+
|
|
34
|
+
The repository is already cloned when you are reading this file. Dependencies are resolved for the
|
|
35
|
+
whole workspace:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
yarn
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Build
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
yarn workspace webex-node build
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
`scripts.build` runs `build:src`, which uses the `@webex/legacy-tools` builder to compile `.js` and
|
|
48
|
+
`.ts` files from `src/` into the build output directory with source maps. The manifest records
|
|
49
|
+
`build:src` as the compile role and `build` as the package role.
|
|
50
|
+
|
|
51
|
+
## Run
|
|
52
|
+
|
|
53
|
+
N/A — library package with no start script. A Node.js application loads the package and calls
|
|
54
|
+
`WebexNode.init`. The sibling package test-webex-node is a manual smoke script that does this with a
|
|
55
|
+
placeholder token; it is not a verification command for this package.
|
|
56
|
+
|
|
57
|
+
## Tests
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
yarn workspace webex-node test:unit
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
| Tier | Command | Test location | Framework | External dependencies |
|
|
64
|
+
| ---- | ------- | ------------- | --------- | --------------------- |
|
|
65
|
+
| Unit | `yarn workspace webex-node test:unit` | `test/unit/spec` | Jest (Node test environment) | Built workspace packages that the spec loads; network access is attempted but not required (see below) |
|
|
66
|
+
| Lint | `yarn workspace webex-node test:style` | `src/` | eslint | None |
|
|
67
|
+
|
|
68
|
+
- No integration, browser, or end-to-end tier exists: `package.json` defines only `test:unit` and
|
|
69
|
+
`test:style`, and the package has no `test/integration` directory. The SDD manifest `tests` schema
|
|
70
|
+
allows only `unit`, `integration`, `e2e`, and `qa`; only `unit` is recorded.
|
|
71
|
+
- The `package.json` script `test` chains `test:style` and `test:unit`. Run the two manifest
|
|
72
|
+
commands instead so each result is visible.
|
|
73
|
+
- The unit tests construct real instances. With webex-core's default services settings, once an
|
|
74
|
+
instance emits `ready` and no cached catalog exists, webex-core services requests the service
|
|
75
|
+
catalog. Without network access these requests fail, errors are logged, and the tests still pass.
|
|
76
|
+
- Coverage or quality gate: N/A — no coverage threshold.
|
|
77
|
+
- Enforcement source: none. `jest.config.js` re-exports `@webex/jest-config-legacy`, which sets
|
|
78
|
+
`collectCoverage: false` and no threshold.
|
|
79
|
+
- Test environment or QA dependencies: none beyond the workspace. The spec imports
|
|
80
|
+
`src/webex-node.js`, which loads `@webex/webex-core` and the plugin packages by name, and those
|
|
81
|
+
names resolve to each package's build output, so a fresh clone needs the workspace build described
|
|
82
|
+
in First-run verification.
|
|
83
|
+
|
|
84
|
+
## Configuration and secrets
|
|
85
|
+
|
|
86
|
+
- Required configuration: none to build or test. At runtime, `HYDRA_SERVICE_URL` sets the Hydra
|
|
87
|
+
discovery URL through webex-core's configuration; this package's own aliases for it in
|
|
88
|
+
`src/config.js` are not applied today (module spec `MOD-007`).
|
|
89
|
+
- Secret source: the application passes its access token or OAuth settings to `WebexNode.init`.
|
|
90
|
+
The unit spec reads an optional `token` environment variable for one test, which passes without it.
|
|
91
|
+
- Package or artifact access: `yarn` needs network access to the npm registry set in the
|
|
92
|
+
workspace root `.yarnrc.yml` (`registry.npmjs.org`), or a proxy, because registry packages such as `lodash`, `@babel/polyfill`, and `eslint` are
|
|
93
|
+
declared and no Yarn cache is committed.
|
|
94
|
+
- Required neighboring repositories or workspace layout: the webex-js-sdk workspace, because
|
|
95
|
+
webex-core and the plugin packages are `workspace:*` dependencies.
|
|
96
|
+
- Platform, simulator, device, or SDK setup: N/A.
|
|
97
|
+
- Never commit credentials or copy production secrets into a local config.
|
|
98
|
+
|
|
99
|
+
## First-run verification
|
|
100
|
+
|
|
101
|
+
1. Precondition: a workspace that uses Node.js 22.14 (see Prerequisites) and has completed the
|
|
102
|
+
Dependencies and Prebuilding setup in the root `CONTRIBUTING.md`. Installing alone is not
|
|
103
|
+
enough: the `webex-legacy-tools` CLI that this package's scripts call is untracked build output
|
|
104
|
+
of the workspace legacy tools package, and the unit spec loads the built output of webex-core
|
|
105
|
+
and the plugin packages.
|
|
106
|
+
2. Run `yarn workspace webex-node build` and check that the build output contains `index.js`.
|
|
107
|
+
3. Run `yarn workspace webex-node test:unit`.
|
|
108
|
+
|
|
109
|
+
Expected result: Jest reports `test/unit/spec/webex-node.test.js` passing with 5 tests: three in
|
|
110
|
+
the `init()` group and two in the `fedramp` group. Logged catalog request errors are expected
|
|
111
|
+
without network access.
|
|
112
|
+
|
|
113
|
+
## Next steps
|
|
114
|
+
|
|
115
|
+
- [Package architecture](architecture.md)
|
|
116
|
+
- [Specification registry](specs/README.md)
|
|
117
|
+
- [Documentation index](index.md)
|
|
118
|
+
- [webex-node SDK entry specification](../src/docs/README.md)
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
okf_version: '0.1'
|
|
3
|
+
---
|
|
4
|
+
<!-- sdd-generated-metadata
|
|
5
|
+
doc_kind: standing-doc
|
|
6
|
+
generated_from: docs-index@0.3.0
|
|
7
|
+
generated_by: claude-cowork
|
|
8
|
+
approved_by: akulakum@cisco.com
|
|
9
|
+
updated_at: 2026-11-13T09:30:49Z
|
|
10
|
+
validation_status: pass-with-warnings
|
|
11
|
+
-->
|
|
12
|
+
|
|
13
|
+
# webex-node documentation
|
|
14
|
+
|
|
15
|
+
Doc map for developers and agents.
|
|
16
|
+
|
|
17
|
+
This package is the Node.js build of the Webex JS SDK. Loading it registers a fixed set of Webex
|
|
18
|
+
plugins and exports `WebexNode`, a `WebexCore` subclass with an `init` factory.
|
|
19
|
+
|
|
20
|
+
## Start here
|
|
21
|
+
|
|
22
|
+
- [Getting started](getting-started.md)
|
|
23
|
+
- [Package architecture](architecture.md)
|
|
24
|
+
- [webex-node SDK entry specification](../src/docs/README.md) — behavior of `src/`
|
|
25
|
+
|
|
26
|
+
## Decisions
|
|
27
|
+
|
|
28
|
+
- [adr/](adr/) — architectural decision records
|
|
29
|
+
|
|
30
|
+
## Specifications and contracts
|
|
31
|
+
|
|
32
|
+
- [architecture.md](architecture.md) — canonical package-wide architecture and contract index
|
|
33
|
+
- [specs/README.md](specs/README.md) — manifest-backed module and contract registry
|
|
34
|
+
- `src/docs/README.md` — the owning specification beside the module's code
|
|
35
|
+
- [adr/](adr/) — concrete architectural decisions
|
|
36
|
+
|
|
37
|
+
No deployable service exists in this package, so no service specification is generated. The
|
|
38
|
+
published contract is an npm/SDK surface whose authoritative source is `package.json` with
|
|
39
|
+
`src/index.js`. The package serves no HTTP API, so no OpenAPI document applies.
|
|
40
|
+
|
|
41
|
+
## Related repository resources
|
|
42
|
+
|
|
43
|
+
- `README.md` — the package's npm-facing usage page, retained separately from this generated
|
|
44
|
+
documentation set. See [ADR 0001](adr/0001-retain-product-readme.md).
|
|
45
|
+
|
|
46
|
+
No `ci/`, `operate/`, `diagrams/`, or runbook directories exist in this package.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: Specification registry
|
|
4
|
+
description: Canonical specification registry and change-routing guide.
|
|
5
|
+
tags: [specifications, registry]
|
|
6
|
+
---
|
|
7
|
+
<!-- sdd-generated-metadata
|
|
8
|
+
doc_kind: standing-doc
|
|
9
|
+
generated_from: spec-index@0.3.0
|
|
10
|
+
generated_by: claude-cowork
|
|
11
|
+
approved_by: akulakum@cisco.com
|
|
12
|
+
updated_at: 2026-11-13T09:30:49Z
|
|
13
|
+
validation_status: pass-with-warnings
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Specification registry
|
|
17
|
+
|
|
18
|
+
Use this page to find the canonical package architecture and every instantiated module specification
|
|
19
|
+
and native contract. Keep technical facts in the owning document.
|
|
20
|
+
|
|
21
|
+
Start with the [package architecture](../architecture.md). No service specification exists: this
|
|
22
|
+
package is a library published to npm, so that artifact is omitted in `.sdd/manifest.json`.
|
|
23
|
+
|
|
24
|
+
## Document roles
|
|
25
|
+
|
|
26
|
+
| Document | Canonical ownership |
|
|
27
|
+
| -------- | ------------------- |
|
|
28
|
+
| [Package architecture](../architecture.md) | Package boundaries, resource inventory, interactions, dependency topology, contract index, and cross-cutting architecture |
|
|
29
|
+
| Service specification | Not applicable — no deployable service exists in this package |
|
|
30
|
+
| Module specifications | Stable behavior and design at each manifest-routed module spec |
|
|
31
|
+
| [ADR](../adr/) | A durable decision, its deciders, rationale, and consequences |
|
|
32
|
+
|
|
33
|
+
## Instantiated specification registry
|
|
34
|
+
|
|
35
|
+
| Resource | Role | Canonical path | Owner | Status | Last verified |
|
|
36
|
+
| -------- | ---- | -------------- | ----- | ------ | ------------- |
|
|
37
|
+
| Package | Architecture | `docs/architecture.md` | @webex/web-sdk | Draft | 2026-10-15 |
|
|
38
|
+
| webex-node SDK entry | Module | `src/docs/README.md` | @webex/web-sdk | Draft | 2026-10-15 |
|
|
39
|
+
| `webex-node-sdk` | Contract | `package.json` | @webex/web-sdk | Active | 2026-10-15 |
|
|
40
|
+
|
|
41
|
+
### Module registry
|
|
42
|
+
|
|
43
|
+
| Module | Responsibility | Manifest coverage state | Start here |
|
|
44
|
+
| --- | --- | --- | --- |
|
|
45
|
+
| `src/` | Polyfill guard, plugin loading, the `WebexNode` class and `init`, and the configuration object | Partial | `src/docs/README.md` |
|
|
46
|
+
|
|
47
|
+
Generator-side field measurement is complete. Field coverage measured 2026-10-15 is 93.3% (14 of 15 mandatory fields PRESENT for `src`). Critical fields are 8 of 8 PRESENT. The WEAK field is test strategy: the 5 unit tests cover `init` merging and the fedramp setting, and the untested paths are listed in the module spec's Verification section. Independent validation: see the module spec Validation status row. Coverage state stays `Partial` until the effective configuration and plugin registration are tested, a characterization baseline exists, and a spec-drift record exists.
|
|
48
|
+
|
|
49
|
+
## Change and verification routing
|
|
50
|
+
|
|
51
|
+
| Change affects | Load and update | Verification route |
|
|
52
|
+
| -------------- | --------------- | ------------------ |
|
|
53
|
+
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn workspace webex-node test:unit` and `yarn workspace webex-node test:style` |
|
|
54
|
+
| A deployable service surface or operating posture | Not applicable — no deployable service exists in this package | Not applicable |
|
|
55
|
+
| `init`, the configuration object, or the storage adapters | `src/docs/README.md` | `yarn workspace webex-node test:unit`, after adding a case that asserts top-level values |
|
|
56
|
+
| The plugin set or its order | `src/docs/README.md`, `docs/architecture.md`, and `package.json` dependencies | `yarn workspace webex-node test:unit` and `yarn workspace webex-node build` |
|
|
57
|
+
| The package entry or `exports` | `src/docs/README.md` and `docs/architecture.md` | `yarn workspace webex-node build` |
|
|
58
|
+
|
|
59
|
+
## Module and contract registration
|
|
60
|
+
|
|
61
|
+
Modules, in manifest tree order: `src` with canonical spec `src/docs/README.md`.
|
|
62
|
+
|
|
63
|
+
`webex-node-sdk` is published; its ecosystem-native artifact is `package.json`, owned by `src`. No
|
|
64
|
+
OpenAPI document applies, which is why `api-specs/openapi.yaml` is omitted.
|
|
65
|
+
|
|
66
|
+
`webex-core-plugin-host`, `webex-sdk-plugins`, `babel-polyfill`, and `lodash` are external required
|
|
67
|
+
contracts. They are not implemented in this package.
|
package/package.json
CHANGED
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
34
34
|
"@webex/jest-config-legacy": "0.0.0",
|
|
35
35
|
"@webex/legacy-tools": "0.0.0",
|
|
36
|
-
"@webex/test-helper-chai": "3.
|
|
37
|
-
"@webex/test-helper-file": "3.
|
|
38
|
-
"@webex/test-helper-mocha": "3.
|
|
39
|
-
"@webex/test-helper-mock-webex": "3.
|
|
40
|
-
"@webex/test-helper-test-users": "3.
|
|
36
|
+
"@webex/test-helper-chai": "3.13.0-next.3",
|
|
37
|
+
"@webex/test-helper-file": "3.13.0-next.3",
|
|
38
|
+
"@webex/test-helper-mocha": "3.13.0-next.3",
|
|
39
|
+
"@webex/test-helper-mock-webex": "3.13.0-next.3",
|
|
40
|
+
"@webex/test-helper-test-users": "3.13.0-next.3",
|
|
41
41
|
"eslint": "^8.24.0",
|
|
42
42
|
"prettier": "^2.7.1",
|
|
43
43
|
"sinon": "^9.2.4"
|
|
@@ -45,28 +45,28 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@babel/polyfill": "^7.12.1",
|
|
47
47
|
"@babel/runtime-corejs2": "^7.14.8",
|
|
48
|
-
"@webex/common": "3.
|
|
49
|
-
"@webex/internal-plugin-calendar": "3.
|
|
50
|
-
"@webex/internal-plugin-device": "3.
|
|
51
|
-
"@webex/internal-plugin-llm": "3.
|
|
52
|
-
"@webex/internal-plugin-presence": "3.
|
|
53
|
-
"@webex/internal-plugin-support": "3.
|
|
54
|
-
"@webex/internal-plugin-voicea": "3.
|
|
55
|
-
"@webex/plugin-attachment-actions": "3.
|
|
56
|
-
"@webex/plugin-authorization": "3.
|
|
57
|
-
"@webex/plugin-device-manager": "3.
|
|
58
|
-
"@webex/plugin-encryption": "3.
|
|
59
|
-
"@webex/plugin-logger": "3.
|
|
60
|
-
"@webex/plugin-memberships": "3.
|
|
61
|
-
"@webex/plugin-messages": "3.
|
|
62
|
-
"@webex/plugin-people": "3.
|
|
63
|
-
"@webex/plugin-rooms": "3.
|
|
64
|
-
"@webex/plugin-team-memberships": "3.
|
|
65
|
-
"@webex/plugin-teams": "3.
|
|
66
|
-
"@webex/plugin-webhooks": "3.
|
|
67
|
-
"@webex/storage-adapter-local-storage": "3.
|
|
68
|
-
"@webex/webex-core": "3.
|
|
48
|
+
"@webex/common": "3.13.0-next.3",
|
|
49
|
+
"@webex/internal-plugin-calendar": "3.13.0-next.11",
|
|
50
|
+
"@webex/internal-plugin-device": "3.13.0-next.7",
|
|
51
|
+
"@webex/internal-plugin-llm": "3.13.0-next.7",
|
|
52
|
+
"@webex/internal-plugin-presence": "3.13.0-next.7",
|
|
53
|
+
"@webex/internal-plugin-support": "3.13.0-next.11",
|
|
54
|
+
"@webex/internal-plugin-voicea": "3.13.0-next.7",
|
|
55
|
+
"@webex/plugin-attachment-actions": "3.13.0-next.11",
|
|
56
|
+
"@webex/plugin-authorization": "3.13.0-next.7",
|
|
57
|
+
"@webex/plugin-device-manager": "3.13.0-next.11",
|
|
58
|
+
"@webex/plugin-encryption": "3.13.0-next.11",
|
|
59
|
+
"@webex/plugin-logger": "3.13.0-next.7",
|
|
60
|
+
"@webex/plugin-memberships": "3.13.0-next.11",
|
|
61
|
+
"@webex/plugin-messages": "3.13.0-next.11",
|
|
62
|
+
"@webex/plugin-people": "3.13.0-next.7",
|
|
63
|
+
"@webex/plugin-rooms": "3.13.0-next.11",
|
|
64
|
+
"@webex/plugin-team-memberships": "3.13.0-next.7",
|
|
65
|
+
"@webex/plugin-teams": "3.13.0-next.7",
|
|
66
|
+
"@webex/plugin-webhooks": "3.13.0-next.7",
|
|
67
|
+
"@webex/storage-adapter-local-storage": "3.13.0-next.7",
|
|
68
|
+
"@webex/webex-core": "3.13.0-next.7",
|
|
69
69
|
"lodash": "^4.17.21"
|
|
70
70
|
},
|
|
71
|
-
"version": "3.
|
|
71
|
+
"version": "3.13.0-next.10"
|
|
72
72
|
}
|