webex-node 3.13.0-next.1 → 3.13.0-next.11
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 +403 -0
- package/.sdd/manifest.json +361 -0
- package/AGENTS.md +182 -0
- package/dist/webex-node.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +93 -0
- package/docs/adr/index.md +22 -0
- package/docs/architecture.md +244 -0
- package/docs/getting-started.md +118 -0
- package/docs/index.md +46 -0
- package/docs/specs/README.md +67 -0
- package/package.json +27 -27
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +357 -0
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schemas/repo-context.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"repository": {
|
|
5
|
+
"name": "webex-node",
|
|
6
|
+
"purpose": "Node.js build of the Webex JS SDK. Loading the package installs @babel/polyfill when no polyfill is present, loads 17 Webex plugin packages for their registration side effects, and exports WebexNode, a WebexCore subclass with a static init factory that merges sdkType 'webex-node', the package configuration object, and the caller's config before constructing an instance. The package configuration in src/config.js is currently nested under config.default and not applied."
|
|
7
|
+
},
|
|
8
|
+
"commands": {
|
|
9
|
+
"install": "yarn",
|
|
10
|
+
"compile": "yarn workspace webex-node build:src",
|
|
11
|
+
"build": "yarn workspace webex-node build",
|
|
12
|
+
"unit-test": "yarn workspace webex-node test:unit",
|
|
13
|
+
"lint": "yarn workspace webex-node test:style",
|
|
14
|
+
"deploy": "yarn workspace webex-node deploy:npm"
|
|
15
|
+
},
|
|
16
|
+
"public_interfaces": [
|
|
17
|
+
{
|
|
18
|
+
"name": "webex-node package export",
|
|
19
|
+
"kind": "package_export",
|
|
20
|
+
"source": "src/index.js",
|
|
21
|
+
"entrypoints": [
|
|
22
|
+
"const WebexNode = require('webex-node')"
|
|
23
|
+
],
|
|
24
|
+
"audience": "Node.js applications; in this workspace the sibling package test-webex-node (manual smoke script)",
|
|
25
|
+
"notes": "module.exports is the WebexNode class; there are no named exports. Loading installs @babel/polyfill when global._babelPolyfill is not set and loads the 17 plugin packages listed in src/webex-node.js."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "WebexNode class and init factory",
|
|
29
|
+
"kind": "plugin_api",
|
|
30
|
+
"source": "src/webex-node.js",
|
|
31
|
+
"entrypoints": [
|
|
32
|
+
"WebexNode.init()",
|
|
33
|
+
"new WebexNode()"
|
|
34
|
+
],
|
|
35
|
+
"audience": "Node.js applications",
|
|
36
|
+
"notes": "init merges {sdkType: 'webex-node'}, the src/config.js module object, and attrs.config into attrs.config (mutating attrs) and returns new WebexNode(attrs). Direct construction skips that merge. Plugin namespaces on instances are owned by the plugin packages."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "package scripts",
|
|
40
|
+
"kind": "npm_scripts",
|
|
41
|
+
"source": "package.json",
|
|
42
|
+
"entrypoints": [
|
|
43
|
+
"build",
|
|
44
|
+
"build:src",
|
|
45
|
+
"test:style",
|
|
46
|
+
"test:unit",
|
|
47
|
+
"deploy:npm"
|
|
48
|
+
],
|
|
49
|
+
"audience": "contributors and CI",
|
|
50
|
+
"notes": "The aggregate test script chains test:style and test:unit; run them separately. No integration or browser script exists."
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"source_of_truth": [
|
|
54
|
+
{
|
|
55
|
+
"surface": "webex-node SDK entry implementation",
|
|
56
|
+
"paths": [
|
|
57
|
+
"src/index.js",
|
|
58
|
+
"src/webex-node.js",
|
|
59
|
+
"src/config.js",
|
|
60
|
+
"src/config-storage.js"
|
|
61
|
+
],
|
|
62
|
+
"generated_artifacts": [
|
|
63
|
+
"dist"
|
|
64
|
+
],
|
|
65
|
+
"refresh_with": [
|
|
66
|
+
"yarn workspace webex-node build:src"
|
|
67
|
+
],
|
|
68
|
+
"validate_with": [
|
|
69
|
+
"yarn workspace webex-node test:unit",
|
|
70
|
+
"yarn workspace webex-node test:style"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"surface": "module specification",
|
|
75
|
+
"paths": [
|
|
76
|
+
"src/docs/README.md"
|
|
77
|
+
],
|
|
78
|
+
"generated_artifacts": [],
|
|
79
|
+
"refresh_with": [
|
|
80
|
+
"update alongside the behavior change in the same commit"
|
|
81
|
+
],
|
|
82
|
+
"validate_with": [
|
|
83
|
+
"spec-validator on an independent runtime"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"generated_artifacts": [
|
|
88
|
+
{
|
|
89
|
+
"path": "dist",
|
|
90
|
+
"generated_from": "src",
|
|
91
|
+
"refresh_with": "yarn workspace webex-node build:src"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"path": "../../.sdd/templates/repo-standards/template-map.json",
|
|
95
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
96
|
+
"refresh_with": "Run the setup script of the active Repo Annotation installation against the monorepo root"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"validation_matrix": [
|
|
100
|
+
{
|
|
101
|
+
"paths": [
|
|
102
|
+
"src/**"
|
|
103
|
+
],
|
|
104
|
+
"minimum": [
|
|
105
|
+
"yarn workspace webex-node test:unit"
|
|
106
|
+
],
|
|
107
|
+
"recommended": [
|
|
108
|
+
"yarn workspace webex-node test:style",
|
|
109
|
+
"yarn workspace webex-node build:src"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"paths": [
|
|
114
|
+
"src/webex-node.js",
|
|
115
|
+
"src/config.js",
|
|
116
|
+
"src/config-storage.js"
|
|
117
|
+
],
|
|
118
|
+
"minimum": [
|
|
119
|
+
"yarn workspace webex-node test:unit"
|
|
120
|
+
],
|
|
121
|
+
"recommended": [
|
|
122
|
+
"add a unit case that asserts top-level configuration values, because none exists today"
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"change_impact": [
|
|
127
|
+
{
|
|
128
|
+
"paths": [
|
|
129
|
+
"src/webex-node.js"
|
|
130
|
+
],
|
|
131
|
+
"affects": [
|
|
132
|
+
"the plugin set on every WebexNode instance",
|
|
133
|
+
"the init merge order"
|
|
134
|
+
],
|
|
135
|
+
"refresh_with": [
|
|
136
|
+
"yarn workspace webex-node build:src"
|
|
137
|
+
],
|
|
138
|
+
"validate_with": [
|
|
139
|
+
"yarn workspace webex-node test:unit"
|
|
140
|
+
],
|
|
141
|
+
"avoid_direct_edits": [
|
|
142
|
+
"dist"
|
|
143
|
+
],
|
|
144
|
+
"notes": "Removing a plugin or changing init is a breaking change for applications."
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"paths": [
|
|
148
|
+
"src/config.js",
|
|
149
|
+
"src/config-storage.js"
|
|
150
|
+
],
|
|
151
|
+
"affects": [
|
|
152
|
+
"runtime defaults of every WebexNode instance once the nesting in src/docs/README.md MOD-007 is fixed"
|
|
153
|
+
],
|
|
154
|
+
"refresh_with": [
|
|
155
|
+
"yarn workspace webex-node build:src"
|
|
156
|
+
],
|
|
157
|
+
"validate_with": [
|
|
158
|
+
"yarn workspace webex-node test:unit"
|
|
159
|
+
],
|
|
160
|
+
"avoid_direct_edits": [
|
|
161
|
+
"dist"
|
|
162
|
+
],
|
|
163
|
+
"notes": "Today these values sit under config.default and are not applied."
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"paths": [
|
|
167
|
+
"src/index.js",
|
|
168
|
+
"package.json"
|
|
169
|
+
],
|
|
170
|
+
"affects": [
|
|
171
|
+
"the package entry and exports"
|
|
172
|
+
],
|
|
173
|
+
"refresh_with": [
|
|
174
|
+
"yarn workspace webex-node build:src"
|
|
175
|
+
],
|
|
176
|
+
"validate_with": [
|
|
177
|
+
"yarn workspace webex-node build"
|
|
178
|
+
],
|
|
179
|
+
"avoid_direct_edits": [
|
|
180
|
+
"dist"
|
|
181
|
+
],
|
|
182
|
+
"notes": "require('webex-node') must keep returning the class."
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"evidence_rules": [
|
|
186
|
+
{
|
|
187
|
+
"claim_category": "command_name",
|
|
188
|
+
"sources": [
|
|
189
|
+
"package.json"
|
|
190
|
+
],
|
|
191
|
+
"requirement": "The script must exist in package.json scripts.",
|
|
192
|
+
"notes": "The workspace name is webex-node, without an @webex/ scope."
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"claim_category": "import_path",
|
|
196
|
+
"sources": [
|
|
197
|
+
"src/index.js",
|
|
198
|
+
"package.json"
|
|
199
|
+
],
|
|
200
|
+
"requirement": "The only entry points are exports '.' and './package'.",
|
|
201
|
+
"notes": "There are no named exports."
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"claim_category": "behavior_claim",
|
|
205
|
+
"sources": [
|
|
206
|
+
"src",
|
|
207
|
+
"test/unit/spec"
|
|
208
|
+
],
|
|
209
|
+
"requirement": "Ground every behavioral claim in source or test evidence; route instance behavior to webex-core or the owning plugin.",
|
|
210
|
+
"notes": "Commit history is not an evidence source for this package. README.md is retained product documentation, not the behavioral authority."
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"negative_guidance": [
|
|
214
|
+
{
|
|
215
|
+
"rule": "Do not assume src/config.js values are in effect.",
|
|
216
|
+
"why": "init merges the ES module object, so the values land under config.default (src/docs/README.md MOD-007)."
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"rule": "Do not add methods or state to WebexNode.",
|
|
220
|
+
"why": "Instance behavior belongs to webex-core and the plugins."
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"rule": "Do not treat README.md as the package API.",
|
|
224
|
+
"why": "Its example calls plugin APIs owned by other packages. See docs/adr/0001-retain-product-readme.md."
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"rule": "Do not infer a coverage threshold for this package.",
|
|
228
|
+
"why": "The developer confirmed no coverage gate applies; jest-config-legacy sets collectCoverage false."
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"confidence_policy": {
|
|
232
|
+
"high": {
|
|
233
|
+
"action": "update",
|
|
234
|
+
"expectation": "Source and unit test evidence both support the change, which today means the init merge and sdkType override."
|
|
235
|
+
},
|
|
236
|
+
"medium": {
|
|
237
|
+
"action": "narrow-scope",
|
|
238
|
+
"expectation": "Only source evidence exists, for example the plugin set, the polyfill guard, and the configuration object. Pin current behavior with a characterization test before modifying."
|
|
239
|
+
},
|
|
240
|
+
"low": {
|
|
241
|
+
"action": "noop",
|
|
242
|
+
"expectation": "Neither source nor tests settle the question, for example plugin behavior owned by another package. Stop and report the gap."
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"repository_topology": {
|
|
246
|
+
"main_entrypoints": [
|
|
247
|
+
{
|
|
248
|
+
"name": "package entry",
|
|
249
|
+
"path": "src/index.js",
|
|
250
|
+
"purpose": "Conditional polyfill load and CommonJS re-export of WebexNode",
|
|
251
|
+
"notes": "exports '.' and './package' only."
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"workspace_packages": [
|
|
255
|
+
{
|
|
256
|
+
"name": "webex-node",
|
|
257
|
+
"paths": [
|
|
258
|
+
"src",
|
|
259
|
+
"test"
|
|
260
|
+
],
|
|
261
|
+
"notes": "One module; this SDD root is the package directory packages/webex-node inside the webex-js-sdk monorepo."
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"source_surfaces": [
|
|
265
|
+
{
|
|
266
|
+
"name": "webex-node SDK entry",
|
|
267
|
+
"paths": [
|
|
268
|
+
"src"
|
|
269
|
+
],
|
|
270
|
+
"notes": "index.js, webex-node.js, config.js, config-storage.js. Specified at src/docs/README.md."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "tests",
|
|
274
|
+
"paths": [
|
|
275
|
+
"test/unit/spec"
|
|
276
|
+
],
|
|
277
|
+
"notes": "One Jest spec with 5 tests. No integration specs exist."
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"generated_surfaces": [
|
|
281
|
+
{
|
|
282
|
+
"name": "build output",
|
|
283
|
+
"paths": [
|
|
284
|
+
"dist"
|
|
285
|
+
],
|
|
286
|
+
"generated_from": "src",
|
|
287
|
+
"refresh_with": "yarn workspace webex-node build:src",
|
|
288
|
+
"notes": "Produced by webex-legacy-tools. Do not edit by hand."
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "repo-standards template map",
|
|
292
|
+
"paths": [
|
|
293
|
+
"../../.sdd/templates/repo-standards"
|
|
294
|
+
],
|
|
295
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
296
|
+
"refresh_with": "Run the setup script of the active Repo Annotation installation against the monorepo root",
|
|
297
|
+
"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."
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"validation_entrypoints": [
|
|
301
|
+
{
|
|
302
|
+
"name": "unit tests",
|
|
303
|
+
"command": "yarn workspace webex-node test:unit",
|
|
304
|
+
"scope": "test/unit/spec",
|
|
305
|
+
"notes": "Jest via webex-legacy-tools --runner jest."
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "lint",
|
|
309
|
+
"command": "yarn workspace webex-node test:style",
|
|
310
|
+
"scope": "src",
|
|
311
|
+
"notes": "eslint via the workspace root .eslintrc.js; Markdown is ignored."
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"sync_paths": [
|
|
315
|
+
{
|
|
316
|
+
"source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
317
|
+
"targets": [
|
|
318
|
+
"../../.sdd/templates/repo-standards"
|
|
319
|
+
],
|
|
320
|
+
"mechanism": "Setup script of the active Repo Annotation installation",
|
|
321
|
+
"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."
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"folder_readme_contract": {
|
|
326
|
+
"required_sections": [
|
|
327
|
+
"purpose",
|
|
328
|
+
"boundaries",
|
|
329
|
+
"key-files",
|
|
330
|
+
"common-tasks"
|
|
331
|
+
],
|
|
332
|
+
"rules": [
|
|
333
|
+
"Orient the reader before describing detail.",
|
|
334
|
+
"Link to the module specification rather than duplicating it."
|
|
335
|
+
],
|
|
336
|
+
"example_policy": "Examples are allowed only when verified against src/ or test/.",
|
|
337
|
+
"fallback": "Omit a section rather than inventing content; report unresolved facts as gaps."
|
|
338
|
+
},
|
|
339
|
+
"regression_feedback_rules": [
|
|
340
|
+
{
|
|
341
|
+
"trigger": "An init instance has a configuration value that differs from the documented merge result.",
|
|
342
|
+
"required_followups": [
|
|
343
|
+
"Add a unit case in test/unit/spec/webex-node.test.js asserting the top-level value",
|
|
344
|
+
"Update INV-001 or MOD-007 in src/docs/README.md"
|
|
345
|
+
],
|
|
346
|
+
"notes": "No test asserts a src/config.js value today."
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"trigger": "A plugin namespace is missing from or unexpectedly present on a WebexNode instance.",
|
|
350
|
+
"required_followups": [
|
|
351
|
+
"Add a registration assertion in test/unit/spec/webex-node.test.js",
|
|
352
|
+
"Update the plugin load list in src/docs/README.md"
|
|
353
|
+
],
|
|
354
|
+
"notes": "Plugin registration has no test today."
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"surface_owners": [
|
|
358
|
+
{
|
|
359
|
+
"surface": "module implementation and specification",
|
|
360
|
+
"owner": "@webex/web-sdk",
|
|
361
|
+
"edit_boundary": "The monorepo .github/CODEOWNERS has no entry for packages/webex-node, so the default * rule applies."
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"do_not_edit": [
|
|
365
|
+
"dist",
|
|
366
|
+
"../../.sdd/templates/repo-standards"
|
|
367
|
+
],
|
|
368
|
+
"marker_scopes": {
|
|
369
|
+
"sdd": [
|
|
370
|
+
".sdd/manifest.json",
|
|
371
|
+
"src/docs/README.md",
|
|
372
|
+
"docs"
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"fallback_rules": [
|
|
376
|
+
"When source and tests disagree, code is the referee and the disagreement is recorded rather than silently resolved.",
|
|
377
|
+
"When neither source nor tests settle a question, report it as a gap instead of inferring.",
|
|
378
|
+
"Commit history is not a valid rationale source for this package."
|
|
379
|
+
],
|
|
380
|
+
"downstream_context_pack": {
|
|
381
|
+
"required_human_surfaces": [
|
|
382
|
+
"README.md",
|
|
383
|
+
"docs/index.md",
|
|
384
|
+
"docs/architecture.md",
|
|
385
|
+
"src/docs/README.md"
|
|
386
|
+
],
|
|
387
|
+
"required_agent_operational_surfaces": [
|
|
388
|
+
"AGENTS.md",
|
|
389
|
+
"docs/specs/README.md"
|
|
390
|
+
],
|
|
391
|
+
"required_machine_readable_surface": ".sdd/manifest.json",
|
|
392
|
+
"recommended_machine_readable_sections": [
|
|
393
|
+
"public_interfaces",
|
|
394
|
+
"change_impact",
|
|
395
|
+
"evidence_rules",
|
|
396
|
+
"negative_guidance",
|
|
397
|
+
"confidence_policy",
|
|
398
|
+
"repository_topology",
|
|
399
|
+
"folder_readme_contract",
|
|
400
|
+
"regression_feedback_rules"
|
|
401
|
+
]
|
|
402
|
+
}
|
|
403
|
+
}
|