@webex/internal-plugin-locus 3.13.0-next.4 → 3.13.0-next.6

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.
@@ -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-12T10:59:20Z
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.
@@ -0,0 +1,257 @@
1
+ ---
2
+ type: Architecture
3
+ title: '@webex/internal-plugin-locus 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-12T10:59:20Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # @webex/internal-plugin-locus architecture
17
+
18
+ Canonical architecture for this package. Plugin behavior lives in the
19
+ [Locus plugin specification](../src/docs/README.md). This page owns package boundaries, the plugin
20
+ registration, the 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 | The plugin defines no state. Callers hold the Locus working copy. | Client state model |
31
+ | `repo.components_interact` | N/A | One module. The import graph is shown under Interaction and execution flows. | Dependency and interaction topology |
32
+ | `repo.domain_data_across_components` | N/A | Locus DTOs are passed through to the caller, not owned | Object and data ownership |
33
+ | `repo.caches_data` | N/A | No cache. Memoized helpers in `compareSequence` live for one call. | Caching catalog |
34
+ | `repo.observability_convention` | N/A | `src/` has no logger, metric, or trace call; request logging belongs to webex-core | 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 | Inherits `WebexPlugin` and 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 | No `browser` field in `package.json` and no platform-specific code in `src/` | Platform matrix |
39
+ | `repo.published_package` | Applicable | `package.json` `name` is `@webex/internal-plugin-locus` 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 depends on sibling workspace plugins and on the Locus and Janus services | Cross-repository topology |
43
+ | `repo.security_arch_warranted` | Applicable | Requests go to URLs taken from server DTOs, and authorization is attached by webex-core | Security architecture |
44
+
45
+ ## Design overview
46
+
47
+ `@webex/internal-plugin-locus` is a published library with one module. Importing it imports the
48
+ Mercury plugin and registers `Locus` as the internal plugin `locus` (unless a plugin with that name is already
49
+ registered), so webex instances constructed after the import have `webex.internal.locus`.
50
+
51
+ The plugin has two halves. REST wrappers call the Locus service for call setup, participant actions,
52
+ media updates, DTMF, floor control, and reads, plus one Janus query for call history. Pure functions
53
+ compare Locus sequence objects and merge Locus deltas, so a caller can keep its own working copy of a
54
+ Locus in step with out-of-order events. The plugin holds no state of its own.
55
+
56
+ The package serves no routes and persists nothing. It does not receive Locus events: it exports
57
+ their names in `eventKeys` for callers that subscribe through Mercury.
58
+
59
+ ## Resource inventory and responsibilities
60
+
61
+ | Resource | Kind | Responsibility | Owner | Source | Detailed specification |
62
+ | -------- | ---- | -------------- | ----- | ------ | ---------------------- |
63
+ | Locus plugin | module | REST wrappers, sequence comparison, delta merge, event names | @webex/web-sdk | `src/` | `src/docs/README.md` |
64
+ | Published package | package | npm entry points and the registration side effect | @webex/web-sdk | `package.json` | `docs/architecture.md` |
65
+
66
+ ## Interaction and execution flows
67
+
68
+ ```mermaid
69
+ flowchart LR
70
+ importer[Package importer]
71
+ index[src_index_js]
72
+ mercury[internal_plugin_mercury]
73
+ core[webex_core_registerInternalPlugin]
74
+ locus[src_locus_js]
75
+ keys[src_event_keys_js]
76
+ caller[Caller code]
77
+ request[webex_request]
78
+ locusSvc[Locus service]
79
+ janus[Janus service]
80
+ importer --> index
81
+ index -->|side-effect import| mercury
82
+ index --> core
83
+ index --> locus
84
+ index --> keys
85
+ caller -->|REST methods| locus
86
+ caller -->|compare and merge| locus
87
+ locus --> request
88
+ request -->|HTTP| locusSvc
89
+ request -->|HTTP| janus
90
+ ```
91
+
92
+ | From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
93
+ | ---- | -- | ------------------------ | ------- | --------------------------------- |
94
+ | Importer | `src/index.js` | package import | Register the plugin | Without the import, `webex.internal.locus` is absent |
95
+ | `src/index.js` | internal-plugin-mercury | side-effect import | Register Mercury on the same webex instance; see Dependency topology | Load-time only |
96
+ | Caller | `webex.internal.locus` | method calls | REST operations and DTO reconciliation | See the Locus plugin spec failure modes |
97
+ | `src/locus.js` | `webex.request` | in-process promise | Send HTTP requests | Rejections propagate, except the Conflict recovery |
98
+ | `webex.request` | Locus and Janus services | HTTP | Call state and history | webex-core's default interceptor set converts error statuses to `WebexHttpError` subtypes, except the Locus and App API 404 redirect responses, which resolve when webex-core's redirect handling returns them unchanged instead of re-issuing; other interceptors can reject with their own errors. See the Locus plugin spec Dependencies and Caller-visible failure modes |
99
+
100
+ ## Dependency topology
101
+
102
+ | Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
103
+ | ---------- | ---- | ------- | ------- | ------------------------------------ |
104
+ | `@webex/webex-core` | Internal | `src` | Plugin base, registration, request, HTTP errors | Workspace version |
105
+ | `@webex/internal-plugin-mercury` | Internal | `src` | Side-effect import only | Workspace version |
106
+ | `@webex/internal-plugin-device` | Internal, undeclared | `src` | `deviceUrl` in request bodies | Reached through the Mercury import, not `package.json` |
107
+ | `lodash` | External | `src` | Clone, set difference, memoize | Range in `package.json` |
108
+ | `uuid` | External | `src` | DTMF correlation id | Range in `package.json` |
109
+
110
+ Ordering constraint: before a request that sends the device URL runs, the device plugin must be
111
+ on the instance (otherwise reading `url` throws) and the device must have a `url` (otherwise
112
+ `deviceUrl` is left out). No dependency cycle exists inside the package. The test helpers listed
113
+ under `dependencies` are not imported by `src/`.
114
+
115
+ ## Public and consumer surfaces
116
+
117
+ | Surface | Type | Owner | Consumers | Compatibility policy | Source |
118
+ | ------- | ---- | ----- | --------- | -------------------- | ------ |
119
+ | `locus-sdk` (published) | SDK | Locus plugin | Sibling package internal-plugin-lyra (integration spec) and any code reaching `webex.internal.locus` | Internal plugin; see Release and versioning | `package.json` |
120
+ | `locus-service-http` (required) | API | Locus service | Locus plugin | External; consumed, not served | Locus service |
121
+ | `janus-history-http` (required) | API | Janus service | Locus plugin | External; consumed, not served | Janus service |
122
+ | `webex-core-plugin-host` (required) | RPC | sibling package webex-core | Locus plugin | External | `@webex/webex-core` |
123
+ | `webex-device-registration` (required) | SDK | sibling package internal-plugin-device | Locus plugin | External; see Dependency topology | `@webex/internal-plugin-device` |
124
+ | `mercury-sdk` (required) | SDK | sibling package internal-plugin-mercury | Package barrel | Specified in its SDD module spec, file src/docs/README.md of that package | `@webex/internal-plugin-mercury` |
125
+ | `lodash`, `uuid` (required) | SDK | npm | Locus plugin | See Dependency topology | npm |
126
+
127
+ `locus-sdk` entry points: `main` points at the build output and `devMain` at `src/index.js`. No HTTP
128
+ surface is served, so `api-specs/openapi.yaml` is omitted.
129
+
130
+ ## Cross-cutting architecture
131
+
132
+ ### Security
133
+
134
+ - Trust boundaries and identity flow: see Security architecture.
135
+ - Sensitive surfaces and data classes: SDP offers, device URLs, and participant data in Locus DTOs;
136
+ controls and gaps are in Security architecture.
137
+ - Encryption and secret boundaries: transport encryption is whatever scheme the catalog or DTO URL
138
+ uses; token handling is described in Security architecture.
139
+
140
+ ### Observability and operations
141
+
142
+ - Logging and correlation: none in this package (see the `repo.observability_convention` row);
143
+ request logging and tracking ids come from the webex-core request pipeline. `correlationId`
144
+ values in bodies are supplied by callers, except the DTMF id generated here.
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
+ - Correctness: the sequence comparison must give the fixture result for every case in
152
+ `test/unit/lib`.
153
+ - Compatibility: the plugin name, exports, and constant values are relied on by importers.
154
+ - Footprint: the runtime dependencies listed under Dependency topology, with no native or
155
+ platform-specific code.
156
+
157
+ ## Shared and base libraries
158
+
159
+ | Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
160
+ | ------- | ------------------------ | --------- | ------------- | ------------------ |
161
+ | `WebexPlugin` from `@webex/webex-core` | `this.webex`, `request()` delegating to `webex.request`, and the plugin lifecycle | `src/locus.js` | workspace | Follow webex-core plugin conventions |
162
+ | `@webex/babel-config-legacy`, `@webex/eslint-config-legacy`, `@webex/jest-config-legacy` | Build, lint, and Jest config passthroughs | `babel.config.js`, `.eslintrc.js`, `jest.config.js` | workspace | Change upstream, not in the passthrough files |
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/internal-plugin-locus` | npm, through the `deploy:npm` script (manifest `commands.deploy`) | Workspace release tooling; README says the internal plugin does not strictly follow semver | 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/internal-plugin-locus build` | package | `src/` | build output through `build:src` | Build output is never edited by hand |
177
+ | `yarn workspace @webex/internal-plugin-locus build:src` | package | `src/` (`.js` and `.ts`) | build output with source maps | Markdown under `src/` is not processed |
178
+ | `yarn workspace @webex/internal-plugin-locus test:unit` | package | `test/unit/spec/` | Jest result | — |
179
+ | `yarn workspace @webex/internal-plugin-locus test:browser` | package | integration specs (none exist) | Nothing runs: no files are collected, so karma and the browser are not started | — |
180
+ | `yarn workspace @webex/internal-plugin-locus test:style` | package | files under `src/` | eslint result | Markdown is reported as ignored |
181
+ | `yarn workspace @webex/internal-plugin-locus deploy:npm` | package | build output, `package.json` | Publishes the package to the npm registry | Release pipeline only |
182
+
183
+ ## Cross-repository topology
184
+
185
+ | Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
186
+ | ----------------------------- | ------------ | ------------------------------ | ----- | --------------------- |
187
+ | Sibling package webex-core | Consumes | `webex-core-plugin-host` | @webex/web-client, @webex/web-sdk | Plugin host must exist before registration |
188
+ | Sibling package internal-plugin-mercury | Consumes | `mercury-sdk` | @webex/web-client, @webex/web-sdk | Imported before registration |
189
+ | Sibling package internal-plugin-device | Consumes | `webex-device-registration` | @webex/web-client, @webex/web-sdk | Read by the requests listed in the module spec invariant `INV-007` |
190
+ | Sibling package internal-plugin-lyra | Provides | `locus-sdk` | @webex/web-sdk (CODEOWNERS default rule) | None |
191
+ | Locus service | Coordinates | `locus-service-http` | External Webex service; owner not recorded in this repository | Request bodies and sequence semantics must match the service |
192
+ | Janus service | Coordinates | `janus-history-http` | External Webex service; owner not recorded in this repository | None |
193
+
194
+ These are sibling workspace packages and external services outside this package-scoped SDD root.
195
+
196
+ ## Security architecture
197
+
198
+ Threats addressed: sending the user's access token to a host taken from a server DTO, and requests
199
+ to hosts outside the service catalog (server-side request forgery).
200
+
201
+ ```mermaid
202
+ flowchart LR
203
+ dto[Locus DTO and share URLs] -->|uri| locus[Locus plugin]
204
+ locus -->|request options| pipeline[webex.request interceptor pipeline owned by webex-core]
205
+ pipeline -->|HTTP request, authorized by webex-core| svc[Locus and Janus services]
206
+ svc -->|redirect response| pipeline
207
+ ```
208
+
209
+ Controls and boundaries:
210
+
211
+ - This package never reads, stores, or sends a token itself. Request URLs come from the catalog
212
+ (service plus resource) or from DTO fields (`locus.url`, `locus.self.url`, `locus.syncUrl`,
213
+ `share.url`), which this package does not validate.
214
+ - Authorization, host validation, and redirect handling belong to the sibling package webex-core
215
+ request pipeline (files src/webex-core.js and src/config.js, and the interceptors under
216
+ src/interceptors/). With webex-core's default interceptor set:
217
+ - The auth interceptor adds the authorization header when its credentials check resolves the URL
218
+ to a catalog service, or to an allowed domain while `config.services.validateDomains` is on
219
+ (its default) (file src/interceptors/auth.js).
220
+ - `CatalogUrlInterceptor` rejects a URL that is not a catalog service, and is not an allowed
221
+ domain while `validateDomains` is on, when `config.services.validateCatalogUrls` is `true`;
222
+ that option defaults to `false` (files src/interceptors/catalog-url.js and src/config.js).
223
+ - Known gap, redirects: the redirect interceptor re-issues a request on a `cisco-location`
224
+ header, a Locus body with `errorCode` 2000002 and `location`, or an App API body with `code`
225
+ 404100 and `data.siteFullUrl`, reusing options that already carry the authorization header,
226
+ and the auth interceptor keeps an existing header. The token can therefore reach the redirect host. The header is cleared only for
227
+ `webex-appapi-service` `preJoin` requests, which this package never makes. An active
228
+ `CatalogUrlInterceptor` also checks the re-issued request (file src/interceptors/redirect.js).
229
+ - A host that supplies its own `config.interceptors` replaces the default set, so these behaviors
230
+ then depend on the interceptors it lists. The Locus plugin spec Dependencies and Caller-visible
231
+ failure modes record the effect on this package.
232
+
233
+ Known gaps owned by this package are recorded where the code lives: DTO-shape assumptions in the
234
+ Locus plugin spec Pitfalls. The workspace root `SECURITY.md` is the security policy; this package
235
+ adds none.
236
+
237
+ ## Domain language
238
+
239
+ | Term | Repository-specific meaning | Authoritative source |
240
+ | ---- | --------------------------- | -------------------- |
241
+ | Locus | The Webex service, and its DTO, that holds the state of a call or meeting | `src/locus.js` |
242
+ | Sequence | The `entries`, `rangeStart`, `rangeEnd` object that orders Locus versions | `src/locus.js` |
243
+ | Delta | A Locus DTO with `baseSequence`, applied with `merge` | `src/locus.js` |
244
+ | Working copy | The caller-held Locus that the caller replaces with the result of `merge` after `compare` | `test/unit/lib/SeqCmp.json` |
245
+ | Action | `USE_INCOMING`, `USE_CURRENT`, or `FETCH`, returned by `compare` | `src/locus.js` |
246
+ | Floor | The right to share an additional media stream, granted or released on a media share | `src/locus.js` |
247
+ | Janus | The call history service queried by `getCallHistory` | `src/locus.js` |
248
+
249
+ ## References and maintenance
250
+
251
+ - Decisions: [adr/](adr/), including [ADR 0001](adr/0001-retain-product-readme.md)
252
+ - Instantiated specifications and routing: [specs/README.md](specs/README.md)
253
+ - Module spec: `src/docs/README.md`
254
+ - Owner: `@webex/web-sdk` through the monorepo `.github/CODEOWNERS` default rule
255
+ - Manifest: `.sdd/manifest.json`
256
+ - Update this document in the same change that alters package boundaries, contracts, or
257
+ cross-cutting behavior.
@@ -0,0 +1,112 @@
1
+ ---
2
+ type: Getting Started
3
+ title: Getting started
4
+ description: Local setup, build, run, and test routing for @webex/internal-plugin-locus.
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-12T10:59:20Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # Getting started
17
+
18
+ Onboarding for **@webex/internal-plugin-locus**. Commands run from the webex-js-sdk workspace root.
19
+
20
+ ## Prerequisites
21
+
22
+ | Tool or access | Version or requirement |
23
+ | -------------- | ---------------------- |
24
+ | 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) |
25
+ | 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 |
26
+ | Browser for `test:browser` | Not needed for this package: with no integration specs, the legacy-tools karma runner collects no files and starts no browser |
27
+
28
+ The `package.json` `engines` value `>=18` is the floor for applications that install the package,
29
+ not the development runtime.
30
+
31
+ ## Install
32
+
33
+ The repository is already cloned when you are reading this file. Dependencies are resolved for the
34
+ whole workspace:
35
+
36
+ ```bash
37
+ yarn
38
+ ```
39
+
40
+ ## Build
41
+
42
+ ```bash
43
+ yarn workspace @webex/internal-plugin-locus build
44
+ ```
45
+
46
+ `scripts.build` runs `build:src`, which uses the `@webex/legacy-tools` builder to compile `.js` and
47
+ `.ts` files from `src/` into the build output directory with source maps. The manifest records
48
+ `build:src` as the compile role and `build` as the package role.
49
+
50
+ ## Run
51
+
52
+ N/A — library package with no start script. Import the package before constructing the Webex
53
+ instance; only instances constructed after the import get `webex.internal.locus`.
54
+
55
+ ## Tests
56
+
57
+ ```bash
58
+ yarn workspace @webex/internal-plugin-locus test:unit
59
+ ```
60
+
61
+ | Tier | Command | Test location | Framework | External dependencies |
62
+ | ---- | ------- | ------------- | --------- | --------------------- |
63
+ | Unit | `yarn workspace @webex/internal-plugin-locus test:unit` | `test/unit/spec`, fixtures in `test/unit/lib` | Jest, chai, `@webex/test-helper-mock-webex` | Built workspace packages that the spec imports |
64
+ | Browser | `yarn workspace @webex/internal-plugin-locus test:browser` | Integration specs; none exist in this package | karma | None here; the command runs nothing |
65
+ | Lint | `yarn workspace @webex/internal-plugin-locus test:style` | `src/` | eslint | None |
66
+
67
+ - The browser run is manifest `commands.browser-test` with role `other`, because the SDD manifest
68
+ `tests` schema allows only `unit`, `integration`, `e2e`, and `qa`.
69
+ - No integration tier exists: `package.json` does not define `test:integration`, and the package
70
+ has no `test/integration` directory, so the browser run has nothing to execute here.
71
+ - Do not use the `package.json` script `test` as a verification command; it chains the undefined
72
+ `test:integration`.
73
+ - Coverage or quality gate: N/A — no coverage threshold.
74
+ - Enforcement source: none. `jest.config.js` re-exports `@webex/jest-config-legacy`, which sets
75
+ `collectCoverage: false` and no threshold.
76
+ - Test environment or QA dependencies: none beyond the workspace. The unit spec imports
77
+ `@webex/test-helper-chai`, `@webex/test-helper-mock-webex`, and this package by name, and those
78
+ names resolve to each package's build output, so a fresh clone needs the workspace build described
79
+ in First-run verification.
80
+
81
+ ## Configuration and secrets
82
+
83
+ - Required configuration: none. `registerInternalPlugin` receives no config, and `src/` reads no
84
+ environment variable or feature toggle.
85
+ - Secret source: none in this package. The access token is attached by the webex-core request
86
+ pipeline at runtime.
87
+ - Package or artifact access: `yarn` needs network access to the configured npm registry (or a proxy), because registry packages such as `lodash`, `uuid`, and `eslint` are declared and no Yarn cache is committed.
88
+ - Required neighboring repositories or workspace layout: the webex-js-sdk workspace, because sibling
89
+ packages such as webex-core and internal-plugin-mercury are `workspace:*` dependencies.
90
+ - Platform, simulator, device, or SDK setup: N/A.
91
+ - Never commit credentials or copy production secrets into a local config.
92
+
93
+ ## First-run verification
94
+
95
+ 1. Precondition: a workspace that uses Node.js 22.14 (see Prerequisites) and has completed the
96
+ Dependencies and Prebuilding setup in the root `CONTRIBUTING.md`. Installing alone is not
97
+ enough: the `webex-legacy-tools` CLI that this package's scripts call is untracked build output
98
+ of the workspace legacy tools package, and the unit spec imports the built output of the
99
+ workspace helpers.
100
+ 2. Run `yarn workspace @webex/internal-plugin-locus build` and check that the build output contains
101
+ `index.js`.
102
+ 3. Run `yarn workspace @webex/internal-plugin-locus test:unit`.
103
+
104
+ Expected result: Jest reports the `plugin-locus` suite passing, 134 tests across the basic, sequence,
105
+ and delta sequence comparison groups.
106
+
107
+ ## Next steps
108
+
109
+ - [Package architecture](architecture.md)
110
+ - [Specification registry](specs/README.md)
111
+ - [Documentation index](index.md)
112
+ - [Locus plugin specification](../src/docs/README.md)
package/docs/index.md ADDED
@@ -0,0 +1,48 @@
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-12T10:59:20Z
10
+ validation_status: pass-with-warnings
11
+ -->
12
+
13
+ # @webex/internal-plugin-locus documentation
14
+
15
+ Doc map for developers and agents.
16
+
17
+ This package is the Webex JS SDK's client for the Locus call and meeting state service. It registers
18
+ `webex.internal.locus`, wraps the Locus REST operations, and provides the sequence comparison and
19
+ delta merge functions that keep a caller-held Locus copy current.
20
+
21
+ ## Start here
22
+
23
+ - [Getting started](getting-started.md)
24
+ - [Package architecture](architecture.md)
25
+ - [Locus plugin specification](../src/docs/README.md) — behavior of `src/`
26
+
27
+ ## Decisions
28
+
29
+ - [adr/](adr/) — architectural decision records
30
+
31
+ ## Specifications and contracts
32
+
33
+ - [architecture.md](architecture.md) — canonical package-wide architecture and contract index
34
+ - [specs/README.md](specs/README.md) — manifest-backed module and contract registry
35
+ - `src/docs/README.md` — the owning specification beside the module's code
36
+ - [adr/](adr/) — concrete architectural decisions
37
+
38
+ No deployable service exists in this package, so no service specification is generated. The
39
+ published contract is an npm/SDK surface whose authoritative source is `package.json` with
40
+ `src/index.js`. The Locus and Janus HTTP APIs are consumed, not served, so no OpenAPI document
41
+ applies.
42
+
43
+ ## Related repository resources
44
+
45
+ - `README.md` — the package's npm-facing usage page, retained separately from this generated
46
+ documentation set. See [ADR 0001](adr/0001-retain-product-readme.md).
47
+
48
+ No `ci/`, `operate/`, `diagrams/`, or runbook directories exist in this package.
@@ -0,0 +1,71 @@
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-12T10:59:20Z
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-09 |
38
+ | Locus plugin | Module | `src/docs/README.md` | @webex/web-sdk | Draft | 2026-10-09 |
39
+ | `locus-sdk` | Contract | `package.json` | @webex/web-sdk | Active | 2026-10-09 |
40
+
41
+ ### Module registry
42
+
43
+ | Module | Responsibility | Manifest coverage state | Start here |
44
+ | --- | --- | --- | --- |
45
+ | `src/` | Locus REST wrappers, sequence comparison, delta merge, and event names | Partial | `src/docs/README.md` |
46
+
47
+ Generator-side field measurement is complete. Field coverage measured 2026-10-09 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 134 unit cases cover only sequence comparison, and the untested paths are listed in the module spec's Verification section. Independent validation returned pass-with-warnings on 2026-11-12 with 0 Blocking. Coverage state stays `Partial` until REST and merge behavior is 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/internal-plugin-locus test:unit` and `yarn workspace @webex/internal-plugin-locus test:style` |
54
+ | A deployable service surface or operating posture | Not applicable — no deployable service exists in this package | Not applicable |
55
+ | Sequence comparison or delta merge | `src/docs/README.md` and the fixtures in `test/unit/lib` | `yarn workspace @webex/internal-plugin-locus test:unit` |
56
+ | A REST wrapper, request body, or Conflict handling | `src/docs/README.md` | `yarn workspace @webex/internal-plugin-locus test:unit`, after adding the missing unit case |
57
+ | A public export, the plugin name, or `eventKeys` | `src/docs/README.md` and `docs/architecture.md`; check internal-plugin-lyra | `yarn workspace @webex/internal-plugin-locus test:unit` |
58
+
59
+ Run `yarn workspace @webex/internal-plugin-locus build` before `test:unit` after any `src/` change; the unit
60
+ spec imports this package by name, which resolves to the build output.
61
+
62
+ ## Module and contract registration
63
+
64
+ Modules, in manifest tree order: `src` with canonical spec `src/docs/README.md`.
65
+
66
+ `locus-sdk` is published; its ecosystem-native artifact is `package.json`, owned by `src`. No
67
+ OpenAPI document applies, which is why `api-specs/openapi.yaml` is omitted.
68
+
69
+ `locus-service-http`, `janus-history-http`, `webex-core-plugin-host`, `webex-device-registration`,
70
+ `mercury-sdk`, `lodash`, and `uuid` are external required contracts. They are not implemented in
71
+ this package.
package/package.json CHANGED
@@ -19,10 +19,10 @@
19
19
  ]
