@webex/webex-core 3.12.0 → 3.13.0-next.1

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.
Files changed (75) hide show
  1. package/.repo-context.json +653 -0
  2. package/.sdd/manifest.json +605 -0
  3. package/AGENTS.md +209 -0
  4. package/README.md +5 -2
  5. package/dist/config.js +45 -0
  6. package/dist/config.js.map +1 -1
  7. package/dist/credentials-config.js +12 -0
  8. package/dist/credentials-config.js.map +1 -1
  9. package/dist/index.js +14 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/interceptors/catalog-url.js +87 -0
  12. package/dist/interceptors/catalog-url.js.map +1 -0
  13. package/dist/interceptors/payload-transformer.js +25 -4
  14. package/dist/interceptors/payload-transformer.js.map +1 -1
  15. package/dist/lib/batcher.js +23 -7
  16. package/dist/lib/batcher.js.map +1 -1
  17. package/dist/lib/credentials/credentials.js +103 -4
  18. package/dist/lib/credentials/credentials.js.map +1 -1
  19. package/dist/lib/credentials/token.js +1 -1
  20. package/dist/lib/domains.js +90 -0
  21. package/dist/lib/domains.js.map +1 -0
  22. package/dist/lib/services/service-catalog.js +108 -18
  23. package/dist/lib/services/service-catalog.js.map +1 -1
  24. package/dist/lib/services/services.js +242 -38
  25. package/dist/lib/services/services.js.map +1 -1
  26. package/dist/lib/services-v2/service-catalog.js +14 -13
  27. package/dist/lib/services-v2/service-catalog.js.map +1 -1
  28. package/dist/lib/services-v2/services-v2.js +255 -42
  29. package/dist/lib/services-v2/services-v2.js.map +1 -1
  30. package/dist/lib/static-asset-loader.js +153 -0
  31. package/dist/lib/static-asset-loader.js.map +1 -0
  32. package/dist/plugins/logger.js +1 -1
  33. package/dist/webex-core.js +11 -3
  34. package/dist/webex-core.js.map +1 -1
  35. package/docs/adr/index.md +32 -0
  36. package/docs/architecture.md +298 -0
  37. package/docs/getting-started.md +96 -0
  38. package/docs/index.md +55 -0
  39. package/docs/specs/README.md +76 -0
  40. package/package.json +13 -13
  41. package/schemas/repo-context.schema.json +796 -0
  42. package/src/config.js +49 -0
  43. package/src/credentials-config.js +13 -0
  44. package/src/docs/README.md +732 -0
  45. package/src/index.js +2 -0
  46. package/src/interceptors/catalog-url.js +66 -0
  47. package/src/interceptors/docs/README.md +658 -0
  48. package/src/interceptors/payload-transformer.js +23 -1
  49. package/src/lib/batcher.js +25 -10
  50. package/src/lib/credentials/credentials.js +93 -3
  51. package/src/lib/credentials/docs/README.md +846 -0
  52. package/src/lib/domains.ts +94 -0
  53. package/src/lib/services/docs/README.md +737 -0
  54. package/src/lib/services/service-catalog.js +112 -16
  55. package/src/lib/services/services.js +220 -22
  56. package/src/lib/services-v2/docs/README.md +751 -0
  57. package/src/lib/services-v2/service-catalog.ts +16 -12
  58. package/src/lib/services-v2/services-v2.ts +234 -24
  59. package/src/lib/static-asset-loader.ts +128 -0
  60. package/src/lib/storage/docs/README.md +646 -0
  61. package/src/webex-core.js +8 -0
  62. package/test/fixtures/activation-email.ts +22 -0
  63. package/test/integration/spec/services/services.js +183 -112
  64. package/test/integration/spec/services-v2/services-v2.js +169 -98
  65. package/test/unit/spec/credentials/credentials.js +247 -3
  66. package/test/unit/spec/interceptors/auth.js +56 -0
  67. package/test/unit/spec/interceptors/catalog-url.js +224 -0
  68. package/test/unit/spec/interceptors/payload-transformer.js +119 -1
  69. package/test/unit/spec/lib/batcher.js +56 -0
  70. package/test/unit/spec/services/service-catalog.js +368 -11
  71. package/test/unit/spec/services/services.js +466 -2
  72. package/test/unit/spec/services-v2/service-catalog.ts +134 -11
  73. package/test/unit/spec/services-v2/services-v2.ts +588 -0
  74. package/test/unit/spec/static-asset-loader.ts +224 -0
  75. package/test/unit/spec/webex-core.js +77 -1
