@webex/webex-core 3.12.0-next.62 → 3.12.0-next.63
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 +653 -0
- package/.sdd/manifest.json +605 -0
- package/AGENTS.md +209 -0
- package/dist/lib/batcher.js +1 -1
- package/dist/lib/credentials/credentials.js +1 -1
- package/dist/lib/credentials/token.js +1 -1
- package/dist/lib/services/services.js +1 -1
- package/dist/lib/services-v2/services-v2.js +1 -1
- package/dist/plugins/logger.js +1 -1
- package/dist/webex-core.js +2 -2
- package/docs/adr/index.md +32 -0
- package/docs/architecture.md +298 -0
- package/docs/getting-started.md +96 -0
- package/docs/index.md +55 -0
- package/docs/specs/README.md +76 -0
- package/package.json +3 -3
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +732 -0
- package/src/interceptors/docs/README.md +658 -0
- package/src/lib/credentials/docs/README.md +846 -0
- package/src/lib/services/docs/README.md +737 -0
- package/src/lib/services-v2/docs/README.md +750 -0
- package/src/lib/storage/docs/README.md +646 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Getting Started
|
|
3
|
+
title: Getting started
|
|
4
|
+
description: Local setup, build, and test routing for @webex/webex-core.
|
|
5
|
+
tags: [onboarding]
|
|
6
|
+
---
|
|
7
|
+
<!-- sdd-generated-metadata
|
|
8
|
+
doc_kind: standing-doc
|
|
9
|
+
generated_from: getting-started@0.3.0
|
|
10
|
+
generated_by: claude-code
|
|
11
|
+
approved_by: rsarika@cisco.com
|
|
12
|
+
updated_at: 2026-10-07T13:20:21Z
|
|
13
|
+
validation_status: pass-with-warnings
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Getting started
|
|
17
|
+
|
|
18
|
+
Onboarding for **@webex/webex-core**, a workspace package of the Webex JS SDK monorepo. Every command
|
|
19
|
+
runs from the workspace root.
|
|
20
|
+
|
|
21
|
+
## Prerequisites
|
|
22
|
+
|
|
23
|
+
| Tool or access | Version or requirement |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| Node.js | `>=18` per the package `engines`; the repository `.nvmrc` pins `lts/jod`, and the repo AGENTS instructions ask for 22.14 |
|
|
26
|
+
| Yarn | 3.4.1 (root `packageManager`) |
|
|
27
|
+
| Webex test users and network access | Required only for the integration and browser suites (see Tests) |
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
yarn install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Build
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
yarn workspace @webex/webex-core build:src
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The build transpiles `src` (js and ts) into the git-ignored `dist` directory that `main` points at.
|
|
42
|
+
Consumers inside the workspace that resolve the package by name read `dist`, so rebuild after changing
|
|
43
|
+
`src` before trusting a dependent package's tests.
|
|
44
|
+
|
|
45
|
+
## Run
|
|
46
|
+
|
|
47
|
+
N/A — the package is a library with no runnable entry point. It is exercised through the unit and
|
|
48
|
+
integration suites and through dependent plugins.
|
|
49
|
+
|
|
50
|
+
## Tests
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
yarn workspace @webex/webex-core test:unit
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
| Tier | Command | Test location | Framework | External dependencies |
|
|
57
|
+
| --- | --- | --- | --- | --- |
|
|
58
|
+
| Unit | `yarn workspace @webex/webex-core test:unit` | `test/unit/spec` | Jest, sinon, chai | None |
|
|
59
|
+
| Integration | `yarn workspace @webex/webex-core test:integration` | `test/integration/spec` | Mocha | Provisioned Webex test users, live U2C and identity-broker services, a local fixture server |
|
|
60
|
+
| Browser | `yarn workspace @webex/webex-core test:browser` | `test/integration/spec` | Karma | A browser runner plus the integration dependencies |
|
|
61
|
+
| Lint | `yarn workspace @webex/webex-core test:style` | `src` | ESLint | None |
|
|
62
|
+
|
|
63
|
+
- Coverage or quality gate: none enforced for this package (`quality_gates.code_coverage.origin: none`).
|
|
64
|
+
- Enforcement source: `.sdd/manifest.json` `quality_gates`.
|
|
65
|
+
- Test environment or QA dependencies: the integration tiers need provisioned test users from the shared
|
|
66
|
+
test helpers; the unit tier needs nothing external.
|
|
67
|
+
- To run one unit file, pass a path relative to `test/unit/spec`, for example
|
|
68
|
+
`yarn workspace @webex/webex-core test:unit --targets credentials/token.js`.
|
|
69
|
+
- The aggregate `test` script chains lint, unit, integration and browser tiers, so it needs the
|
|
70
|
+
integration environment.
|
|
71
|
+
|
|
72
|
+
## Configuration and secrets
|
|
73
|
+
|
|
74
|
+
- Required configuration: none for unit tests. Many defaults in `src/config.js` and
|
|
75
|
+
`src/credentials-config.js` read environment variables at import time (for example `U2C_SERVICE_URL`,
|
|
76
|
+
`HYDRA_SERVICE_URL`, `WEBEX_CLIENT_ID`); see the root module specification.
|
|
77
|
+
- Secret source: client ids and secrets come from environment variables or host config; never commit them.
|
|
78
|
+
- Package or artifact access: the workspace resolves siblings through yarn workspaces; publishing uses
|
|
79
|
+
`yarn workspace @webex/webex-core deploy:npm`.
|
|
80
|
+
- Required neighboring packages: `@webex/common`, `@webex/common-timers`, `@webex/http-core` and
|
|
81
|
+
`@webex/storage-adapter-spec` (workspace dependencies).
|
|
82
|
+
- Never commit credentials or copy production secrets into a local config.
|
|
83
|
+
|
|
84
|
+
## First-run verification
|
|
85
|
+
|
|
86
|
+
1. Run `yarn install`.
|
|
87
|
+
2. Run `yarn workspace @webex/webex-core test:unit --targets lib/batcher.js`.
|
|
88
|
+
3. Run `yarn workspace @webex/webex-core test:style`.
|
|
89
|
+
|
|
90
|
+
Expected result: the targeted Jest file passes and ESLint reports no errors.
|
|
91
|
+
|
|
92
|
+
## Next steps
|
|
93
|
+
|
|
94
|
+
- [Repository architecture](architecture.md)
|
|
95
|
+
- [Specification registry](specs/README.md)
|
|
96
|
+
- [Documentation index](index.md)
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
okf_version: '0.1'
|
|
3
|
+
---
|
|
4
|
+
<!-- sdd-generated-metadata
|
|
5
|
+
doc_kind: standing-doc
|
|
6
|
+
generated_from: docs-index@0.3.0
|
|
7
|
+
generated_by: claude-code
|
|
8
|
+
approved_by: rsarika@cisco.com
|
|
9
|
+
updated_at: 2026-10-07T13:20:21Z
|
|
10
|
+
validation_status: pass-with-warnings
|
|
11
|
+
-->
|
|
12
|
+
|
|
13
|
+
# @webex/webex-core documentation
|
|
14
|
+
|
|
15
|
+
Doc map for developers and agents working on the core library of the Webex JS SDK: the plugin host,
|
|
16
|
+
request interceptor pipeline, credentials, service discovery and storage layer.
|
|
17
|
+
|
|
18
|
+
## Start here
|
|
19
|
+
|
|
20
|
+
- [Getting started](getting-started.md) — prerequisites, build, and the test router
|
|
21
|
+
- [Repository architecture](architecture.md) — package boundaries, flows, dependencies and the contract index
|
|
22
|
+
|
|
23
|
+
There is no service specification and no API specification: the package is a published library with no
|
|
24
|
+
deployable runtime and no HTTP surface of its own. Both omissions are recorded in `.sdd/manifest.json`
|
|
25
|
+
under `layout.artifact_decisions`.
|
|
26
|
+
|
|
27
|
+
## Decisions
|
|
28
|
+
|
|
29
|
+
- [adr/](adr/) — architectural decision records. None are registered yet; the design trade-offs that
|
|
30
|
+
shape the current code are recorded in each module specification's trade-off section.
|
|
31
|
+
|
|
32
|
+
## Specifications and contracts
|
|
33
|
+
|
|
34
|
+
- [architecture.md](architecture.md) — canonical package-wide architecture and the contract index
|
|
35
|
+
- [specs/README.md](specs/README.md) — manifest-backed module and contract registry
|
|
36
|
+
- [`src/docs/README.md`](../src/docs/README.md) — the root module: plugin host, public export surface, config
|
|
37
|
+
- [`src/interceptors/docs/README.md`](../src/interceptors/docs/README.md) — request/response interceptors
|
|
38
|
+
- [`src/lib/credentials/docs/README.md`](../src/lib/credentials/docs/README.md) — OAuth tokens and credentials
|
|
39
|
+
- [`src/lib/services/docs/README.md`](../src/lib/services/docs/README.md) — v1 service discovery
|
|
40
|
+
- [`src/lib/services-v2/docs/README.md`](../src/lib/services-v2/docs/README.md) — opt-in v2 service discovery
|
|
41
|
+
- [`src/lib/storage/docs/README.md`](../src/lib/storage/docs/README.md) — persistence layer
|
|
42
|
+
- [adr/](adr/) — concrete architectural decisions; the blank ADR template stays under `.sdd/`
|
|
43
|
+
|
|
44
|
+
The package's published contracts are npm package exports whose native source is the entry point
|
|
45
|
+
declared by `main` and `devMain` in [`package.json`](../package.json) and the barrel
|
|
46
|
+
[`src/index.js`](../src/index.js). The architecture page indexes them; the module specifications detail
|
|
47
|
+
them; neither copies declarations into Markdown.
|
|
48
|
+
|
|
49
|
+
## Related repository resources
|
|
50
|
+
|
|
51
|
+
- [`README.md`](../README.md) — the package's npm-facing readme (install and basic usage). Its storage
|
|
52
|
+
example is stale relative to the code; see the storage module specification.
|
|
53
|
+
- [`src/lib/services-v2/README.md`](../src/lib/services-v2/README.md) — a work-in-progress note kept as-is
|
|
54
|
+
- Contribution guidelines, changelog generation and the release pipeline are owned at the Webex JS SDK
|
|
55
|
+
workspace root
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: Specification registry
|
|
4
|
+
description: Canonical specification registry and change-routing guide.
|
|
5
|
+
tags: [specifications, registry]
|
|
6
|
+
---
|
|
7
|
+
<!-- sdd-generated-metadata
|
|
8
|
+
doc_kind: standing-doc
|
|
9
|
+
generated_from: spec-index@0.3.0
|
|
10
|
+
generated_by: claude-code
|
|
11
|
+
approved_by: rsarika@cisco.com
|
|
12
|
+
updated_at: 2026-10-07T13:20:21Z
|
|
13
|
+
validation_status: pass-with-warnings
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Specification registry
|
|
17
|
+
|
|
18
|
+
Use this page to find the canonical package architecture and every module specification plus native
|
|
19
|
+
contract. Keep technical facts in one owning document and use this page only for navigation, ownership,
|
|
20
|
+
status, and change/test routing.
|
|
21
|
+
|
|
22
|
+
Start with the [repository architecture](../architecture.md). There is no service specification because
|
|
23
|
+
the package is a library, not a deployable service.
|
|
24
|
+
|
|
25
|
+
## Document roles
|
|
26
|
+
|
|
27
|
+
| Document | Canonical ownership |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| [Repository architecture](../architecture.md) | Package boundaries, resource inventory, interactions, dependency topology, contract index and cross-cutting architecture |
|
|
30
|
+
| Module specifications | Stable behavior and design at each manifest-routed `<module-path>/docs/README.md` |
|
|
31
|
+
| [ADR](../adr/index.md) | A durable decision, its deciders, rationale, consequences and supersession lineage |
|
|
32
|
+
|
|
33
|
+
## Instantiated specification registry
|
|
34
|
+
|
|
35
|
+
| Resource | Role | Canonical path | Owner | Status | Last verified |
|
|
36
|
+
| --- | --- | --- | --- | --- | --- |
|
|
37
|
+
| Package | Architecture | `docs/architecture.md` | Cisco Webex for Developers | Active | 2026-10-07 |
|
|
38
|
+
| `src` | Module — plugin host and export surface | `src/docs/README.md` | Cisco Webex for Developers | Active | 2026-10-07 |
|
|
39
|
+
| `src/interceptors` | Module — request/response interceptors | `src/interceptors/docs/README.md` | Cisco Webex for Developers | Active | 2026-10-07 |
|
|
40
|
+
| `src/lib/credentials` | Module — OAuth credentials | `src/lib/credentials/docs/README.md` | Cisco Webex for Developers | Active | 2026-10-07 |
|
|
41
|
+
| `src/lib/services` | Module — v1 service discovery | `src/lib/services/docs/README.md` | Cisco Webex for Developers | Active | 2026-10-07 |
|
|
42
|
+
| `src/lib/services-v2` | Module — v2 service discovery | `src/lib/services-v2/docs/README.md` | Cisco Webex for Developers | Active | 2026-10-07 |
|
|
43
|
+
| `src/lib/storage` | Module — persistence layer | `src/lib/storage/docs/README.md` | Cisco Webex for Developers | Active | 2026-10-07 |
|
|
44
|
+
|
|
45
|
+
### Module registry
|
|
46
|
+
|
|
47
|
+
One row per module in `.sdd/manifest.json`, which stays authoritative; this table is its
|
|
48
|
+
human-readable mirror and the reconciliation surface for `scripts/check_spec_index.py`.
|
|
49
|
+
|
|
50
|
+
| Module | Responsibility | Manifest coverage state | Start here |
|
|
51
|
+
| --- | --- | --- | --- |
|
|
52
|
+
| `src/` | Plugin host: WebexCore construction, plugin registration, interceptor-chain assembly, config defaults, plugin base classes, Batcher, Page, WebexHttpError and the package export surface | Partial | `src/docs/README.md` |
|
|
53
|
+
| ↳ `src/interceptors/` | The sixteen request/response interceptors that implement auth replay, redirects, tracking ids, rate limits, catalog URL validation, timing and logging | Partial | `src/interceptors/docs/README.md` |
|
|
54
|
+
| ↳ `src/lib/credentials/` | OAuth supertoken and scoped user-token lifecycle: refresh, downscope, revoke, login/logout URLs, scope helpers and grant errors | Partial | `src/lib/credentials/docs/README.md` |
|
|
55
|
+
| ↳ `src/lib/services/` | v1 U2C service discovery, host selection and failover, readiness gating, and the service/hostmap/server-error interceptors | Partial | `src/lib/services/docs/README.md` |
|
|
56
|
+
| ↳ `src/lib/services-v2/` | Opt-in TypeScript v2 service discovery over the U2CV2 hostmap, not registered by default | Partial | `src/lib/services-v2/docs/README.md` |
|
|
57
|
+
| ↳ `src/lib/storage/` | persist/waitForValue decorators, bounded and unbounded store factories, MemoryStoreAdapter and storage errors | Partial | `src/lib/storage/docs/README.md` |
|
|
58
|
+
|
|
59
|
+
## Change and verification routing
|
|
60
|
+
|
|
61
|
+
| Change affects | Load and update | Verification route |
|
|
62
|
+
| --- | --- | --- |
|
|
63
|
+
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn workspace @webex/webex-core test:unit` and affected owner specs |
|
|
64
|
+
| Plugin registration, config defaults, request orchestration or the export barrel | `src/docs/README.md` | Unit tests under `test/unit/spec` plus a dependent-plugin review |
|
|
65
|
+
| An interceptor or the interceptor order | `src/interceptors/docs/README.md` (and `src/docs/README.md` for ordering) | `test/unit/spec/interceptors` and `test/unit/spec/webex-core.js` |
|
|
66
|
+
| Tokens, scopes, refresh or logout | `src/lib/credentials/docs/README.md` | `test/unit/spec/credentials` |
|
|
67
|
+
| Service catalog, host selection or readiness | `src/lib/services/docs/README.md` or `src/lib/services-v2/docs/README.md` | `test/unit/spec/services` or `test/unit/spec/services-v2` |
|
|
68
|
+
| Persistence decorators or store factories | `src/lib/storage/docs/README.md` | `test/unit/spec/storage` |
|
|
69
|
+
| A public API, event, package or file contract | The owning module section plus the native source listed in the contract index | Compatibility review across dependent workspace packages |
|
|
70
|
+
|
|
71
|
+
## Module and contract registration
|
|
72
|
+
|
|
73
|
+
Every module specification lives at the exact `modules[].canonical_spec` path recorded in
|
|
74
|
+
`.sdd/manifest.json`. The package's contracts are registered in `contract_catalog` and indexed in
|
|
75
|
+
[`docs/architecture.md`](../architecture.md#public-and-consumer-surfaces); each owning module links the
|
|
76
|
+
same native source. The package is an SDK, so no OpenAPI document applies.
|
package/package.json
CHANGED
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"@sinonjs/fake-timers": "^6.0.1",
|
|
34
34
|
"@webex/babel-config-legacy": "0.0.0",
|
|
35
35
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
36
|
-
"@webex/internal-plugin-device": "3.12.0-next.
|
|
36
|
+
"@webex/internal-plugin-device": "3.12.0-next.58",
|
|
37
37
|
"@webex/jest-config-legacy": "0.0.0",
|
|
38
38
|
"@webex/legacy-tools": "0.0.0",
|
|
39
|
-
"@webex/plugin-logger": "3.12.0-next.
|
|
39
|
+
"@webex/plugin-logger": "3.12.0-next.60",
|
|
40
40
|
"@webex/test-helper-chai": "3.12.0-next.9",
|
|
41
41
|
"@webex/test-helper-make-local-url": "3.12.0-next.9",
|
|
42
42
|
"@webex/test-helper-mocha": "3.12.0-next.9",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"test:style": "eslint ./src/**/*.*",
|
|
74
74
|
"test:unit": "webex-legacy-tools test --unit --runner jest"
|
|
75
75
|
},
|
|
76
|
-
"version": "3.12.0-next.
|
|
76
|
+
"version": "3.12.0-next.63"
|
|
77
77
|
}
|