@webex/plugin-people 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.
- package/.repo-context.json +473 -0
- package/.sdd/manifest.json +391 -0
- package/AGENTS.md +207 -0
- package/dist/people.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +99 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +238 -0
- package/docs/getting-started.md +121 -0
- package/docs/index.md +43 -0
- package/docs/specs/README.md +68 -0
- package/package.json +8 -8
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +366 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ADR
|
|
3
|
+
title: ADR-0001 - Retain the product README
|
|
4
|
+
description: SDD onboarding keeps README.md as product documentation and routes it only as context.
|
|
5
|
+
tags: [adr]
|
|
6
|
+
timestamp: 2026-11-12T16:08: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-code
|
|
13
|
+
approved_by: rarajes2@cisco.com
|
|
14
|
+
updated_at: 2026-11-12T16:20:06Z
|
|
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-11-12 |
|
|
24
|
+
| Deciders | rarajes2@cisco.com (bootstrap questionnaire) |
|
|
25
|
+
| Supersedes | N/A |
|
|
26
|
+
| Superseded by | N/A |
|
|
27
|
+
|
|
28
|
+
## Context
|
|
29
|
+
|
|
30
|
+
Onboarding found one existing document, `README.md`. It is the npm page: a one-line description
|
|
31
|
+
("People plugin for the Cisco Webex JS SDK."), install commands, a pointer to the developer portal, and
|
|
32
|
+
a Usage block. No other intent, design, or AI-authored spec exists in this package.
|
|
33
|
+
|
|
34
|
+
The README is accurate where it speaks, but it covers one call and repeats itself:
|
|
35
|
+
|
|
36
|
+
| README content | Code |
|
|
37
|
+
| -------------- | ---- |
|
|
38
|
+
| The Install and Usage sections each appear twice | — |
|
|
39
|
+
| Usage shows `webex.people.get(id)` resolving a person | Matches `get` in `src/people.js` |
|
|
40
|
+
| Nothing about `get('me')`, `list`, or the result shapes | `get('me')` reads `people/me`; `list` resolves an array for an array of ids and a `Page` for a query object (`src/people.js`) |
|
|
41
|
+
| Nothing about batching, id normalization, or the config | Lookups by id are batched into one request per flush, and uuids are turned into hydra ids locally (`src/people-batcher.js`, `src/people.js`, `src/config.js`) |
|
|
42
|
+
|
|
43
|
+
## Decision
|
|
44
|
+
|
|
45
|
+
Keep `README.md` unchanged. Do not migrate it into the module specification. Record
|
|
46
|
+
`spec_source_policy.mode` as `keep-separate` with `migrated_source_disposition` `retain`, and route
|
|
47
|
+
`README.md` in `spec_sources` as `reference-only` and `context-only`.
|
|
48
|
+
|
|
49
|
+
The canonical behavior is `src/` plus `test/`. The module specification follows code.
|
|
50
|
+
|
|
51
|
+
## Why
|
|
52
|
+
|
|
53
|
+
The README is the npm-facing page. Filling it in is a product-doc change, not a requirement of making
|
|
54
|
+
the package SDD-ready, and the other onboarded packages in this workspace kept their READMEs the same
|
|
55
|
+
way. Its one behavioral claim, the `get(id)` example, is already a requirement of the module
|
|
56
|
+
specification, so nothing is lost by not migrating it.
|
|
57
|
+
|
|
58
|
+
## Alternatives considered
|
|
59
|
+
|
|
60
|
+
| Alternative | Why it was not selected |
|
|
61
|
+
| ----------- | ----------------------- |
|
|
62
|
+
| Migrate the README into `src/docs/README.md` and delete it | Its only behavior is already specified; deletion was not requested |
|
|
63
|
+
| Reconcile the README with the module specification in place | Reconciling would only carry one example; the developer chose `keep-separate` |
|
|
64
|
+
| Rewrite the README during onboarding | Onboarding writes the SDD tree only and does not edit `README.md` |
|
|
65
|
+
|
|
66
|
+
## Consequences
|
|
67
|
+
|
|
68
|
+
**Positive:**
|
|
69
|
+
|
|
70
|
+
- The npm page stays stable for consumers.
|
|
71
|
+
- The module specification is the single behavioral reference.
|
|
72
|
+
|
|
73
|
+
**Negative / tradeoffs:**
|
|
74
|
+
|
|
75
|
+
- Agents must not treat `README.md` as complete; it shows only `get(id)`.
|
|
76
|
+
- The repeated Install and Usage sections remain until a maintainer makes a separate product-doc change.
|
|
77
|
+
|
|
78
|
+
## Constraint on future changes
|
|
79
|
+
|
|
80
|
+
Do not delete `README.md` as part of spec maintenance. If its usage text changes, keep the module
|
|
81
|
+
specification aligned with code rather than with the README.
|
|
82
|
+
|
|
83
|
+
## Follow-up
|
|
84
|
+
|
|
85
|
+
- [ ] A maintainer may remove the repeated sections and add `get('me')` and `list` examples in a
|
|
86
|
+
separate product-doc change.
|
|
87
|
+
|
|
88
|
+
## Revisit when
|
|
89
|
+
|
|
90
|
+
- A maintainer rewrites the README to document `list`, `get('me')`, or batching.
|
|
91
|
+
|
|
92
|
+
## References
|
|
93
|
+
|
|
94
|
+
- `README.md`
|
|
95
|
+
- `src/index.js`
|
|
96
|
+
- `src/config.js`
|
|
97
|
+
- `src/people.js`
|
|
98
|
+
- `src/people-batcher.js`
|
|
99
|
+
- `.sdd/manifest.json` `spec_source_policy`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: standing-doc
|
|
3
|
+
generated_from: adr-index@0.3.0
|
|
4
|
+
generated_by: claude-code
|
|
5
|
+
approved_by: rarajes2@cisco.com
|
|
6
|
+
updated_at: 2026-11-12T16:20:06Z
|
|
7
|
+
validation_status: pass-with-warnings
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# Architectural decision records
|
|
11
|
+
|
|
12
|
+
Numbered, append-only records of structural decisions affecting this package and its documentation.
|
|
13
|
+
Add a concrete ADR (for example, `0042-cache-policy.md`) when a decision is non-obvious, hard to
|
|
14
|
+
reverse, or worth explaining to a future contributor. Do not edit an accepted decision in place when
|
|
15
|
+
its outcome changes; supersede it with a new ADR and link both records.
|
|
16
|
+
|
|
17
|
+
## Index
|
|
18
|
+
|
|
19
|
+
- [ADR-0001 - Retain the product README](0001-retain-product-readme.md) — accepted 2026-11-12
|
|
20
|
+
|
|
21
|
+
Add new entries as ADRs are accepted. Keep this list in numeric order.
|
|
22
|
+
|
|
23
|
+
Each ADR should state its context, decision, alternatives, consequences, and the condition that would
|
|
24
|
+
cause the team to revisit it. Record the deciders, any superseded decision, and the constraint future
|
|
25
|
+
changes must preserve.
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Architecture
|
|
3
|
+
title: '@webex/plugin-people 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-code
|
|
11
|
+
approved_by: rarajes2@cisco.com
|
|
12
|
+
updated_at: 2026-11-12T16:20:06Z
|
|
13
|
+
validation_status: pass-with-warnings
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# @webex/plugin-people architecture
|
|
17
|
+
|
|
18
|
+
Canonical architecture for this package. Flow behavior lives in the
|
|
19
|
+
[People 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/people.js` | Repository data and schema |
|
|
30
|
+
| `repo.holds_client_state` | N/A | `src/people.js` keeps no cache or session property; pending lookups belong to the webex-core Batcher | Client state model |
|
|
31
|
+
| `repo.components_interact` | Applicable | `src/people.js` mounts the batcher child, and `src/people-batcher.js` calls back into the plugin for id inference | Dependency and interaction topology |
|
|
32
|
+
| `repo.domain_data_across_components` | Applicable | Person records pass from the Webex REST API through `src/people-batcher.js` to callers in other packages | Object and data ownership |
|
|
33
|
+
| `repo.caches_data` | N/A | Nothing is kept after a call settles; `src/people.js` uses oneFlight without caching | Caching catalog |
|
|
34
|
+
| `repo.observability_convention` | N/A | No log line, metric, or trace in `src/people.js` or `src/people-batcher.js` | Observability patterns |
|
|
35
|
+
| `repo.deploys_to_infra` | N/A | Library published to npm (`package.json`). No service runtime | Runtime and infrastructure |
|
|
36
|
+
| `repo.shared_base_libs` | Applicable | Extends WebexPlugin and Batcher and uses the legacy build, lint, and test stack (`babel.config.js`, `jest.config.js`, `.eslintrc.js`) | 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 | `src/people.js` has no platform branch; `process` declares {browser: true} and is not imported | Platform matrix |
|
|
39
|
+
| `repo.published_package` | Applicable | `package.json` name is @webex/plugin-people and deploy:npm publishes it | Release and versioning |
|
|
40
|
+
| `repo.embedded_in_host` | N/A | No host theme or embed API in `src/people.js` | Host integration and theming |
|
|
41
|
+
| `repo.exposes_commands_or_artifacts` | Applicable | build:src in `package.json` writes dist | Commands and generated artifacts |
|
|
42
|
+
| `repo.cross_repo_deps_material` | Applicable | Behavior depends on the Webex REST API people resource (`src/people.js`, `src/people-batcher.js`) | Cross-repository topology |
|
|
43
|
+
| `repo.security_arch_warranted` | Applicable | Person ids, emails, and display names go into request query strings, and person records hold personal data (`src/people.js`) | Security architecture |
|
|
44
|
+
|
|
45
|
+
## Design overview
|
|
46
|
+
|
|
47
|
+
`@webex/plugin-people` is a published JavaScript library with one module. Importing it registers
|
|
48
|
+
`People` as the public plugin `people`, reached as `webex.people`. The `webex` and `webex-node` bundles
|
|
49
|
+
and `@webex/recipe-private-web-client` import it to register it, and three workspace packages call it:
|
|
50
|
+
`@webex/common` for the current user, and `@webex/plugin-meetings` and `@webex/calling` for filtered
|
|
51
|
+
lists.
|
|
52
|
+
|
|
53
|
+
A person is a Webex user record served by the `people` resource of the Webex REST API, which the SDK
|
|
54
|
+
reaches as catalog service `hydra`. The plugin answers "person for this id" through a batcher that sends
|
|
55
|
+
one request for every id asked in a short window, "the current user" through a direct request shared by
|
|
56
|
+
concurrent callers, and "persons matching this filter" through a paged query. Ids are normalized
|
|
57
|
+
locally: a uuid is turned into the base64url hydra id with no request.
|
|
58
|
+
|
|
59
|
+
The package serves no routes, caches nothing, and persists nothing.
|
|
60
|
+
|
|
61
|
+
## Resource inventory and responsibilities
|
|
62
|
+
|
|
63
|
+
| Resource | Kind | Responsibility | Owner | Source | Detailed specification |
|
|
64
|
+
| -------- | ---- | -------------- | ----- | ------ | ---------------------- |
|
|
65
|
+
| People plugin | package (one module) | Registration; person lookup by id with batching; current user; filtered lists | @webex/web-client, @webex/web-sdk | src | [`src/docs/README.md`](../src/docs/README.md) |
|
|
66
|
+
|
|
67
|
+
## Interaction and execution flows
|
|
68
|
+
|
|
69
|
+
Representative end-to-end flow: an application renders several persons by id while an SDK package
|
|
70
|
+
fetches the current user.
|
|
71
|
+
|
|
72
|
+
```mermaid
|
|
73
|
+
flowchart LR
|
|
74
|
+
App[application] -->|get id, list ids| Plugin[webex.people]
|
|
75
|
+
Common[common event envelope] -->|get me| Plugin
|
|
76
|
+
Meet[plugin-meetings, calling] -->|list query| Plugin
|
|
77
|
+
Plugin -->|request id| Batcher[batcher]
|
|
78
|
+
Batcher -->|inferPersonIdFromUuid| Plugin
|
|
79
|
+
Batcher -->|GET people/?id=..., one per flush| Hydra[Webex REST API people]
|
|
80
|
+
Plugin -->|GET people/me, GET people?query| Hydra
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
| From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
|
|
84
|
+
| ---- | -- | ------------------------ | ------- | --------------------------------- |
|
|
85
|
+
| Application or SDK package | `webex.people` | In-process calls | Person records | Rejections propagate |
|
|
86
|
+
| `People` | `PersonUUIDRequestBatcher` | `children` map; `batcher.request` | Batched lookup by id | See the module specification's failure modes |
|
|
87
|
+
| `PersonUUIDRequestBatcher` | `People` | Call through `webex.people` | Id normalization | Requires the plugin to be mounted as `people` |
|
|
88
|
+
| `People`, `PersonUUIDRequestBatcher` | Webex REST API | HTTPS through `webex.request` | Lookup by ids, current user, filtered list | No retry here |
|
|
89
|
+
|
|
90
|
+
## Dependency topology
|
|
91
|
+
|
|
92
|
+
| Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
|
|
93
|
+
| ---------- | ---- | ------- | ------- | ------------------------------------ |
|
|
94
|
+
| `@webex/webex-core` | Internal | `src/index.js`, `src/people.js`, `src/people-batcher.js` | Registration, plugin base, `Batcher`, `Page`, `webex.request` | `workspace:*` in `package.json` |
|
|
95
|
+
| `@webex/common` | Internal | `src/people.js` | `base64`, `oneFlight` | `workspace:*` |
|
|
96
|
+
| `@webex/internal-plugin-mercury` | Internal | No file under `src/`; `test/integration/spec/people.js` only | Registered by the integration spec | `workspace:*`; declared in `dependencies`, not `devDependencies` |
|
|
97
|
+
| Webex REST API people resource | External service | `src/people.js`, `src/people-batcher.js` | Person records | Resolved through the service catalog as `hydra` |
|
|
98
|
+
|
|
99
|
+
No import cycle exists: neither `@webex/webex-core` nor `@webex/common` imports this package.
|
|
100
|
+
`@webex/common` calls `webex.people.get('me')` at run time without importing the package.
|
|
101
|
+
|
|
102
|
+
## Public and consumer surfaces
|
|
103
|
+
|
|
104
|
+
| Surface | Type | Owner | Consumers | Compatibility policy | Source |
|
|
105
|
+
| ------- | ---- | ----- | --------- | -------------------- | ------ |
|
|
106
|
+
| `people-public-sdk` — package @webex/plugin-people, `webex.people` with `get`, `list`, and the config | SDK, published to npm, public | People plugin | `webex`, `webex-node`, `@webex/recipe-private-web-client` (registration); `@webex/common`, `@webex/plugin-meetings`, `@webex/calling` (calls); applications | No versioning or deprecation rule is declared in the package | `package.json`, `src/index.js`, `src/people.js`, `src/config.js` |
|
|
107
|
+
|
|
108
|
+
The lookup requests are a protocol this package speaks with the Webex REST API, described under
|
|
109
|
+
*Protocol and wire format* in the
|
|
110
|
+
[module specification](../src/docs/README.md#protocol-and-wire-format). The other contracts this
|
|
111
|
+
package requires are registered in `.sdd/manifest.json` `contract_catalog`.
|
|
112
|
+
|
|
113
|
+
## Cross-cutting architecture
|
|
114
|
+
|
|
115
|
+
### Security
|
|
116
|
+
|
|
117
|
+
- Trust boundaries and identity flow: see [Security architecture](#security-architecture).
|
|
118
|
+
- Sensitive surfaces and data classes: person ids, emails, display names, and the person records
|
|
119
|
+
returned.
|
|
120
|
+
- Encryption and secret boundaries: see [Security architecture](#security-architecture).
|
|
121
|
+
|
|
122
|
+
### Observability and operations
|
|
123
|
+
|
|
124
|
+
- Logging and correlation: the package logs nothing. On a failed batch the webex-core `Batcher` logs one
|
|
125
|
+
error line with the request error. Request tracking comes from the webex-core interceptors.
|
|
126
|
+
- Metrics, traces, and audit signals: none.
|
|
127
|
+
- Ownership and operational entry points: `.github/CODEOWNERS` at the workspace root assigns
|
|
128
|
+
`packages/@webex/plugin-people` to `@webex/web-client` and `@webex/web-sdk`. No dashboards or
|
|
129
|
+
runbooks are recorded in this package.
|
|
130
|
+
|
|
131
|
+
### Quality attributes
|
|
132
|
+
|
|
133
|
+
- Compatibility: callers rely on the registered name `people`, `get('me')`, the person object fields,
|
|
134
|
+
and `list(query).items`.
|
|
135
|
+
- Efficiency: lookups by id from all callers in a flush window become one request of up to 10 ids
|
|
136
|
+
(`INV-001` in the module specification).
|
|
137
|
+
- Test confidence: 5 unit cases cover the `get` guard, the fingerprint, one request, and response
|
|
138
|
+
dispatch; registration, `get('me')`, `list`, batching, and the HTTP error path have no unit case, and
|
|
139
|
+
the integration spec is not run by any script. No coverage threshold is enforced.
|
|
140
|
+
|
|
141
|
+
## Dependency and interaction topology
|
|
142
|
+
|
|
143
|
+
```mermaid
|
|
144
|
+
flowchart LR
|
|
145
|
+
Index[src/index.js] -->|registerPlugin people| Core[webex-core]
|
|
146
|
+
Index --> Config[src/config.js]
|
|
147
|
+
Index --> People[src/people.js]
|
|
148
|
+
People -->|children.batcher| Batcher[src/people-batcher.js]
|
|
149
|
+
People -->|base64, oneFlight| Common[common]
|
|
150
|
+
People -->|Page, request| Core
|
|
151
|
+
Batcher -->|extends Batcher, request| Core
|
|
152
|
+
Batcher -->|webex.people.inferPersonIdFromUuid| People
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
| From | To | Kind | Purpose | Ordering or failure boundary |
|
|
156
|
+
| ---- | -- | ---- | ------- | ---------------------------- |
|
|
157
|
+
| `src/index.js` | webex-core | Call at import | Register `people` | First registration wins |
|
|
158
|
+
| `src/people.js` | `src/people-batcher.js` | `children` map | Mount `batcher` | Created with each `People` instance |
|
|
159
|
+
| `src/people-batcher.js` | `src/people.js` | Call through `webex.people` | Fingerprint ids | Fails if the plugin is mounted under another name |
|
|
160
|
+
| `src/people.js` | common | Import | `base64`, `oneFlight` | Decode errors are caught |
|
|
161
|
+
|
|
162
|
+
## Object and data ownership
|
|
163
|
+
|
|
164
|
+
| Object or state | System of record | May write | May read | Movement or lifecycle |
|
|
165
|
+
| --------------- | ---------------- | --------- | -------- | --------------------- |
|
|
166
|
+
| Person record (`id`, `emails`, `displayName`, `created`, and more) | Webex REST API | Not this package | Any caller, through `get` and `list` | Fetched per call; never kept here |
|
|
167
|
+
| Hydra person id | Webex REST API; computed locally from a uuid by `inferPersonIdFromUuid` | Not this package | The batcher and callers | Derived per call |
|
|
168
|
+
| Pending lookups | webex-core `Batcher` | `batcher.request` | `handleHttpSuccess` | Dropped when each lookup settles |
|
|
169
|
+
|
|
170
|
+
## Shared and base libraries
|
|
171
|
+
|
|
172
|
+
| Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
|
|
173
|
+
| ------- | ------------------------ | --------- | ------------- | ------------------ |
|
|
174
|
+
| `@webex/webex-core` `WebexPlugin` | `webex`, `children`, `config`, `logger`, `request` | `People` | `workspace:*` | Keep the registered name `people` and the namespace `People` |
|
|
175
|
+
| `@webex/webex-core` `Batcher` | Fingerprint de-duplication, capped debounce, deferred bookkeeping, failure fan-out | `PersonUUIDRequestBatcher` | `workspace:*` | The `people` config must keep the three batcher timing keys |
|
|
176
|
+
| `@webex/babel-config-legacy`, `@webex/eslint-config-legacy`, `@webex/jest-config-legacy`, `@webex/legacy-tools` | Build, lint, and test stack through one-line config files | Package tooling | `workspace:*` | Do not fork the config locally |
|
|
177
|
+
|
|
178
|
+
## Release and versioning
|
|
179
|
+
|
|
180
|
+
| Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
|
|
181
|
+
| -------- | -------------- | --------------- | ------------------ | --------------------------------- |
|
|
182
|
+
| @webex/plugin-people | npm through `deploy:npm` | None declared in the package | None declared | None declared in the package; the workspace owns changelog generation |
|
|
183
|
+
|
|
184
|
+
## Commands and generated artifacts
|
|
185
|
+
|
|
186
|
+
| Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
|
|
187
|
+
| ------------------- | ----- | ------ | --------------------- | ---------------------- |
|
|
188
|
+
| `yarn workspace @webex/plugin-people build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
|
|
189
|
+
| `yarn workspace @webex/plugin-people build` | Package scripts | `src` | Runs `build:src` | Same output |
|
|
190
|
+
| `yarn workspace @webex/plugin-people test:unit` | Package scripts | `test/unit/spec`, `dist/` | Jest run | Run `build:src` first |
|
|
191
|
+
| `yarn workspace @webex/plugin-people test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
|
|
192
|
+
|
|
193
|
+
## Cross-repository topology
|
|
194
|
+
|
|
195
|
+
| Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
|
|
196
|
+
| ----------------------------- | ------------- | ------------------------------ | ----- | --------------------- |
|
|
197
|
+
| `@webex/webex-core` (workspace sibling; module spec consulted) | Consumes | `registerPlugin`, `WebexPlugin`, `Batcher`, `Page`, `request` | @webex/web-sdk | Registered before the first instance |
|
|
198
|
+
| `@webex/common` (workspace sibling; module spec consulted) | Consumes | `base64`, `oneFlight` | @webex/web-sdk | None |
|
|
199
|
+
| `webex`, `webex-node`, `@webex/recipe-private-web-client` (workspace siblings) | Consumed by | The plugin registration | @webex/web-sdk | None |
|
|
200
|
+
| `@webex/common`, `@webex/plugin-meetings`, `@webex/calling` (workspace siblings) | Consumed by | `get('me')`; `list(query).items` | @webex/web-sdk and the calling and meetings owners | `people` registered on the instance |
|
|
201
|
+
| Webex REST API people resource | Consumes | Lookup by ids, current user, filtered list | Not recorded in this repository | None |
|
|
202
|
+
|
|
203
|
+
## Security architecture
|
|
204
|
+
|
|
205
|
+
```mermaid
|
|
206
|
+
flowchart LR
|
|
207
|
+
Caller[caller] -->|ids, email, displayName| Plugin[webex.people]
|
|
208
|
+
Plugin -->|ids and filters in query string, SDK token| Hydra[Webex REST API]
|
|
209
|
+
Hydra -->|person records| Plugin
|
|
210
|
+
Plugin -->|person records| Caller
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
- This package holds no credential and no key. Every request carries the SDK authorization added by
|
|
214
|
+
webex-core.
|
|
215
|
+
- Person ids, emails, and display names travel in query strings, so they appear in request URLs. The
|
|
216
|
+
package itself logs none of them; the one log line on its failure path is described under
|
|
217
|
+
[Observability and operations](#observability-and-operations).
|
|
218
|
+
- What a caller may see is decided by the service for the authorized user; the package passes records
|
|
219
|
+
through unchanged and keeps no copy.
|
|
220
|
+
|
|
221
|
+
## Domain language
|
|
222
|
+
|
|
223
|
+
| Term | Repository-specific meaning | Authoritative source |
|
|
224
|
+
| ---- | --------------------------- | -------------------- |
|
|
225
|
+
| Hydra | The Webex REST API, reached as catalog service `hydra` | `src/people.js` |
|
|
226
|
+
| Hydra person id | base64url of `ciscospark://us/PEOPLE/<uuid>`; the `id` of a person record | `src/people.js` |
|
|
227
|
+
| `me` | The current user, fetched from `people/me` instead of by id | `src/people.js` |
|
|
228
|
+
| Flush | One batcher send of every id queued since the last one, up to `batcherMaxCalls` | `src/people-batcher.js` |
|
|
229
|
+
| `showAllTypes` | Config flag sent with every batched lookup so Hydra returns non-person types too | `src/config.js` |
|
|
230
|
+
| `notFoundIds` | Response list of requested ids Hydra did not find | `src/people-batcher.js` |
|
|
231
|
+
|
|
232
|
+
## References and maintenance
|
|
233
|
+
|
|
234
|
+
- Decisions: [adr/](adr/index.md)
|
|
235
|
+
- Instantiated specifications and routing: [specs/README.md](specs/README.md)
|
|
236
|
+
- Repository rules and patterns: [package agent instructions](../AGENTS.md)
|
|
237
|
+
- Update this document in the same change that alters package boundaries, resource ownership,
|
|
238
|
+
cross-resource interaction, or cross-cutting architecture.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Getting Started
|
|
3
|
+
title: Getting started
|
|
4
|
+
description: Local setup, build, run, and test routing for @webex/plugin-people.
|
|
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: rarajes2@cisco.com
|
|
12
|
+
updated_at: 2026-11-12T16:20:06Z
|
|
13
|
+
validation_status: pass-with-warnings
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Getting started
|
|
17
|
+
|
|
18
|
+
Onboarding for **@webex/plugin-people**, a package inside the `webex-js-sdk` Yarn workspace.
|
|
19
|
+
Run `yarn` and the package scripts from the workspace root, as `yarn workspace @webex/plugin-people <script>`.
|
|
20
|
+
|
|
21
|
+
## Prerequisites
|
|
22
|
+
|
|
23
|
+
| Tool or access | Version or requirement |
|
|
24
|
+
| -------------- | ---------------------- |
|
|
25
|
+
| Node.js | Use 22.14: the workspace root `AGENTS.md` requires it and the workspace `.nvmrc` selects `lts/jod` (Node 22). This package's `engines` accepts `>=18`. The workspace root `package.json` `engines.node` reads `18.x`, which conflicts with the other pins; the build, unit tests, and lint pass on 22.14 |
|
|
26
|
+
| Yarn | `yarn@3.4.1` (`packageManager` in the workspace root `package.json`) |
|
|
27
|
+
| Registry or account access | N/A for building, unit tests, and linting |
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
yarn
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The workspace `deploy.yml` workflow installs with the same command.
|
|
36
|
+
|
|
37
|
+
Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the workspace root; see [Prebuilding](../../../../CONTRIBUTING.md#prebuilding).
|
|
38
|
+
|
|
39
|
+
## Build
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
yarn workspace @webex/plugin-people build:src
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`build:src` writes JavaScript and source maps for the four source files to `dist/` through
|
|
46
|
+
`webex-legacy-tools`. `dist/` is ignored by Git. The `build` script runs `build:src`; the package
|
|
47
|
+
emits no type declarations.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
yarn workspace @webex/plugin-people build
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Run
|
|
54
|
+
|
|
55
|
+
N/A — this is a library with no start script. Importing `@webex/plugin-people` registers
|
|
56
|
+
`webex.people`.
|
|
57
|
+
|
|
58
|
+
## Tests
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
yarn workspace @webex/plugin-people test:unit
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
yarn workspace @webex/plugin-people test:style
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
| Tier | Command | Test location | Framework | External dependencies |
|
|
69
|
+
| ---- | ------- | ------------- | --------- | --------------------- |
|
|
70
|
+
| Unit | `yarn workspace @webex/plugin-people test:unit` | `test/unit/spec` | jest through `webex-legacy-tools` and `@webex/jest-config-legacy` | None; `@webex/test-helper-mock-webex` and sinon stubs |
|
|
71
|
+
|
|
72
|
+
Run `build:src` before `test:unit`. The unit specs import `@webex/plugin-people` by name, which
|
|
73
|
+
resolves to `dist/index.js`, so a stale build tests old code.
|
|
74
|
+
|
|
75
|
+
`test:style` lints `src/` with eslint through `@webex/eslint-config-legacy`.
|
|
76
|
+
|
|
77
|
+
- Coverage or quality gate: none; the package defines no coverage script, and the legacy Jest
|
|
78
|
+
configuration it re-exports sets no threshold
|
|
79
|
+
- Enforcement source: N/A
|
|
80
|
+
- Test environment or QA dependencies: none for unit tests and lint
|
|
81
|
+
|
|
82
|
+
`yarn workspace @webex/plugin-people test:browser:broken` (manifest command `browser-test`) runs `webex-legacy-tools test
|
|
83
|
+
--integration --runner karma` over `test/integration/spec/people.js`, whose 13 cases (1 skipped) create
|
|
84
|
+
test users and call the live service. On 2026-11-12 under Node 22.14 the karma bundle failed to parse
|
|
85
|
+
`isbot` (an ES module in the workspace `node_modules`), so the run reported "0 tests completed" and
|
|
86
|
+
still exited zero. It is not listed in the table above because it verifies nothing today, and its exit
|
|
87
|
+
code is not a test result.
|
|
88
|
+
|
|
89
|
+
Do not run the aggregate `test` script in `package.json`. It runs `test:style` and `test:unit`, then
|
|
90
|
+
exits 1 with `Couldn't find a script named "test:integration"` (checked 2026-11-12); it would also call
|
|
91
|
+
`test:browser`, which this package does not define either. It is deliberately not a manifest command;
|
|
92
|
+
run the commands above instead.
|
|
93
|
+
|
|
94
|
+
## Configuration and secrets
|
|
95
|
+
|
|
96
|
+
- Required configuration: none. `config.people` ships defaults for the batcher timings (100 ms quiet,
|
|
97
|
+
1500 ms at most, 10 ids per request) and `showAllTypes: false` (`src/config.js`); a host can override
|
|
98
|
+
them through the webex config
|
|
99
|
+
- Environment overrides: none read by this package
|
|
100
|
+
- Secret source: N/A; the package holds no secret
|
|
101
|
+
- Package or artifact access: N/A
|
|
102
|
+
- Required neighboring packages: `@webex/webex-core` and `@webex/common` resolve through the workspace;
|
|
103
|
+
`@webex/internal-plugin-mercury` is declared but only the integration spec imports it
|
|
104
|
+
- Platform, simulator, device, or SDK setup: none
|
|
105
|
+
- Never commit credentials or copy production secrets into a local config.
|
|
106
|
+
|
|
107
|
+
## First-run verification
|
|
108
|
+
|
|
109
|
+
1. Run `yarn workspace @webex/plugin-people build:src` and check that it reports `Built plugin-people: 4 files`.
|
|
110
|
+
2. Run `yarn workspace @webex/plugin-people test:unit`.
|
|
111
|
+
3. Run `yarn workspace @webex/plugin-people test:style`.
|
|
112
|
+
|
|
113
|
+
Expected result: all three commands exit zero. The unit run reports 5 passing tests in 2 suites.
|
|
114
|
+
`test:style` prints warnings but no errors: 3 in `src/` (missing JSDoc in `src/people-batcher.js` and
|
|
115
|
+
`src/people.js`) and "File ignored" for `src/docs/README.md`.
|
|
116
|
+
|
|
117
|
+
## Next steps
|
|
118
|
+
|
|
119
|
+
- [Package architecture](architecture.md)
|
|
120
|
+
- [Specification registry](specs/README.md)
|
|
121
|
+
- [Documentation index](index.md)
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
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: rarajes2@cisco.com
|
|
9
|
+
updated_at: 2026-11-12T16:20:06Z
|
|
10
|
+
validation_status: pass-with-warnings
|
|
11
|
+
-->
|
|
12
|
+
|
|
13
|
+
# @webex/plugin-people documentation
|
|
14
|
+
|
|
15
|
+
Doc map for developers and agents working on the People plugin.
|
|
16
|
+
|
|
17
|
+
## Start here
|
|
18
|
+
|
|
19
|
+
- [Getting started](getting-started.md)
|
|
20
|
+
- [Package architecture](architecture.md)
|
|
21
|
+
|
|
22
|
+
## Decisions
|
|
23
|
+
|
|
24
|
+
- [adr/](adr/index.md) — architectural decision records
|
|
25
|
+
|
|
26
|
+
## Specifications and contracts
|
|
27
|
+
|
|
28
|
+
- [architecture.md](architecture.md) — canonical package architecture and contract index
|
|
29
|
+
- [specs/README.md](specs/README.md) — manifest-backed module and contract registry
|
|
30
|
+
- [`src/docs/README.md`](../src/docs/README.md) — the People plugin specification beside its code
|
|
31
|
+
- [adr/](adr/index.md) — concrete architectural decisions; blank ADR templates remain under the
|
|
32
|
+
monorepo root `.sdd/`
|
|
33
|
+
|
|
34
|
+
This package is a library, so there is no service specification and no OpenAPI document. Exact
|
|
35
|
+
contract details live in the native sources linked from the architecture index: `package.json`,
|
|
36
|
+
`src/index.js`, and `src/config.js` for the package and its defaults, and `src/people.js` and
|
|
37
|
+
`src/people-batcher.js` for the API.
|
|
38
|
+
|
|
39
|
+
## Related repository resources
|
|
40
|
+
|
|
41
|
+
- [`README.md`](../README.md) — retained npm page; context only, it shows only `get(id)`, see
|
|
42
|
+
[ADR-0001](adr/0001-retain-product-readme.md)
|
|
43
|
+
- [`AGENTS.md`](../AGENTS.md) — agent instructions for this package
|
|
@@ -0,0 +1,68 @@
|
|
|
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: rarajes2@cisco.com
|
|
12
|
+
updated_at: 2026-11-12T16:20:06Z
|
|
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
|
+
plus native contract. Keep technical facts in one owning document and use this page only for
|
|
20
|
+
navigation, ownership, status, and change/test routing.
|
|
21
|
+
|
|
22
|
+
Start with the [package architecture](../architecture.md). No service specification exists because this
|
|
23
|
+
package is a library.
|
|
24
|
+
|
|
25
|
+
## Document roles
|
|
26
|
+
|
|
27
|
+
| Document | Canonical ownership |
|
|
28
|
+
| -------- | ------------------- |
|
|
29
|
+
| [Package architecture](../architecture.md) | Package boundaries, resource inventory, interactions, dependency topology, 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` | @webex/web-client, @webex/web-sdk | Draft | 2026-11-12 |
|
|
38
|
+
| People plugin | Module | `src/docs/README.md` | @webex/web-client, @webex/web-sdk | Draft | 2026-11-12 |
|
|
39
|
+
| Retain the product README | ADR | `docs/adr/0001-retain-product-readme.md` | @webex/web-client, @webex/web-sdk | Accepted | 2026-11-12 |
|
|
40
|
+
|
|
41
|
+
### Module registry
|
|
42
|
+
|
|
43
|
+
| Module | Responsibility | Manifest coverage state | Start here |
|
|
44
|
+
| --- | --- | --- | --- |
|
|
45
|
+
| `src/` | `webex.people`: person lookup by id through a batcher with local uuid-to-hydra-id normalization, the current user, and filtered paged lists | Partial | `src/docs/README.md` |
|
|
46
|
+
|
|
47
|
+
Generator-side field measurement for the module is complete (100%, assessed 2026-11-12). Independent
|
|
48
|
+
semantic validation passed with warnings on 2026-11-12. A characterization baseline, unit cases for
|
|
49
|
+
remaining paths, and promotion past Partial remain pending.
|
|
50
|
+
|
|
51
|
+
## Change and verification routing
|
|
52
|
+
|
|
53
|
+
| Change affects | Load and update | Verification route |
|
|
54
|
+
| -------------- | --------------- | ------------------ |
|
|
55
|
+
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn workspace @webex/plugin-people build:src`, then `test:unit` and `test:style`, and the module spec |
|
|
56
|
+
| A stable code, package, or component boundary | `src/docs/README.md` | Build, unit tests, and lint |
|
|
57
|
+
| A public method, request path or query, fingerprint, id format, or config default | The owning architecture section, `src/docs/README.md`, and the native definition in `src/people.js`, `src/people-batcher.js`, `src/index.js`, `src/config.js`, or `package.json` | Build, unit tests, and lint; add a unit case for the changed path, since the batching cases live only in the unrun integration spec |
|
|
58
|
+
|
|
59
|
+
## Module and contract registration
|
|
60
|
+
|
|
61
|
+
The module specification is generated at the exact `modules[].canonical_spec` path recorded in
|
|
62
|
+
`.sdd/manifest.json`. Register every module and submodule in the Module registry above in manifest tree
|
|
63
|
+
order.
|
|
64
|
+
|
|
65
|
+
Contracts are registered in `.sdd/manifest.json` `contract_catalog` and indexed in
|
|
66
|
+
[`docs/architecture.md`](../architecture.md#public-and-consumer-surfaces) with a stable ID, publication
|
|
67
|
+
state, native source, and owning module. This page provides navigation and ownership rather than a copied
|
|
68
|
+
contract.
|
package/package.json
CHANGED
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
25
25
|
"@webex/jest-config-legacy": "0.0.0",
|
|
26
26
|
"@webex/legacy-tools": "0.0.0",
|
|
27
|
-
"@webex/test-helper-chai": "3.13.0-next.
|
|
28
|
-
"@webex/test-helper-mocha": "3.13.0-next.
|
|
29
|
-
"@webex/test-helper-mock-webex": "3.13.0-next.
|
|
30
|
-
"@webex/test-helper-test-users": "3.13.0-next.
|
|
27
|
+
"@webex/test-helper-chai": "3.13.0-next.2",
|
|
28
|
+
"@webex/test-helper-mocha": "3.13.0-next.2",
|
|
29
|
+
"@webex/test-helper-mock-webex": "3.13.0-next.2",
|
|
30
|
+
"@webex/test-helper-test-users": "3.13.0-next.2",
|
|
31
31
|
"eslint": "^8.24.0",
|
|
32
32
|
"prettier": "^2.7.1",
|
|
33
33
|
"sinon": "^9.2.4"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@webex/common": "3.13.0-next.
|
|
37
|
-
"@webex/internal-plugin-mercury": "3.13.0-next.
|
|
38
|
-
"@webex/webex-core": "3.13.0-next.
|
|
36
|
+
"@webex/common": "3.13.0-next.2",
|
|
37
|
+
"@webex/internal-plugin-mercury": "3.13.0-next.6",
|
|
38
|
+
"@webex/webex-core": "3.13.0-next.6"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "yarn build:src",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"test:style": "eslint ./src/**/*.*",
|
|
47
47
|
"test:unit": "webex-legacy-tools test --unit --runner jest"
|
|
48
48
|
},
|
|
49
|
-
"version": "3.13.0-next.
|
|
49
|
+
"version": "3.13.0-next.6"
|
|
50
50
|
}
|