20
20
  },
21
21
  "dependencies": {
22
- "@webex/internal-plugin-mercury": "3.13.0-next.4",
23
- "@webex/test-helper-chai": "3.13.0-next.1",
24
- "@webex/test-helper-mock-webex": "3.13.0-next.1",
25
- "@webex/webex-core": "3.13.0-next.4",
22
+ "@webex/internal-plugin-mercury": "3.13.0-next.6",
23
+ "@webex/test-helper-chai": "3.13.0-next.2",
24
+ "@webex/test-helper-mock-webex": "3.13.0-next.2",
25
+ "@webex/webex-core": "3.13.0-next.6",
26
26
  "lodash": "^4.17.21",
27
27
  "uuid": "^3.3.2"
28
28
  },
@@ -41,12 +41,12 @@
41
41
  "@webex/eslint-config-legacy": "0.0.0",
42
42
  "@webex/jest-config-legacy": "0.0.0",
43
43
  "@webex/legacy-tools": "0.0.0",
44
- "@webex/test-helper-chai": "3.13.0-next.1",
45
- "@webex/test-helper-mocha": "3.13.0-next.1",
46
- "@webex/test-helper-mock-webex": "3.13.0-next.1",
47
- "@webex/test-helper-test-users": "3.13.0-next.1",
44
+ "@webex/test-helper-chai": "3.13.0-next.2",
45
+ "@webex/test-helper-mocha": "3.13.0-next.2",
46
+ "@webex/test-helper-mock-webex": "3.13.0-next.2",
47
+ "@webex/test-helper-test-users": "3.13.0-next.2",
48
48
  "eslint": "^8.24.0",
49
49
  "prettier": "^2.7.1"
50
50
  },
51
- "version": "3.13.0-next.4"
51
+ "version": "3.13.0-next.6"
52
52
  }