@webex/plugin-people 3.13.0-next.3 → 3.13.0-next.5

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,474 @@
1
+ {
2
+ "$schema": "./schemas/repo-context.schema.json",
3
+ "version": 1,
4
+ "repository": {
5
+ "name": "@webex/plugin-people",
6
+ "purpose": "Public plugin registered as webex.people that reads Webex person records from the Webex REST API (catalog service hydra). get(person) takes a uuid, a hydra person id, a person object, or the string me; me is fetched from people/me with concurrent calls sharing one request, and every other id goes through a batcher that turns concurrent lookups into one GET people/?id=...&showAllTypes=... of up to 10 ids per flush (100 ms quiet, 1500 ms at most). Ids are normalized locally: a uuid becomes the base64url hydra id ciscospark://us/PEOPLE/uuid without a request, so a uuid and its hydra id share one lookup. list(options) resolves an array of persons for an array of ids through the same batcher, or a Page of results for a query object such as email or displayName. Nothing is cached or persisted."
7
+ },
8
+ "commands": {
9
+ "install": "yarn",
10
+ "prebuild": "yarn prebuild:modules",
11
+ "compile": "yarn build",
12
+ "build": "yarn build:src",
13
+ "unit-test": "yarn test:unit",
14
+ "lint": "yarn test:style",
15
+ "browser-test": "yarn test:browser:broken",
16
+ "deploy": "yarn deploy:npm"
17
+ },
18
+ "public_interfaces": [
19
+ {
20
+ "name": "@webex/plugin-people package entry",
21
+ "kind": "package_export",
22
+ "source": "src/index.js",
23
+ "entrypoints": [
24
+ "import '@webex/plugin-people'",
25
+ "import People from '@webex/plugin-people'"
26
+ ],
27
+ "audience": "SDK bundles (webex, webex-node, recipe-private-web-client) and applications that build their own webex instance",
28
+ "notes": "Importing the package registers People as public plugin 'people' with the people config; the first registration of the name wins. The default export People is the only export; config is not exported."
29
+ },
30
+ {
31
+ "name": "webex.people methods",
32
+ "kind": "plugin_api",
33
+ "source": "src/people.js",
34
+ "entrypoints": [
35
+ "webex.people.get(person)",
36
+ "webex.people.list(options)",
37
+ "webex.people.inferPersonIdFromUuid(id)"
38
+ ],
39
+ "audience": "applications and SDK packages (@webex/common event envelopes, @webex/plugin-meetings meeting info, @webex/calling caller-id lookup)",
40
+ "notes": "get rejects a falsy person with 'A person with an id is required'; get('me') requests people/me directly; any other value is reduced to personId, then id, then the value itself, and looked up through the batcher. list with an array resolves a plain array of persons in input order (not a Page); list with an object sends it as the query string of GET people and resolves a webex-core Page. inferPersonIdFromUuid is marked @private in its JSDoc but is called by the batcher and by the integration spec. A not-found id rejects with the id string, not an Error."
41
+ },
42
+ {
43
+ "name": "package scripts",
44
+ "kind": "npm_scripts",
45
+ "source": "package.json",
46
+ "entrypoints": [
47
+ "build",
48
+ "build:src",
49
+ "test:unit",
50
+ "test:style",
51
+ "test:browser:broken",
52
+ "test",
53
+ "deploy:npm"
54
+ ],
55
+ "audience": "contributors and CI",
56
+ "notes": "build runs build:src, which writes dist. test:unit runs the jest unit specs, which import the package by name and so test dist; run build:src first. test:browser:broken (commands.browser-test) runs karma over test/integration/spec but bundles nothing today (0 tests, exit 0). The aggregate test script runs test:style and test:unit, then exits 1 because test:integration is not defined (and it names test:browser, which is not defined either); it is deliberately not a manifest command."
57
+ }
58
+ ],
59
+ "source_of_truth": [
60
+ {
61
+ "surface": "People plugin implementation",
62
+ "paths": [
63
+ "src/index.js",
64
+ "src/people.js",
65
+ "src/people-batcher.js",
66
+ "src/config.js"
67
+ ],
68
+ "generated_artifacts": [
69
+ "dist"
70
+ ],
71
+ "refresh_with": [
72
+ "yarn build:src"
73
+ ],
74
+ "validate_with": [
75
+ "yarn test:unit",
76
+ "yarn test:style"
77
+ ]
78
+ },
79
+ {
80
+ "surface": "module specification",
81
+ "paths": [
82
+ "src/docs/README.md"
83
+ ],
84
+ "generated_artifacts": [],
85
+ "refresh_with": [
86
+ "update alongside the behavior change in the same commit"
87
+ ],
88
+ "validate_with": [
89
+ "spec-validator on an independent runtime"
90
+ ]
91
+ }
92
+ ],
93
+ "generated_artifacts": [
94
+ {
95
+ "path": "dist",
96
+ "generated_from": "src",
97
+ "refresh_with": "yarn build:src"
98
+ },
99
+ {
100
+ "path": "../../../.sdd/templates/repo-standards/template-map.json",
101
+ "generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
102
+ "refresh_with": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package."
103
+ }
104
+ ],
105
+ "validation_matrix": [
106
+ {
107
+ "paths": [
108
+ "src/**"
109
+ ],
110
+ "minimum": [
111
+ "yarn build:src",
112
+ "yarn test:unit",
113
+ "yarn test:style"
114
+ ],
115
+ "recommended": [
116
+ "add or update cases in test/unit/spec/people.js or test/unit/spec/people-batcher.js for the changed behavior"
117
+ ]
118
+ },
119
+ {
120
+ "paths": [
121
+ "src/people-batcher.js",
122
+ "src/config.js"
123
+ ],
124
+ "minimum": [
125
+ "yarn build:src",
126
+ "yarn test:unit",
127
+ "yarn test:style"
128
+ ],
129
+ "recommended": [
130
+ "keep a uuid and its hydra id on one fingerprint (INV-002) and add a unit case that a burst of get calls sends one request (INV-001); the only cases asserting batching today are in the integration spec, which no script runs"
131
+ ]
132
+ },
133
+ {
134
+ "paths": [
135
+ "src/people.js"
136
+ ],
137
+ "minimum": [
138
+ "yarn build:src",
139
+ "yarn test:unit",
140
+ "yarn test:style"
141
+ ],
142
+ "recommended": [
143
+ "add unit cases for get('me'), both list paths, and inferPersonIdFromUuid before changing them; check @webex/common event-envelope, @webex/plugin-meetings meeting-info/utilv2, and @webex/calling src/common/Utils.ts, which read list results and get('me')"
144
+ ]
145
+ },
146
+ {
147
+ "paths": [
148
+ "src/index.js"
149
+ ],
150
+ "minimum": [
151
+ "yarn build:src",
152
+ "yarn test:unit",
153
+ "yarn test:style"
154
+ ],
155
+ "recommended": [
156
+ "check the bundles that register the plugin (webex, webex-node, recipe-private-web-client) when the registered name or the config changes"
157
+ ]
158
+ }
159
+ ],
160
+ "change_impact": [
161
+ {
162
+ "paths": [
163
+ "src/people.js"
164
+ ],
165
+ "affects": [
166
+ "the get id reduction and the me shortcut",
167
+ "the list array and query-object paths and their result shapes",
168
+ "the uuid to hydra id inference"
169
+ ],
170
+ "refresh_with": [
171
+ "yarn build:src"
172
+ ],
173
+ "validate_with": [
174
+ "yarn test:unit",
175
+ "yarn test:style"
176
+ ],
177
+ "avoid_direct_edits": [
178
+ "dist"
179
+ ],
180
+ "notes": "Only the get guard has a unit case; pin get('me'), list, and inferPersonIdFromUuid with unit cases before changing them."
181
+ },
182
+ {
183
+ "paths": [
184
+ "src/people-batcher.js"
185
+ ],
186
+ "affects": [
187
+ "the people/?id= request and its showAllTypes flag",
188
+ "fingerprinting of uuids and hydra ids",
189
+ "item success and notFoundIds handling"
190
+ ],
191
+ "refresh_with": [
192
+ "yarn build:src"
193
+ ],
194
+ "validate_with": [
195
+ "yarn test:unit",
196
+ "yarn test:style"
197
+ ],
198
+ "avoid_direct_edits": [
199
+ "dist"
200
+ ],
201
+ "notes": "notFoundIds rejections are not awaited (MOD-010) and the HTTP error path has no unit case (MOD-011)."
202
+ },
203
+ {
204
+ "paths": [
205
+ "src/config.js",
206
+ "src/index.js"
207
+ ],
208
+ "affects": [
209
+ "the registered plugin name and config",
210
+ "the batcher timings and showAllTypes default"
211
+ ],
212
+ "refresh_with": [
213
+ "yarn build:src"
214
+ ],
215
+ "validate_with": [
216
+ "yarn test:unit",
217
+ "yarn test:style"
218
+ ],
219
+ "avoid_direct_edits": [
220
+ "dist"
221
+ ],
222
+ "notes": "No unit case covers registration or the config defaults; add one before changing them."
223
+ }
224
+ ],
225
+ "evidence_rules": [
226
+ {
227
+ "claim_category": "command_name",
228
+ "sources": [
229
+ "package.json"
230
+ ],
231
+ "requirement": "The script must exist in package.json scripts.",
232
+ "notes": "test:integration and test:browser do not exist, so the aggregate test script fails; test:browser:broken currently verifies nothing."
233
+ },
234
+ {
235
+ "claim_category": "import_path",
236
+ "sources": [
237
+ "src/index.js"
238
+ ],
239
+ "requirement": "A binding is public only if exported from src/index.js.",
240
+ "notes": "The only export is the default People."
241
+ },
242
+ {
243
+ "claim_category": "behavior_claim",
244
+ "sources": [
245
+ "src",
246
+ "test/unit/spec"
247
+ ],
248
+ "requirement": "Ground every behavioral claim in source and unit-test evidence.",
249
+ "notes": "Commit history is not an evidence source for this package. README.md is context only (docs/adr/0001-retain-product-readme.md). The integration spec under test/integration/spec states intended behavior but no script runs it. The webex-core, common, and internal-plugin-mercury specs were consulted; the webex-core batcher and the common base64 code were read where those specs are silent."
250
+ }
251
+ ],
252
+ "negative_guidance": [
253
+ {
254
+ "rule": "Do not call webex.request for people/?id= outside the batcher.",
255
+ "why": "Lookups by id must be de-duplicated and grouped so a burst sends one request per flush (INV-001)."
256
+ },
257
+ {
258
+ "rule": "Do not change the fingerprint functions without keeping a uuid and its hydra id on the same key.",
259
+ "why": "Responses carry hydra ids; a request keyed by anything else never settles (INV-002)."
260
+ },
261
+ {
262
+ "rule": "Do not change the cluster in inferPersonIdFromUuid.",
263
+ "why": "Hydra ids for PEOPLE always use cluster us (common MOD-006); other ids would not match responses."
264
+ },
265
+ {
266
+ "rule": "Do not log person ids, emails, or display names.",
267
+ "why": "They identify users; the package logs nothing today."
268
+ },
269
+ {
270
+ "rule": "Do not treat README.md as the behavior reference.",
271
+ "why": "It shows only get(id); see docs/adr/0001-retain-product-readme.md."
272
+ },
273
+ {
274
+ "rule": "Do not infer a coverage threshold for this package.",
275
+ "why": "No coverage script or threshold exists."
276
+ }
277
+ ],
278
+ "confidence_policy": {
279
+ "high": {
280
+ "action": "update",
281
+ "expectation": "Source and a unit case in test/unit/spec agree."
282
+ },
283
+ "medium": {
284
+ "action": "narrow-scope",
285
+ "expectation": "Only source evidence exists, or only the unrun integration spec, as for registration, the config defaults, get('me'), both list paths, inferPersonIdFromUuid, the HTTP error path, and batching. Pin current behavior with a unit case before modifying."
286
+ },
287
+ "low": {
288
+ "action": "noop",
289
+ "expectation": "Neither source, tests, nor a dependency's spec or code settles the question, as for what Hydra returns in notFoundIds. Stop and report the gap."
290
+ }
291
+ },
292
+ "repository_topology": {
293
+ "main_entrypoints": [
294
+ {
295
+ "name": "package entry",
296
+ "path": "src/index.js",
297
+ "purpose": "Registers the people plugin and exports the class",
298
+ "notes": "No subpath exports; package.json main is dist/index.js and devMain is src/index.js."
299
+ }
300
+ ],
301
+ "workspace_packages": [
302
+ {
303
+ "name": "@webex/plugin-people",
304
+ "paths": [
305
+ "src",
306
+ "test"
307
+ ],
308
+ "notes": "One module; this SDD root is the package directory inside the webex-js-sdk monorepo."
309
+ }
310
+ ],
311
+ "source_surfaces": [
312
+ {
313
+ "name": "People plugin",
314
+ "paths": [
315
+ "src"
316
+ ],
317
+ "notes": "index.js, people.js, people-batcher.js, config.js. Specified at src/docs/README.md."
318
+ },
319
+ {
320
+ "name": "tests",
321
+ "paths": [
322
+ "test/unit/spec",
323
+ "test/integration/spec"
324
+ ],
325
+ "notes": "Two unit specs run by test:unit; one live-service integration spec that only test:browser:broken would run, and it bundles nothing today."
326
+ }
327
+ ],
328
+ "generated_surfaces": [
329
+ {
330
+ "name": "build output",
331
+ "paths": [
332
+ "dist"
333
+ ],
334
+ "generated_from": "src",
335
+ "refresh_with": "yarn build:src",
336
+ "notes": "JavaScript and source maps from webex-legacy-tools; no type declarations. Do not edit by hand."
337
+ },
338
+ {
339
+ "name": "repo-standards template map",
340
+ "paths": [
341
+ "../../../.sdd/templates/repo-standards"
342
+ ],
343
+ "generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
344
+ "refresh_with": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package.",
345
+ "notes": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package."
346
+ }
347
+ ],
348
+ "validation_entrypoints": [
349
+ {
350
+ "name": "compile",
351
+ "command": "yarn build",
352
+ "scope": "src",
353
+ "notes": "Runs build:src."
354
+ },
355
+ {
356
+ "name": "unit-test",
357
+ "command": "yarn test:unit",
358
+ "scope": "test/unit/spec",
359
+ "notes": "Run build:src first; the specs test dist."
360
+ },
361
+ {
362
+ "name": "lint",
363
+ "command": "yarn test:style",
364
+ "scope": "src",
365
+ "notes": "eslint via the local .eslintrc.js; docs/** and *.md are ignored."
366
+ }
367
+ ],
368
+ "sync_paths": [
369
+ {
370
+ "source": "src/people.js",
371
+ "targets": [
372
+ "src/docs/README.md"
373
+ ],
374
+ "mechanism": "Manual; update the module specification in the same change that alters observable behavior.",
375
+ "notes": "Keep the get, list, id inference, batching, and wire rows of the specification aligned with src/people.js, src/people-batcher.js, and src/config.js."
376
+ },
377
+ {
378
+ "source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
379
+ "targets": [
380
+ "../../../.sdd/templates/repo-standards"
381
+ ],
382
+ "mechanism": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package.",
383
+ "notes": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package."
384
+ }
385
+ ]
386
+ },
387
+ "folder_readme_contract": {
388
+ "required_sections": [
389
+ "purpose",
390
+ "boundaries",
391
+ "key-files",
392
+ "common-tasks"
393
+ ],
394
+ "rules": [
395
+ "Orient the reader before describing detail.",
396
+ "Link to the module specification rather than duplicating it."
397
+ ],
398
+ "example_policy": "Examples are allowed only when verified against src/ or test/.",
399
+ "fallback": "Omit a section rather than inventing content; report unresolved facts as gaps."
400
+ },
401
+ "regression_feedback_rules": [
402
+ {
403
+ "trigger": "The people/?id= request, the fingerprints, or the response handling in src/people-batcher.js changes.",
404
+ "required_followups": [
405
+ "Add or update a unit case in test/unit/spec/people-batcher.js asserting the request, the settled callers, and the notFoundIds rejection",
406
+ "Update MOD-008 to MOD-011, INV-001, and INV-002 in src/docs/README.md"
407
+ ],
408
+ "notes": "The batching cases live only in the integration spec, which no script runs; the HTTP error path is untested."
409
+ },
410
+ {
411
+ "trigger": "get, list, inferPersonIdFromUuid, or _getMe in src/people.js changes.",
412
+ "required_followups": [
413
+ "Add unit cases for get('me'), both list paths, and inferPersonIdFromUuid; none exist today",
414
+ "Update MOD-004 to MOD-007, INV-002, and INV-003 in src/docs/README.md"
415
+ ],
416
+ "notes": "Consumers read list(object).items and get('me'); keep those shapes."
417
+ },
418
+ {
419
+ "trigger": "Registration or the config in src/index.js or src/config.js changes.",
420
+ "required_followups": [
421
+ "Add a unit case for registration and the config defaults; none exist today",
422
+ "Update MOD-001 to MOD-003 in src/docs/README.md"
423
+ ],
424
+ "notes": "batcherMaxCalls bounds how many ids go into one request."
425
+ }
426
+ ],
427
+ "surface_owners": [
428
+ {
429
+ "surface": "module implementation and specifications",
430
+ "owner": "@webex/web-client @webex/web-sdk",
431
+ "edit_boundary": "Owners per the packages/@webex/plugin-people line of the monorepo .github/CODEOWNERS."
432
+ }
433
+ ],
434
+ "do_not_edit": [
435
+ "dist",
436
+ "../../../.sdd/templates/repo-standards"
437
+ ],
438
+ "marker_scopes": {
439
+ "sdd": [
440
+ ".sdd/manifest.json",
441
+ "src/docs/README.md",
442
+ "docs"
443
+ ]
444
+ },
445
+ "fallback_rules": [
446
+ "When source and tests disagree, code is the referee and the disagreement is recorded rather than silently resolved.",
447
+ "When neither source nor tests settle a question, report it as a gap instead of inferring.",
448
+ "Commit history is not a valid rationale source for this package.",
449
+ "When a dependency's specification disagrees with that dependency's code, use the code and record the disagreement; when a dependency has no specification, use its code."
450
+ ],
451
+ "downstream_context_pack": {
452
+ "required_human_surfaces": [
453
+ "README.md",
454
+ "docs/index.md",
455
+ "docs/architecture.md",
456
+ "src/docs/README.md"
457
+ ],
458
+ "required_agent_operational_surfaces": [
459
+ "AGENTS.md",
460
+ "docs/specs/README.md"
461
+ ],
462
+ "required_machine_readable_surface": ".sdd/manifest.json",
463
+ "recommended_machine_readable_sections": [
464
+ "public_interfaces",
465
+ "change_impact",
466
+ "evidence_rules",
467
+ "negative_guidance",
468
+ "confidence_policy",
469
+ "repository_topology",
470
+ "folder_readme_contract",
471
+ "regression_feedback_rules"
472
+ ]
473
+ }
474
+ }