@@ -0,0 +1,605 @@
1
+ {
2
+ "manifest_version": 1,
3
+ "repository": {
4
+ "name": "@webex/webex-core",
5
+ "purpose": "Core library of the Cisco Webex JS SDK: the plugin host and WebexCore class, the HTTP interceptor pipeline, OAuth credentials and token lifecycle, U2C service discovery (v1 and opt-in v2), and the pluggable storage layer that every other SDK plugin builds on.",
6
+ "category": "cat2-legacy",
7
+ "primary_languages": [
8
+ "javascript",
9
+ "typescript"
10
+ ]
11
+ },
12
+ "topology": "Single-repo",
13
+ "commands": {
14
+ "install": {
15
+ "command": "yarn install",
16
+ "source_file": "package.json",
17
+ "role": "install"
18
+ },
19
+ "compile": {
20
+ "command": "yarn workspace @webex/webex-core build:src",
21
+ "source_file": "package.json",
22
+ "role": "compile"
23
+ },
24
+ "build": {
25
+ "command": "yarn workspace @webex/webex-core build",
26
+ "source_file": "package.json",
27
+ "role": "build"
28
+ },
29
+ "unit-test": {
30
+ "command": "yarn workspace @webex/webex-core test:unit",
31
+ "source_file": "package.json",
32
+ "role": "unit-test"
33
+ },
34
+ "integration-test": {
35
+ "command": "yarn workspace @webex/webex-core test:integration",
36
+ "source_file": "package.json",
37
+ "role": "integration-test"
38
+ },
39
+ "browser-test": {
40
+ "command": "yarn workspace @webex/webex-core test:browser",
41
+ "source_file": "package.json",
42
+ "role": "other"
43
+ },
44
+ "lint": {
45
+ "command": "yarn workspace @webex/webex-core test:style",
46
+ "source_file": "package.json",
47
+ "role": "lint"
48
+ },
49
+ "test-all": {
50
+ "command": "yarn workspace @webex/webex-core test",
51
+ "source_file": "package.json",
52
+ "role": "other"
53
+ },
54
+ "deploy": {
55
+ "command": "yarn workspace @webex/webex-core deploy:npm",
56
+ "source_file": "package.json",
57
+ "role": "deploy"
58
+ }
59
+ },
60
+ "toolchain": [
61
+ {
62
+ "name": "node",
63
+ "version": ">=18",
64
+ "origin": "repo-config",
65
+ "source_file": "package.json"
66
+ }
67
+ ],
68
+ "tests": {
69
+ "unit": {
70
+ "command_ref": "unit-test",
71
+ "dir": "test/unit",
72
+ "framework": "jest"
73
+ },
74
+ "integration": {
75
+ "command_ref": "integration-test",
76
+ "dir": "test/integration",
77
+ "framework": "mocha",
78
+ "external_deps": [
79
+ "provisioned Webex test users via @webex/test-helper-test-users",
80
+ "live Webex U2C and identity-broker services",
81
+ "local fixture server via @webex/test-helper-make-local-url"
82
+ ]
83
+ }
84
+ },
85
+ "quality_gates": {
86
+ "code_coverage": {
87
+ "origin": "none",
88
+ "declared_by": "rsarika@cisco.com via bootstrap questionnaire"
89
+ }
90
+ },
91
+ "coverage_status_definitions": {
92
+ "specced": ">=80% public surface specced, drift <5% - spec is authoritative",
93
+ "partial": "40-80% specced - spec is a hint, cross-check code",
94
+ "untracked": "<40% specced - code is the source of truth"
95
+ },
96
+ "modules": [
97
+ {
98
+ "path": "src",
99
+ "coverage_status": "Partial",
100
+ "coverage_evidence": "Generator-side field measurement 15/16 (93.8%), critical 8/8; thin tests: 5 of 23 requirement rows untested (config overrides, proxies), no characterization baseline. Independent validation completed 2026-10-07 with warnings; drift remains unmeasured, so Partial only. Validator status: Pass with warnings; 0 Blocking, 8 Important, 3 Medium findings.",
101
+ "canonical_spec": "src/docs/README.md",
102
+ "contracts": {
103
+ "provides": [
104
+ "webex-core-sdk"
105
+ ],
106
+ "requires": [
107
+ "http-core-sdk",
108
+ "webex-common-js-api",
109
+ "ampersand-state-library",
110
+ "storage-adapter-spec-suite",
111
+ "webex-core-interceptors",
112
+ "webex-core-credentials",
113
+ "webex-core-services",
114
+ "webex-core-services-v2",
115
+ "webex-core-storage"
116
+ ]
117
+ },
118
+ "last_assessed": "2026-10-07",
119
+ "section_profile": {
120
+ "has_tiers": false,
121
+ "has_ui": false,
122
+ "crosses_service_boundaries": true,
123
+ "holds_client_state": true,
124
+ "enforces_domain_rules": true,
125
+ "is_concurrent_async": true,
126
+ "owns_persistence": false,
127
+ "stateful_transitions": true,
128
+ "exposes_wire_protocol": false,
129
+ "ui_multi_screen": false,
130
+ "large_data_model": false,
131
+ "returns_caller_errors": true,
132
+ "module_specific_conventions": true,
133
+ "published_package": true,
134
+ "embedded_in_host": false,
135
+ "has_design_tradeoff": true,
136
+ "resolved_by": "claude-code/claude-sonnet-5-5 (host metadata; bootstrap questionnaire)",
137
+ "resolved_at": "2026-10-07T11:00:00Z",
138
+ "has_submodules": true,
139
+ "has_submodules_computed_by": "scripts/module_tree.py",
140
+ "has_submodules_computed_at": "2026-10-07T11:58:25Z"
141
+ }
142
+ },
143
+ {
144
+ "path": "src/interceptors",
145
+ "coverage_status": "Partial",
146
+ "coverage_evidence": "Generator-side field measurement 15/16 (93.8%), critical 8/8; thin tests: 6 of 28 rows untested, 10 lack negative-path evidence, no characterization baseline. Independent validation completed 2026-10-07 with warnings; drift remains unmeasured, so Partial only. Validator status: Pass with warnings; 0 Blocking, 8 Important, 3 Medium findings.",
147
+ "canonical_spec": "src/interceptors/docs/README.md",
148
+ "contracts": {
149
+ "provides": [
150
+ "webex-core-interceptors"
151
+ ],
152
+ "requires": [
153
+ "http-core-sdk",
154
+ "webex-common-js-api",
155
+ "webex-core-credentials",
156
+ "webex-core-services",
157
+ "idbroker-oauth-service"
158
+ ]
159
+ },
160
+ "last_assessed": "2026-10-07",
161
+ "section_profile": {
162
+ "has_tiers": false,
163
+ "has_ui": false,
164
+ "crosses_service_boundaries": true,
165
+ "holds_client_state": true,
166
+ "enforces_domain_rules": true,
167
+ "is_concurrent_async": true,
168
+ "owns_persistence": false,
169
+ "stateful_transitions": false,
170
+ "exposes_wire_protocol": true,
171
+ "ui_multi_screen": false,
172
+ "large_data_model": false,
173
+ "returns_caller_errors": true,
174
+ "module_specific_conventions": true,
175
+ "published_package": true,
176
+ "embedded_in_host": false,
177
+ "has_design_tradeoff": true,
178
+ "resolved_by": "claude-code/claude-sonnet-5-5 (host metadata; bootstrap questionnaire)",
179
+ "resolved_at": "2026-10-07T11:00:00Z",
180
+ "has_submodules": false,
181
+ "has_submodules_computed_by": "scripts/module_tree.py",
182
+ "has_submodules_computed_at": "2026-10-07T11:58:25Z"
183
+ }
184
+ },
185
+ {
186
+ "path": "src/lib/credentials",
187
+ "coverage_status": "Partial",
188
+ "coverage_evidence": "Generator-side field measurement 15/16 (93.8%), critical 8/8; thin tests: 6 of 43 rows untested, 25 lack negative-path evidence, no characterization baseline. Independent validation completed 2026-10-07 with warnings; drift remains unmeasured, so Partial only. Validator status: Pass with warnings; 0 Blocking, 8 Important, 3 Medium findings.",
189
+ "canonical_spec": "src/lib/credentials/docs/README.md",
190
+ "contracts": {
191
+ "provides": [
192
+ "webex-core-credentials"
193
+ ],
194
+ "requires": [
195
+ "http-core-sdk",
196
+ "webex-common-js-api",
197
+ "common-timers-sdk",
198
+ "idbroker-oauth-service",
199
+ "ampersand-state-library",
200
+ "webex-core-storage"
201
+ ]
202
+ },
203
+ "last_assessed": "2026-10-07",
204
+ "section_profile": {
205
+ "has_tiers": false,
206
+ "has_ui": false,
207
+ "crosses_service_boundaries": true,
208
+ "holds_client_state": true,
209
+ "enforces_domain_rules": true,
210
+ "is_concurrent_async": true,
211
+ "owns_persistence": true,
212
+ "stateful_transitions": true,
213
+ "exposes_wire_protocol": true,
214
+ "ui_multi_screen": false,
215
+ "large_data_model": false,
216
+ "returns_caller_errors": true,
217
+ "module_specific_conventions": true,
218
+ "published_package": true,
219
+ "embedded_in_host": false,
220
+ "has_design_tradeoff": true,
221
+ "resolved_by": "claude-code/claude-sonnet-5-5 (host metadata; bootstrap questionnaire)",
222
+ "resolved_at": "2026-10-07T11:00:00Z",
223
+ "has_submodules": false,
224
+ "has_submodules_computed_by": "scripts/module_tree.py",
225
+ "has_submodules_computed_at": "2026-10-07T11:58:25Z"
226
+ }
227
+ },
228
+ {
229
+ "path": "src/lib/services",
230
+ "coverage_status": "Partial",
231
+ "coverage_evidence": "Generator-side field measurement 16/16 (100%), critical 8/8; tests map 17 of 18 rows; no characterization baseline. Independent validation completed 2026-10-07 with warnings; drift remains unmeasured, so Partial only. Validator status: Pass with warnings; 0 Blocking, 8 Important, 3 Medium findings.",
232
+ "canonical_spec": "src/lib/services/docs/README.md",
233
+ "contracts": {
234
+ "provides": [
235
+ "webex-core-services"
236
+ ],
237
+ "requires": [
238
+ "http-core-sdk",
239
+ "webex-core-credentials",
240
+ "u2c-service",
241
+ "idbroker-oauth-service",
242
+ "ampersand-state-library"
243
+ ]
244
+ },
245
+ "last_assessed": "2026-10-07",
246
+ "section_profile": {
247
+ "has_tiers": false,
248
+ "has_ui": false,
249
+ "crosses_service_boundaries": true,
250
+ "holds_client_state": true,
251
+ "enforces_domain_rules": true,
252
+ "is_concurrent_async": true,
253
+ "owns_persistence": true,
254
+ "stateful_transitions": true,
255
+ "exposes_wire_protocol": false,
256
+ "ui_multi_screen": false,
257
+ "large_data_model": false,
258
+ "returns_caller_errors": true,
259
+ "module_specific_conventions": true,
260
+ "published_package": true,
261
+ "embedded_in_host": false,
262
+ "has_design_tradeoff": true,
263
+ "resolved_by": "claude-code/claude-sonnet-5-5 (host metadata; bootstrap questionnaire)",
264
+ "resolved_at": "2026-10-07T11:00:00Z",
265
+ "has_submodules": false,
266
+ "has_submodules_computed_by": "scripts/module_tree.py",
267
+ "has_submodules_computed_at": "2026-10-07T11:58:25Z"
268
+ }
269
+ },
270
+ {
271
+ "path": "src/lib/services-v2",
272
+ "coverage_status": "Partial",
273
+ "coverage_evidence": "Generator-side field measurement 16/16 (100%), critical 8/8; tests map 18 of 20 rows; no characterization baseline. Independent validation completed 2026-10-07 with warnings; drift remains unmeasured, so Partial only. Validator status: Pass with warnings; 0 Blocking, 8 Important, 3 Medium findings.",
274
+ "canonical_spec": "src/lib/services-v2/docs/README.md",
275
+ "contracts": {
276
+ "provides": [
277
+ "webex-core-services-v2"
278
+ ],
279
+ "requires": [
280
+ "http-core-sdk",
281
+ "u2c-service",
282
+ "idbroker-oauth-service",
283
+ "ampersand-state-library",
284
+ "webex-core-credentials",
285
+ "webex-core-services"
286
+ ]
287
+ },
288
+ "last_assessed": "2026-10-07",
289
+ "section_profile": {
290
+ "has_tiers": false,
291
+ "has_ui": false,
292
+ "crosses_service_boundaries": true,
293
+ "holds_client_state": true,
294
+ "enforces_domain_rules": true,
295
+ "is_concurrent_async": true,
296
+ "owns_persistence": true,
297
+ "stateful_transitions": true,
298
+ "exposes_wire_protocol": false,
299
+ "ui_multi_screen": false,
300
+ "large_data_model": false,
301
+ "returns_caller_errors": true,
302
+ "module_specific_conventions": true,
303
+ "published_package": true,
304
+ "embedded_in_host": false,
305
+ "has_design_tradeoff": true,
306
+ "resolved_by": "claude-code/claude-sonnet-5-5 (host metadata; bootstrap questionnaire)",
307
+ "resolved_at": "2026-10-07T11:00:00Z",
308
+ "has_submodules": false,
309
+ "has_submodules_computed_by": "scripts/module_tree.py",
310
+ "has_submodules_computed_at": "2026-10-07T11:58:25Z"
311
+ }
312
+ },
313
+ {
314
+ "path": "src/lib/storage",
315
+ "coverage_status": "Partial",
316
+ "coverage_evidence": "Generator-side field measurement 15/16 (93.8%), critical 8/8; thin tests: 10 of 23 rows untested incl. error paths, no characterization baseline. Independent validation completed 2026-10-07 with warnings; drift remains unmeasured, so Partial only. Validator status: Pass with warnings; 0 Blocking, 8 Important, 3 Medium findings.",
317
+ "canonical_spec": "src/lib/storage/docs/README.md",
318
+ "contracts": {
319
+ "provides": [
320
+ "webex-core-storage"
321
+ ],
322
+ "requires": [
323
+ "webex-common-js-api",
324
+ "ampersand-state-library",
325
+ "storage-adapter-spec-suite"
326
+ ]
327
+ },
328
+ "last_assessed": "2026-10-07",
329
+ "section_profile": {
330
+ "has_tiers": false,
331
+ "has_ui": false,
332
+ "crosses_service_boundaries": false,
333
+ "holds_client_state": true,
334
+ "enforces_domain_rules": true,
335
+ "is_concurrent_async": true,
336
+ "owns_persistence": true,
337
+ "stateful_transitions": true,
338
+ "exposes_wire_protocol": false,
339
+ "ui_multi_screen": false,
340
+ "large_data_model": false,
341
+ "returns_caller_errors": true,
342
+ "module_specific_conventions": true,
343
+ "published_package": true,
344
+ "embedded_in_host": false,
345
+ "has_design_tradeoff": true,
346
+ "resolved_by": "claude-code/claude-sonnet-5-5 (host metadata; bootstrap questionnaire)",
347
+ "resolved_at": "2026-10-07T11:00:00Z",
348
+ "has_submodules": false,
349
+ "has_submodules_computed_by": "scripts/module_tree.py",
350
+ "has_submodules_computed_at": "2026-10-07T11:58:25Z"
351
+ }
352
+ }
353
+ ],
354
+ "contract_catalog": {
355
+ "index_path": "docs/architecture.md",
356
+ "definitions": {
357
+ "webex-core-sdk": {
358
+ "kind": "sdk",
359
+ "publication": "published",
360
+ "source_kind": "repository-path",
361
+ "source": "package.json",
362
+ "summary": "Published npm entry declared by main and devMain (src/index.js): the default WebexCore class, registerPlugin and registerInternalPlugin, the plugin base classes, Batcher, Page, WebexHttpError, the default config object, and re-exports of the child module surfaces. Per-export detail lives in the src module spec Public surface."
363
+ },
364
+ "webex-core-interceptors": {
365
+ "kind": "sdk",
366
+ "publication": "published",
367
+ "source_kind": "repository-path",
368
+ "source": "package.json",
369
+ "summary": "Sixteen request/response Interceptor subclasses re-exported by the package entry (auth, catalog-url, default-options, embargo, network-timing, payload-transformer, proxy, rate-limit, redirect, request-event, request-logger, request-timing, response-logger, user-agent, webex-tracking-id, webex-user-agent) plus the webexTrackingIdSequenceNumbers counter map. Native declaration: src/index.js (re-exported by the package entry point declared in package.json)."
370
+ },
371
+ "webex-core-credentials": {
372
+ "kind": "sdk",
373
+ "publication": "published",
374
+ "source_kind": "repository-path",
375
+ "source": "package.json",
376
+ "summary": "Credentials plugin, Token, grantErrors, filterScope and sortScope: OAuth supertoken and scoped user-token lifecycle, refresh, downscope, revoke and login/logout URL building. Native declaration: src/lib/credentials/index.js (re-exported by the package entry point declared in package.json)."
377
+ },
378
+ "webex-core-services": {
379
+ "kind": "sdk",
380
+ "publication": "published",
381
+ "source_kind": "repository-path",
382
+ "source": "package.json",
383
+ "summary": "v1 services plugin and its ServiceCatalog, ServiceRegistry, ServiceState, ServiceHost and ServiceUrl classes, plus the ServiceInterceptor, HostMapInterceptor and ServerErrorInterceptor: U2C catalog collection, name/URL resolution and host failover. Native declaration: src/lib/services/index.js (re-exported by the package entry point declared in package.json)."
384
+ },
385
+ "webex-core-services-v2": {
386
+ "kind": "sdk",
387
+ "publication": "published",
388
+ "source_kind": "repository-path",
389
+ "source": "package.json",
390
+ "summary": "Opt-in v2 services plugin: ServicesV2, ServiceCatalogV2 and ServiceDetail over the U2CV2 hostmap. Not registered by default; a host must register it with replace. Native declaration: src/lib/services-v2/index.ts (re-exported by the package entry point declared in package.json)."
391
+ },
392
+ "webex-core-storage": {
393
+ "kind": "sdk",
394
+ "publication": "published",
395
+ "source_kind": "repository-path",
396
+ "source": "package.json",
397
+ "summary": "persist and waitForValue decorators, makeWebexStore, makeWebexPluginStore, MemoryStoreAdapter, StorageError and NotFoundError: the pluggable bounded/unbounded storage layer. Native declaration: src/lib/storage/index.js (re-exported by the package entry point declared in package.json)."
398
+ },
399
+ "http-core-sdk": {
400
+ "kind": "sdk",
401
+ "publication": "published",
402
+ "source_kind": "external",
403
+ "source": "@webex/http-core workspace package; module spec packages/@webex/http-core/src/docs/README.md",
404
+ "summary": "Promise-based HTTP client, the Interceptor base class and the HttpError taxonomy that webex-core builds its request pipeline on."
405
+ },
406
+ "webex-common-js-api": {
407
+ "kind": "sdk",
408
+ "publication": "published",
409
+ "source_kind": "external",
410
+ "source": "@webex/common workspace package; module spec packages/@webex/common/src/docs/README.md",
411
+ "summary": "Shared SDK primitives (Exception, Defer, oneFlight, whileInFlight, make and related helpers) used across webex-core."
412
+ },
413
+ "common-timers-sdk": {
414
+ "kind": "sdk",
415
+ "publication": "published",
416
+ "source_kind": "external",
417
+ "source": "@webex/common-timers workspace package; module spec packages/@webex/common-timers/src/docs/README.md",
418
+ "summary": "Unref-ing timer primitives and the restartable Timer used for token expiry and refresh scheduling."
419
+ },
420
+ "storage-adapter-spec-suite": {
421
+ "kind": "sdk",
422
+ "publication": "published",
423
+ "source_kind": "external",
424
+ "source": "@webex/storage-adapter-spec workspace package; module spec packages/@webex/storage-adapter-spec/src/docs/README.md",
425
+ "summary": "Shared conformance suite that the storage unit test runs against MemoryStoreAdapter. Declared as a runtime dependency but imported only by tests."
426
+ },
427
+ "u2c-service": {
428
+ "kind": "rpc",
429
+ "publication": "published",
430
+ "source_kind": "external",
431
+ "source": "Webex U2C service-discovery HTTP API (hostmap endpoint configured by services.discovery.u2c in src/config.js)",
432
+ "summary": "External HTTP catalog API that returns service hostmaps; consumed by both services plugins."
433
+ },
434
+ "idbroker-oauth-service": {
435
+ "kind": "rpc",
436
+ "publication": "published",
437
+ "source_kind": "external",
438
+ "source": "Webex identity-broker OAuth HTTP API (token, revoke and authorize endpoints derived by src/credentials-config.js)",
439
+ "summary": "External OAuth/token HTTP API used by the credentials module for grants, refresh, downscope and revoke."
440
+ },
441
+ "ampersand-state-library": {
442
+ "kind": "sdk",
443
+ "publication": "published",
444
+ "source_kind": "external",
445
+ "source": "ampersand-state, ampersand-collection and ampersand-events (npm)",
446
+ "summary": "Third-party observable-state library that WebexCore, plugins, Token and the services models extend."
447
+ }
448
+ }
449
+ },
450
+ "spec_source_policy": {
451
+ "mode": "keep-separate",
452
+ "migrated_source_disposition": "retain",
453
+ "disposition_decided_by": "rsarika@cisco.com",
454
+ "disposition_decided_at": "2026-10-07T11:00:00Z",
455
+ "decided_by": "rsarika@cisco.com",
456
+ "decided_at": "2026-10-07T11:00:00Z",
457
+ "decision_record": "No prior intent or design spec exists in this package. README.md is a usage document and src/lib/services-v2/README.md is a three-line work-in-progress note; both are preserved byte-for-byte and used only as corroborating evidence, never routed as spec source. The read-only migration footprint probe found no prior Repo Annotation output and no AGENTS.md occupied the fixed target."
458
+ },
459
+ "spec_sources": [],
460
+ "spec_policy": {
461
+ "require_what_and_why": true,
462
+ "require_provenance": true,
463
+ "protected_specs": [
464
+ "src/docs/README.md",
465
+ "src/interceptors/docs/README.md",
466
+ "src/lib/credentials/docs/README.md",
467
+ "src/lib/services/docs/README.md",
468
+ "src/lib/services-v2/docs/README.md",
469
+ "src/lib/storage/docs/README.md"
470
+ ]
471
+ },
472
+ "validation": {
473
+ "generator_runtime": "claude-code",
474
+ "generator_model": "claude-sonnet-5-5",
475
+ "generator_run_id": "a636d1f4-e59a-4851-9359-1c4b7a1f75d1",
476
+ "generator_runtime_source": "host-metadata",
477
+ "minimum_independence": "different-runtime",
478
+ "blocking_severities": [
479
+ "Blocking"
480
+ ],
481
+ "validator_runtime": "use-codex",
482
+ "validator_runtime_source": "human-provided",
483
+ "runtime_fallback_tier": "different-runtime"
484
+ },
485
+ "layout": {
486
+ "sdd_root": ".sdd",
487
+ "docs_root": "docs",
488
+ "agent_entry_path": "AGENTS.md",
489
+ "standing_docs_root": "docs",
490
+ "spec_index_path": "docs/specs/README.md",
491
+ "module_docs_strategy": "source-local",
492
+ "module_docs_relative_path": "docs/README.md",
493
+ "module_docs_decision": {
494
+ "basis": "repo-standards-default",
495
+ "reason": "The default source-local route is used for every module, consistent with the sibling @webex packages. src already holds non-code Markdown (src/lib/services-v2/README.md) and the build/lint globs target js and ts sources only.",
496
+ "decided_by": "claude-code (bootstrap questionnaire)",
497
+ "decided_at": "2026-10-07T11:00:00Z"
498
+ },
499
+ "repo_context_decision": {
500
+ "path": ".repo-context.json",
501
+ "schema_path": "schemas/repo-context.schema.json",
502
+ "action": "create",
503
+ "schema_action": "create",
504
+ "reason": "Neither the operational context nor its schema exists in this package or at the monorepo root; both are created from the bundled Repo Standards schema and verified repository evidence.",
505
+ "decided_by": "claude-code (bootstrap questionnaire)",
506
+ "decided_at": "2026-10-07T11:00:00Z"
507
+ },
508
+ "artifact_decisions": [
509
+ {
510
+ "path": "docs/service.md",
511
+ "action": "omit",
512
+ "reason": "The package is a published library, not a deployable service; package.json declares no container, deployment manifest or start command.",
513
+ "decided_by": "claude-code (code evidence)",
514
+ "decided_at": "2026-10-07T11:00:00Z"
515
+ },
516
+ {
517
+ "path": "mkdocs.yml",
518
+ "action": "omit",
519
+ "reason": "No package-level documentation build exists; documentation publishing is owned by the surrounding workspace.",
520
+ "decided_by": "claude-code (code evidence)",
521
+ "decided_at": "2026-10-07T11:00:00Z"
522
+ },
523
+ {
524
+ "path": "api-specs/openapi.yaml",
525
+ "action": "omit",
526
+ "reason": "The package serves no HTTP routes; its published contracts are npm package exports described by the webex-core-* contracts.",
527
+ "decided_by": "claude-code (code evidence)",
528
+ "decided_at": "2026-10-07T11:00:00Z"
529
+ },
530
+ {
531
+ "path": "SECURITY.md",
532
+ "action": "omit",
533
+ "reason": "No SECURITY.md exists anywhere in this repository; a package-local copy would invent policy.",
534
+ "decided_by": "claude-code (code evidence)",
535
+ "decided_at": "2026-10-07T11:00:00Z"
536
+ },
537
+ {
538
+ "path": "CONTRIBUTING.md",
539
+ "action": "omit",
540
+ "reason": "Contribution instructions are owned at the monorepo root.",
541
+ "decided_by": "claude-code (code evidence)",
542
+ "decided_at": "2026-10-07T11:00:00Z"
543
+ },
544
+ {
545
+ "path": "CHANGELOG.md",
546
+ "action": "omit",
547
+ "reason": "Changelog generation is owned at the monorepo root.",
548
+ "decided_by": "claude-code (code evidence)",
549
+ "decided_at": "2026-10-07T11:00:00Z"
550
+ },
551
+ {
552
+ "path": "CTO_CHECKLIST.yml",
553
+ "action": "omit",
554
+ "reason": "The CTO readiness workflow applies to deployable services; this package is a library.",
555
+ "decided_by": "claude-code (code evidence)",
556
+ "decided_at": "2026-10-07T11:00:00Z"
557
+ },
558
+ {
559
+ "path": "schemas/cto-checklist.schema.json",
560
+ "action": "omit",
561
+ "reason": "Selected together with CTO_CHECKLIST.yml, which is omitted.",
562
+ "decided_by": "claude-code (code evidence)",
563
+ "decided_at": "2026-10-07T11:00:00Z"
564
+ }
565
+ ],
566
+ "template_roots": {
567
+ "canonical": ".sdd/templates/repo-standards"
568
+ },
569
+ "repo_skills_root": ".sdd/skills",
570
+ "contract_index_path": "docs/architecture.md"
571
+ },
572
+ "substrate": {
573
+ "source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
574
+ "consumed": [
575
+ "the repository-root .sdd/templates/repo-standards snapshot, shared rather than copied into this package by owner decision",
576
+ "@webex/eslint-config-legacy via .eslintrc.js",
577
+ "@webex/babel-config-legacy via babel.config.js",
578
+ "@webex/jest-config-legacy via jest.config.js",
579
+ "@webex/legacy-tools build and test runner via package.json",
580
+ "package README.md as repository-owned usage evidence"
581
+ ],
582
+ "compliance_tier": "baseline"
583
+ },
584
+ "section_profiles": {
585
+ "repo": {
586
+ "owns_datastore": false,
587
+ "holds_client_state": true,
588
+ "components_interact": true,
589
+ "domain_data_across_components": false,
590
+ "caches_data": true,
591
+ "observability_convention": true,
592
+ "deploys_to_infra": false,
593
+ "shared_base_libs": true,
594
+ "is_monorepo": true,
595
+ "multi_platform": true,
596
+ "published_package": true,
597
+ "embedded_in_host": true,
598
+ "cross_repo_deps_material": false,
599
+ "security_arch_warranted": true,
600
+ "exposes_commands_or_artifacts": false
601
+ },
602
+ "resolved_by": "claude-code/claude-sonnet-5-5 (host metadata; bootstrap questionnaire)",
603
+ "resolved_at": "2026-10-07T11:00:00Z"
604
+ }
605
+ }