@webex/webex-core 3.12.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.repo-context.json +653 -0
- package/.sdd/manifest.json +605 -0
- package/AGENTS.md +209 -0
- package/README.md +5 -2
- package/dist/config.js +45 -0
- package/dist/config.js.map +1 -1
- package/dist/credentials-config.js +12 -0
- package/dist/credentials-config.js.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/catalog-url.js +87 -0
- package/dist/interceptors/catalog-url.js.map +1 -0
- package/dist/interceptors/payload-transformer.js +25 -4
- package/dist/interceptors/payload-transformer.js.map +1 -1
- package/dist/lib/batcher.js +23 -7
- package/dist/lib/batcher.js.map +1 -1
- package/dist/lib/credentials/credentials.js +103 -4
- package/dist/lib/credentials/credentials.js.map +1 -1
- package/dist/lib/credentials/token.js +1 -1
- package/dist/lib/domains.js +90 -0
- package/dist/lib/domains.js.map +1 -0
- package/dist/lib/services/service-catalog.js +108 -18
- package/dist/lib/services/service-catalog.js.map +1 -1
- package/dist/lib/services/services.js +242 -38
- package/dist/lib/services/services.js.map +1 -1
- package/dist/lib/services-v2/service-catalog.js +14 -13
- package/dist/lib/services-v2/service-catalog.js.map +1 -1
- package/dist/lib/services-v2/services-v2.js +255 -42
- package/dist/lib/services-v2/services-v2.js.map +1 -1
- package/dist/lib/static-asset-loader.js +153 -0
- package/dist/lib/static-asset-loader.js.map +1 -0
- package/dist/plugins/logger.js +1 -1
- package/dist/webex-core.js +11 -3
- package/dist/webex-core.js.map +1 -1
- package/docs/adr/index.md +32 -0
- package/docs/architecture.md +298 -0
- package/docs/getting-started.md +96 -0
- package/docs/index.md +55 -0
- package/docs/specs/README.md +76 -0
- package/package.json +13 -13
- package/schemas/repo-context.schema.json +796 -0
- package/src/config.js +49 -0
- package/src/credentials-config.js +13 -0
- package/src/docs/README.md +732 -0
- package/src/index.js +2 -0
- package/src/interceptors/catalog-url.js +66 -0
- package/src/interceptors/docs/README.md +658 -0
- package/src/interceptors/payload-transformer.js +23 -1
- package/src/lib/batcher.js +25 -10
- package/src/lib/credentials/credentials.js +93 -3
- package/src/lib/credentials/docs/README.md +846 -0
- package/src/lib/domains.ts +94 -0
- package/src/lib/services/docs/README.md +737 -0
- package/src/lib/services/service-catalog.js +112 -16
- package/src/lib/services/services.js +220 -22
- package/src/lib/services-v2/docs/README.md +751 -0
- package/src/lib/services-v2/service-catalog.ts +16 -12
- package/src/lib/services-v2/services-v2.ts +234 -24
- package/src/lib/static-asset-loader.ts +128 -0
- package/src/lib/storage/docs/README.md +646 -0
- package/src/webex-core.js +8 -0
- package/test/fixtures/activation-email.ts +22 -0
- package/test/integration/spec/services/services.js +183 -112
- package/test/integration/spec/services-v2/services-v2.js +169 -98
- package/test/unit/spec/credentials/credentials.js +247 -3
- package/test/unit/spec/interceptors/auth.js +56 -0
- package/test/unit/spec/interceptors/catalog-url.js +224 -0
- package/test/unit/spec/interceptors/payload-transformer.js +119 -1
- package/test/unit/spec/lib/batcher.js +56 -0
- package/test/unit/spec/services/service-catalog.js +368 -11
- package/test/unit/spec/services/services.js +466 -2
- package/test/unit/spec/services-v2/service-catalog.ts +134 -11
- package/test/unit/spec/services-v2/services-v2.ts +588 -0
- package/test/unit/spec/static-asset-loader.ts +224 -0
- package/test/unit/spec/webex-core.js +77 -1
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schemas/repo-context.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"repository": {
|
|
5
|
+
"name": "@webex/webex-core",
|
|
6
|
+
"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."
|
|
7
|
+
},
|
|
8
|
+
"commands": {
|
|
9
|
+
"install": "yarn install",
|
|
10
|
+
"compile": "yarn workspace @webex/webex-core build:src",
|
|
11
|
+
"build": "yarn workspace @webex/webex-core build",
|
|
12
|
+
"unit-test": "yarn workspace @webex/webex-core test:unit",
|
|
13
|
+
"integration-test": "yarn workspace @webex/webex-core test:integration",
|
|
14
|
+
"lint": "yarn workspace @webex/webex-core test:style",
|
|
15
|
+
"deploy": "yarn workspace @webex/webex-core deploy:npm",
|
|
16
|
+
"browser-test": "yarn workspace @webex/webex-core test:browser",
|
|
17
|
+
"test-all": "yarn workspace @webex/webex-core test"
|
|
18
|
+
},
|
|
19
|
+
"public_interfaces": [
|
|
20
|
+
{
|
|
21
|
+
"name": "package exports",
|
|
22
|
+
"kind": "package_export",
|
|
23
|
+
"source": "package.json",
|
|
24
|
+
"entrypoints": [
|
|
25
|
+
"default (WebexCore)",
|
|
26
|
+
"registerPlugin",
|
|
27
|
+
"registerInternalPlugin",
|
|
28
|
+
"WebexPlugin",
|
|
29
|
+
"StatelessWebexPlugin",
|
|
30
|
+
"Batcher",
|
|
31
|
+
"Page",
|
|
32
|
+
"WebexHttpError",
|
|
33
|
+
"config",
|
|
34
|
+
"Credentials",
|
|
35
|
+
"Token",
|
|
36
|
+
"Services",
|
|
37
|
+
"ServicesV2",
|
|
38
|
+
"makeWebexStore",
|
|
39
|
+
"persist",
|
|
40
|
+
"MemoryStoreAdapter",
|
|
41
|
+
"AuthInterceptor"
|
|
42
|
+
],
|
|
43
|
+
"audience": "About 47 workspace packages inside the Webex JS SDK plus external npm consumers of @webex/webex-core.",
|
|
44
|
+
"notes": "Verify names against src/index.js and the compatibility commitments against the Public surface sections of the module specifications."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "package scripts",
|
|
48
|
+
"kind": "npm_scripts",
|
|
49
|
+
"source": "package.json",
|
|
50
|
+
"entrypoints": [
|
|
51
|
+
"build",
|
|
52
|
+
"build:src",
|
|
53
|
+
"test:unit",
|
|
54
|
+
"test:integration",
|
|
55
|
+
"test:browser",
|
|
56
|
+
"test:style",
|
|
57
|
+
"deploy:npm"
|
|
58
|
+
],
|
|
59
|
+
"audience": "Contributors and CI jobs operating on this package from the workspace root.",
|
|
60
|
+
"notes": "The aggregate test script chains lint, unit, integration and browser tiers and needs provisioned test users and live services."
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"source_of_truth": [
|
|
64
|
+
{
|
|
65
|
+
"surface": "plugin host and export surface",
|
|
66
|
+
"paths": [
|
|
67
|
+
"src/index.js",
|
|
68
|
+
"src/webex-core.js",
|
|
69
|
+
"src/webex-internal-core.js",
|
|
70
|
+
"src/config.js"
|
|
71
|
+
],
|
|
72
|
+
"generated_artifacts": [
|
|
73
|
+
"dist"
|
|
74
|
+
],
|
|
75
|
+
"refresh_with": [
|
|
76
|
+
"yarn workspace @webex/webex-core build:src"
|
|
77
|
+
],
|
|
78
|
+
"validate_with": [
|
|
79
|
+
"yarn workspace @webex/webex-core test:unit",
|
|
80
|
+
"yarn workspace @webex/webex-core test:style"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"surface": "interceptors",
|
|
85
|
+
"paths": [
|
|
86
|
+
"src/interceptors"
|
|
87
|
+
],
|
|
88
|
+
"generated_artifacts": [
|
|
89
|
+
"dist"
|
|
90
|
+
],
|
|
91
|
+
"refresh_with": [
|
|
92
|
+
"yarn workspace @webex/webex-core build:src"
|
|
93
|
+
],
|
|
94
|
+
"validate_with": [
|
|
95
|
+
"yarn workspace @webex/webex-core test:unit"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"surface": "credentials",
|
|
100
|
+
"paths": [
|
|
101
|
+
"src/lib/credentials",
|
|
102
|
+
"src/credentials-config.js"
|
|
103
|
+
],
|
|
104
|
+
"generated_artifacts": [
|
|
105
|
+
"dist"
|
|
106
|
+
],
|
|
107
|
+
"refresh_with": [
|
|
108
|
+
"yarn workspace @webex/webex-core build:src"
|
|
109
|
+
],
|
|
110
|
+
"validate_with": [
|
|
111
|
+
"yarn workspace @webex/webex-core test:unit"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"surface": "service discovery",
|
|
116
|
+
"paths": [
|
|
117
|
+
"src/lib/services",
|
|
118
|
+
"src/lib/interceptors",
|
|
119
|
+
"src/lib/services-v2"
|
|
120
|
+
],
|
|
121
|
+
"generated_artifacts": [
|
|
122
|
+
"dist"
|
|
123
|
+
],
|
|
124
|
+
"refresh_with": [
|
|
125
|
+
"yarn workspace @webex/webex-core build:src"
|
|
126
|
+
],
|
|
127
|
+
"validate_with": [
|
|
128
|
+
"yarn workspace @webex/webex-core test:unit"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"surface": "storage layer",
|
|
133
|
+
"paths": [
|
|
134
|
+
"src/lib/storage"
|
|
135
|
+
],
|
|
136
|
+
"generated_artifacts": [
|
|
137
|
+
"dist"
|
|
138
|
+
],
|
|
139
|
+
"refresh_with": [
|
|
140
|
+
"yarn workspace @webex/webex-core build:src"
|
|
141
|
+
],
|
|
142
|
+
"validate_with": [
|
|
143
|
+
"yarn workspace @webex/webex-core test:unit"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"surface": "module specifications",
|
|
148
|
+
"paths": [
|
|
149
|
+
"src/docs/README.md",
|
|
150
|
+
"src/interceptors/docs/README.md",
|
|
151
|
+
"src/lib/credentials/docs/README.md",
|
|
152
|
+
"src/lib/services/docs/README.md",
|
|
153
|
+
"src/lib/services-v2/docs/README.md",
|
|
154
|
+
"src/lib/storage/docs/README.md"
|
|
155
|
+
],
|
|
156
|
+
"generated_artifacts": [],
|
|
157
|
+
"refresh_with": [],
|
|
158
|
+
"validate_with": [
|
|
159
|
+
"Run the active Repo Annotation installation's spec-drift-changed skill on the current diff"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"surface": "package standing documentation",
|
|
164
|
+
"paths": [
|
|
165
|
+
"docs/index.md",
|
|
166
|
+
"docs/architecture.md",
|
|
167
|
+
"docs/getting-started.md",
|
|
168
|
+
"docs/specs/README.md",
|
|
169
|
+
"docs/adr/index.md",
|
|
170
|
+
"AGENTS.md"
|
|
171
|
+
],
|
|
172
|
+
"generated_artifacts": [],
|
|
173
|
+
"refresh_with": [],
|
|
174
|
+
"validate_with": [
|
|
175
|
+
"Run the active Repo Annotation installation's check_spec_index.py and check_repo_context.py against this package"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"surface": "unit test suite",
|
|
180
|
+
"paths": [
|
|
181
|
+
"test/unit/spec"
|
|
182
|
+
],
|
|
183
|
+
"generated_artifacts": [],
|
|
184
|
+
"refresh_with": [],
|
|
185
|
+
"validate_with": [
|
|
186
|
+
"yarn workspace @webex/webex-core test:unit"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"surface": "SDD routing and coverage state",
|
|
191
|
+
"paths": [
|
|
192
|
+
".sdd/manifest.json"
|
|
193
|
+
],
|
|
194
|
+
"generated_artifacts": [],
|
|
195
|
+
"refresh_with": [],
|
|
196
|
+
"validate_with": [
|
|
197
|
+
"Run the active Repo Annotation installation's check_manifest.py against this package"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"generated_artifacts": [
|
|
202
|
+
{
|
|
203
|
+
"path": ".sdd/templates/repo-standards/template-map.json",
|
|
204
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
205
|
+
"refresh_with": "Run the active Repo Annotation installation's setup-skills.sh against the workspace root; the snapshot is shared at the repository root and not copied into this package"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"path": "dist",
|
|
209
|
+
"generated_from": "src",
|
|
210
|
+
"refresh_with": "yarn workspace @webex/webex-core build:src"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"validation_matrix": [
|
|
214
|
+
{
|
|
215
|
+
"paths": [
|
|
216
|
+
"src"
|
|
217
|
+
],
|
|
218
|
+
"minimum": [
|
|
219
|
+
"yarn workspace @webex/webex-core test:unit"
|
|
220
|
+
],
|
|
221
|
+
"recommended": [
|
|
222
|
+
"yarn workspace @webex/webex-core test:style",
|
|
223
|
+
"yarn workspace @webex/webex-core build:src"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"paths": [
|
|
228
|
+
"test/unit/spec"
|
|
229
|
+
],
|
|
230
|
+
"minimum": [
|
|
231
|
+
"yarn workspace @webex/webex-core test:unit"
|
|
232
|
+
],
|
|
233
|
+
"recommended": []
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"paths": [
|
|
237
|
+
"package.json",
|
|
238
|
+
"jest.config.js",
|
|
239
|
+
"babel.config.js",
|
|
240
|
+
".eslintrc.js"
|
|
241
|
+
],
|
|
242
|
+
"minimum": [
|
|
243
|
+
"yarn workspace @webex/webex-core test:unit"
|
|
244
|
+
],
|
|
245
|
+
"recommended": [
|
|
246
|
+
"yarn workspace @webex/webex-core test:style",
|
|
247
|
+
"yarn workspace @webex/webex-core build:src"
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"paths": [
|
|
252
|
+
"src/docs/README.md",
|
|
253
|
+
"src/interceptors/docs/README.md",
|
|
254
|
+
"src/lib/credentials/docs/README.md",
|
|
255
|
+
"src/lib/services/docs/README.md",
|
|
256
|
+
"src/lib/services-v2/docs/README.md",
|
|
257
|
+
"src/lib/storage/docs/README.md",
|
|
258
|
+
"docs",
|
|
259
|
+
"AGENTS.md",
|
|
260
|
+
".sdd/manifest.json"
|
|
261
|
+
],
|
|
262
|
+
"minimum": [
|
|
263
|
+
"Run the active Repo Annotation installation's check_manifest.py, check_spec_index.py, and check_repo_context.py against this package"
|
|
264
|
+
],
|
|
265
|
+
"recommended": [
|
|
266
|
+
"Run the active Repo Annotation installation's spec-drift-changed skill on the current diff"
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"change_impact": [
|
|
271
|
+
{
|
|
272
|
+
"paths": [
|
|
273
|
+
"src/index.js",
|
|
274
|
+
"src/webex-core.js",
|
|
275
|
+
"src/config.js"
|
|
276
|
+
],
|
|
277
|
+
"affects": [
|
|
278
|
+
"@webex/webex-core consumers: every workspace plugin that registers with WebexCore",
|
|
279
|
+
"@webex/webex",
|
|
280
|
+
"@webex/plugin-meetings",
|
|
281
|
+
"@webex/internal-plugin-mercury",
|
|
282
|
+
"@webex/internal-plugin-device",
|
|
283
|
+
"external npm consumers of @webex/webex-core"
|
|
284
|
+
],
|
|
285
|
+
"refresh_with": [
|
|
286
|
+
"yarn workspace @webex/webex-core build:src"
|
|
287
|
+
],
|
|
288
|
+
"validate_with": [
|
|
289
|
+
"yarn workspace @webex/webex-core test:unit"
|
|
290
|
+
],
|
|
291
|
+
"avoid_direct_edits": [
|
|
292
|
+
"dist"
|
|
293
|
+
],
|
|
294
|
+
"notes": "Any change to an exported name, event name, config key or the interceptor order is a published surface change; update the owning module specification in the same commit."
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"paths": [
|
|
298
|
+
"src/lib/credentials",
|
|
299
|
+
"src/credentials-config.js"
|
|
300
|
+
],
|
|
301
|
+
"affects": [
|
|
302
|
+
"@webex/plugin-authorization-browser",
|
|
303
|
+
"@webex/plugin-authorization-node",
|
|
304
|
+
"@webex/internal-plugin-metrics",
|
|
305
|
+
"@webex/contact-center"
|
|
306
|
+
],
|
|
307
|
+
"refresh_with": [
|
|
308
|
+
"yarn workspace @webex/webex-core build:src"
|
|
309
|
+
],
|
|
310
|
+
"validate_with": [
|
|
311
|
+
"yarn workspace @webex/webex-core test:unit"
|
|
312
|
+
],
|
|
313
|
+
"avoid_direct_edits": [
|
|
314
|
+
"dist"
|
|
315
|
+
],
|
|
316
|
+
"notes": "Tokens are persisted as plaintext; treat logging or persistence changes as security-sensitive."
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"paths": [
|
|
320
|
+
"src/lib/storage"
|
|
321
|
+
],
|
|
322
|
+
"affects": [
|
|
323
|
+
"@webex/storage-adapter-local-storage",
|
|
324
|
+
"@webex/storage-adapter-session-storage",
|
|
325
|
+
"@webex/storage-adapter-local-forage",
|
|
326
|
+
"@webex/internal-plugin-device",
|
|
327
|
+
"@webex/internal-plugin-user"
|
|
328
|
+
],
|
|
329
|
+
"refresh_with": [
|
|
330
|
+
"yarn workspace @webex/webex-core build:src"
|
|
331
|
+
],
|
|
332
|
+
"validate_with": [
|
|
333
|
+
"yarn workspace @webex/webex-core test:unit"
|
|
334
|
+
],
|
|
335
|
+
"avoid_direct_edits": [
|
|
336
|
+
"dist"
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"paths": [
|
|
341
|
+
".sdd/manifest.json"
|
|
342
|
+
],
|
|
343
|
+
"affects": [
|
|
344
|
+
"docs/specs/README.md",
|
|
345
|
+
"docs/architecture.md",
|
|
346
|
+
"src/docs/README.md",
|
|
347
|
+
"src/interceptors/docs/README.md",
|
|
348
|
+
"src/lib/credentials/docs/README.md",
|
|
349
|
+
"src/lib/services/docs/README.md",
|
|
350
|
+
"src/lib/services-v2/docs/README.md",
|
|
351
|
+
"src/lib/storage/docs/README.md"
|
|
352
|
+
],
|
|
353
|
+
"refresh_with": [],
|
|
354
|
+
"validate_with": [
|
|
355
|
+
"Run the active Repo Annotation installation's check_manifest.py and check_spec_index.py against this package"
|
|
356
|
+
],
|
|
357
|
+
"avoid_direct_edits": [
|
|
358
|
+
".sdd/templates/repo-standards"
|
|
359
|
+
],
|
|
360
|
+
"notes": "The manifest is authoritative for module routing, coverage state, contracts and artifact decisions; the specification registry is its human-readable mirror."
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"paths": [
|
|
364
|
+
"package.json"
|
|
365
|
+
],
|
|
366
|
+
"affects": [
|
|
367
|
+
".repo-context.json",
|
|
368
|
+
".sdd/manifest.json",
|
|
369
|
+
"docs/getting-started.md",
|
|
370
|
+
"AGENTS.md"
|
|
371
|
+
],
|
|
372
|
+
"refresh_with": [],
|
|
373
|
+
"validate_with": [
|
|
374
|
+
"Run the active Repo Annotation installation's check_repo_context.py against this package"
|
|
375
|
+
],
|
|
376
|
+
"avoid_direct_edits": [
|
|
377
|
+
"dist"
|
|
378
|
+
],
|
|
379
|
+
"notes": "Command strings are duplicated between the manifest and this context by contract and must stay identical."
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"glossary": [
|
|
383
|
+
{
|
|
384
|
+
"term": "supertoken",
|
|
385
|
+
"definition": "The user's top-level OAuth token set from which scoped user tokens are downscoped.",
|
|
386
|
+
"notes": "Held by the credentials module and persisted through the storage layer."
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"term": "U2C",
|
|
390
|
+
"definition": "The service-discovery API that returns the hostmap of Webex service URLs.",
|
|
391
|
+
"notes": "The discovery URL is configured in src/config.js."
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"term": "catalog",
|
|
395
|
+
"definition": "The service-name to host mapping the services plugins hold, grouped as preauth, postauth, signin and discovery.",
|
|
396
|
+
"notes": "Lookup precedence differs between name and URL lookups in v1."
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"term": "interceptor",
|
|
400
|
+
"definition": "A request/response hook run in a fixed chain assembled by WebexCore.",
|
|
401
|
+
"notes": "config.interceptors replaces the whole chain."
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"term": "bounded and unbounded storage",
|
|
405
|
+
"definition": "The two store instances configured by storage.boundedAdapter and storage.unboundedAdapter.",
|
|
406
|
+
"notes": "@persist writes only to the bounded store."
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"evidence_rules": [
|
|
410
|
+
{
|
|
411
|
+
"claim_category": "command_name",
|
|
412
|
+
"sources": [
|
|
413
|
+
"package.json"
|
|
414
|
+
],
|
|
415
|
+
"requirement": "Emit a command only when its script exists in package.json and uses the workspace-scoped invocation.",
|
|
416
|
+
"notes": "The aggregate test script needs live services and test users; do not present it as a quick check."
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"claim_category": "import_path",
|
|
420
|
+
"sources": [
|
|
421
|
+
"src/index.js",
|
|
422
|
+
"package.json"
|
|
423
|
+
],
|
|
424
|
+
"requirement": "Emit an export name only when it is re-exported by src/index.js and reachable through the entry point declared by main or devMain."
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"claim_category": "behavior_claim",
|
|
428
|
+
"sources": [
|
|
429
|
+
"src",
|
|
430
|
+
"test/unit/spec"
|
|
431
|
+
],
|
|
432
|
+
"requirement": "Ground every behavior claim in the implementation and state separately whether a test observes it.",
|
|
433
|
+
"notes": "Commit history is not acceptable rationale evidence for this package."
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"claim_category": "placeholder_token",
|
|
437
|
+
"sources": [
|
|
438
|
+
".sdd/templates/repo-standards/template-map.json"
|
|
439
|
+
],
|
|
440
|
+
"requirement": "Never ship a template placeholder in a generated document; replace it with verified repository evidence or surface the gap as a blocking question."
|
|
441
|
+
}
|
|
442
|
+
],
|
|
443
|
+
"negative_guidance": [
|
|
444
|
+
{
|
|
445
|
+
"rule": "Do not reorder the imports in src/index.js.",
|
|
446
|
+
"why": "Services and credentials must initialize inside core before consumer plugins register."
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"rule": "Do not treat the README storage example as current.",
|
|
450
|
+
"why": "It documents storage.adapter and webex.storage, which the code does not implement; the code uses boundedAdapter/unboundedAdapter."
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"rule": "Do not assume services-v2 is active.",
|
|
454
|
+
"why": "It is exported but registered only when a host calls registerInternalPlugin with replace."
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"rule": "Do not log or persist tokens in new ways.",
|
|
458
|
+
"why": "Tokens are already persisted as plaintext JSON; every additional sink widens exposure."
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"rule": "Do not cite commit or pull-request history as rationale for current behavior.",
|
|
462
|
+
"why": "The owner directed that onboarding evidence come from the working tree only."
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"rule": "Do not publish a Repo Standards template out of .sdd/templates into docs.",
|
|
466
|
+
"why": "Authoring templates stay hidden; only instantiated, repository-grounded documents belong in the visible documentation tree."
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"confidence_policy": {
|
|
470
|
+
"high": {
|
|
471
|
+
"action": "update",
|
|
472
|
+
"expectation": "The claim is backed by source and tests and the affected specification sections are updated in the same change."
|
|
473
|
+
},
|
|
474
|
+
"medium": {
|
|
475
|
+
"action": "narrow-scope",
|
|
476
|
+
"expectation": "Implementation evidence exists but no test observes the behavior. Record the gap in the Verification section rather than asserting verified coverage."
|
|
477
|
+
},
|
|
478
|
+
"low": {
|
|
479
|
+
"action": "noop",
|
|
480
|
+
"expectation": "Neither code nor tests establish the fact. Stop and ask the package owner; do not fall back to commit history or a plausible default."
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"repository_topology": {
|
|
484
|
+
"main_entrypoints": [
|
|
485
|
+
{
|
|
486
|
+
"name": "package entry point",
|
|
487
|
+
"path": "src/index.js",
|
|
488
|
+
"purpose": "Barrel declaring the entire public surface and loading the core plugins in a fixed order.",
|
|
489
|
+
"notes": "Workspace consumers resolve it through devMain; published consumers resolve dist through main."
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
"workspace_packages": [
|
|
493
|
+
{
|
|
494
|
+
"name": "@webex/webex-core",
|
|
495
|
+
"paths": [
|
|
496
|
+
"package.json"
|
|
497
|
+
],
|
|
498
|
+
"notes": "One published library package inside the Webex JS SDK yarn workspace."
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
"source_surfaces": [
|
|
502
|
+
{
|
|
503
|
+
"name": "module source",
|
|
504
|
+
"paths": [
|
|
505
|
+
"src"
|
|
506
|
+
],
|
|
507
|
+
"notes": "Root module plus interceptors, credentials, services, services-v2 and storage children."
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "tests",
|
|
511
|
+
"paths": [
|
|
512
|
+
"test/unit",
|
|
513
|
+
"test/integration",
|
|
514
|
+
"test/fixtures"
|
|
515
|
+
],
|
|
516
|
+
"notes": "Unit tests mirror the src layout; integration tests need test users and live services."
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "inherited configuration",
|
|
520
|
+
"paths": [
|
|
521
|
+
"jest.config.js",
|
|
522
|
+
"babel.config.js",
|
|
523
|
+
".eslintrc.js",
|
|
524
|
+
"process"
|
|
525
|
+
],
|
|
526
|
+
"notes": "Re-export shared workspace configuration; process is a browser shim."
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
"generated_surfaces": [
|
|
530
|
+
{
|
|
531
|
+
"name": "Repo Standards template snapshot",
|
|
532
|
+
"paths": [
|
|
533
|
+
".sdd/templates/repo-standards"
|
|
534
|
+
],
|
|
535
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
536
|
+
"refresh_with": "Run the active Repo Annotation installation's setup-skills.sh against the workspace root",
|
|
537
|
+
"notes": "Shared at the workspace root and deliberately not copied into this package."
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "build output",
|
|
541
|
+
"paths": [
|
|
542
|
+
"dist"
|
|
543
|
+
],
|
|
544
|
+
"generated_from": "src",
|
|
545
|
+
"refresh_with": "yarn workspace @webex/webex-core build:src",
|
|
546
|
+
"notes": "Ignored by version control and never edited directly."
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
"sync_paths": [
|
|
550
|
+
{
|
|
551
|
+
"source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
552
|
+
"targets": [
|
|
553
|
+
".sdd/templates/repo-standards"
|
|
554
|
+
],
|
|
555
|
+
"mechanism": "Run the active Repo Annotation installation's setup-skills.sh against the workspace root",
|
|
556
|
+
"notes": "The snapshot is checksum-verified against the bundled upstream inventory before it is applied."
|
|
557
|
+
}
|
|
558
|
+
],
|
|
559
|
+
"validation_entrypoints": [
|
|
560
|
+
{
|
|
561
|
+
"name": "unit tests",
|
|
562
|
+
"command": "yarn workspace @webex/webex-core test:unit",
|
|
563
|
+
"scope": "Interceptors, credentials, services, storage and plugin-host behavior.",
|
|
564
|
+
"notes": "Coverage collection is disabled by the resolved jest configuration, so no threshold gates this package."
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"name": "lint",
|
|
568
|
+
"command": "yarn workspace @webex/webex-core test:style",
|
|
569
|
+
"scope": "ESLint over src, using the shared workspace rule set."
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "build",
|
|
573
|
+
"command": "yarn workspace @webex/webex-core build:src",
|
|
574
|
+
"scope": "Transpilation of js and ts sources for the published artifact."
|
|
575
|
+
}
|
|
576
|
+
]
|
|
577
|
+
},
|
|
578
|
+
"surface_owners": [
|
|
579
|
+
{
|
|
580
|
+
"surface": "plugin host, interceptors, credentials, services and storage",
|
|
581
|
+
"owner": "Cisco Webex for Developers",
|
|
582
|
+
"edit_boundary": "A change to an exported surface must update the owning module specification in the same commit."
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"surface": "module specifications and standing documentation",
|
|
586
|
+
"owner": "Cisco Webex for Developers",
|
|
587
|
+
"edit_boundary": "Generated from the Repo Standards templates and routed by .sdd/manifest.json. Edit generated documents in place; never edit the hidden templates."
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"surface": "build, lint, and test configuration",
|
|
591
|
+
"owner": "Webex JS SDK workspace",
|
|
592
|
+
"edit_boundary": "Owned by the shared @webex legacy config packages; change the shared configuration instead."
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"surface": "release, changelog, contribution policy, and security policy",
|
|
596
|
+
"owner": "Webex JS SDK workspace root",
|
|
597
|
+
"edit_boundary": "Not owned by this package. It intentionally ships no CHANGELOG.md, CONTRIBUTING.md, or SECURITY.md."
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
"do_not_edit": [
|
|
601
|
+
"dist",
|
|
602
|
+
".sdd/templates/repo-standards"
|
|
603
|
+
],
|
|
604
|
+
"marker_scopes": {
|
|
605
|
+
"sdd-generated-metadata": [
|
|
606
|
+
"AGENTS.md",
|
|
607
|
+
"docs/index.md",
|
|
608
|
+
"docs/architecture.md",
|
|
609
|
+
"docs/getting-started.md",
|
|
610
|
+
"docs/specs/README.md",
|
|
611
|
+
"docs/adr/index.md",
|
|
612
|
+
"src/docs/README.md",
|
|
613
|
+
"src/interceptors/docs/README.md",
|
|
614
|
+
"src/lib/credentials/docs/README.md",
|
|
615
|
+
"src/lib/services/docs/README.md",
|
|
616
|
+
"src/lib/services-v2/docs/README.md",
|
|
617
|
+
"src/lib/storage/docs/README.md"
|
|
618
|
+
]
|
|
619
|
+
},
|
|
620
|
+
"fallback_rules": [
|
|
621
|
+
"When code and this context disagree, the code wins; correct the context and the affected specification sections in the same change.",
|
|
622
|
+
"When a fact cannot be established from source, tests or package.json, stop and ask the package owner rather than inferring it from commit history.",
|
|
623
|
+
"When a required command is missing, say so and stop; do not substitute a plausible alternative.",
|
|
624
|
+
"When a change would alter the published export surface, treat it as breaking until a dependent-package review proves otherwise."
|
|
625
|
+
],
|
|
626
|
+
"downstream_context_pack": {
|
|
627
|
+
"required_human_surfaces": [
|
|
628
|
+
"README.md",
|
|
629
|
+
"docs/index.md",
|
|
630
|
+
"docs/getting-started.md",
|
|
631
|
+
"docs/architecture.md"
|
|
632
|
+
],
|
|
633
|
+
"required_agent_operational_surfaces": [
|
|
634
|
+
"AGENTS.md",
|
|
635
|
+
"docs/specs/README.md",
|
|
636
|
+
"src/docs/README.md"
|
|
637
|
+
],
|
|
638
|
+
"required_machine_readable_surface": ".repo-context.json",
|
|
639
|
+
"recommended_machine_readable_sections": [
|
|
640
|
+
"public_interfaces",
|
|
641
|
+
"source_of_truth",
|
|
642
|
+
"generated_artifacts",
|
|
643
|
+
"validation_matrix",
|
|
644
|
+
"change_impact",
|
|
645
|
+
"glossary",
|
|
646
|
+
"evidence_rules",
|
|
647
|
+
"negative_guidance",
|
|
648
|
+
"confidence_policy",
|
|
649
|
+
"repository_topology",
|
|
650
|
+
"surface_owners"
|
|
651
|
+
]
|
|
652
|
+
}
|
|
653
|
+
}
|