@webex/plugin-teams 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.
- package/.repo-context.json +409 -0
- package/.sdd/manifest.json +365 -0
- package/AGENTS.md +206 -0
- package/dist/teams.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +96 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +204 -0
- package/docs/getting-started.md +126 -0
- package/docs/index.md +42 -0
- package/docs/specs/README.md +69 -0
- package/package.json +6 -6
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +288 -0
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schemas/repo-context.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"repository": {
|
|
5
|
+
"name": "@webex/plugin-teams",
|
|
6
|
+
"purpose": "Public plugin registered as webex.teams that manages Webex teams through the Webex REST API teams resource (catalog service hydra): create POSTs a team, get takes a team object or id and resolves one team, list resolves a webex-core Page, and update PUTs the whole team object. Each call sends one request through webex.request and resolves what the service returns; the plugin checks no argument, emits no event, defines no delete, and caches or persists nothing."
|
|
7
|
+
},
|
|
8
|
+
"commands": {
|
|
9
|
+
"install": "yarn",
|
|
10
|
+
"prebuild": "yarn prebuild:modules",
|
|
11
|
+
"compile": "yarn build",
|
|
12
|
+
"build": "yarn build:src",
|
|
13
|
+
"unit-test": "[NEEDS HUMAN INPUT] -- package.json defines no test:unit script and the package has no test/unit directory; its only spec, test/integration/spec/teams.js, runs only under test:browser:broken, which currently bundles nothing. Add a unit suite and script before recording a command here.",
|
|
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-teams package entry",
|
|
21
|
+
"kind": "package_export",
|
|
22
|
+
"source": "src/index.js",
|
|
23
|
+
"entrypoints": [
|
|
24
|
+
"import '@webex/plugin-teams'",
|
|
25
|
+
"import Teams from '@webex/plugin-teams'"
|
|
26
|
+
],
|
|
27
|
+
"audience": "SDK bundles (webex, webex-node) and applications that build their own webex instance",
|
|
28
|
+
"notes": "Importing the package registers Teams as public plugin 'teams' with no config; the first registration of the name wins. The default export Teams is the only export."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "webex.teams methods",
|
|
32
|
+
"kind": "plugin_api",
|
|
33
|
+
"source": "src/teams.js",
|
|
34
|
+
"entrypoints": [
|
|
35
|
+
"webex.teams.create(team)",
|
|
36
|
+
"webex.teams.get(team, options)",
|
|
37
|
+
"webex.teams.list(options)",
|
|
38
|
+
"webex.teams.update(team)"
|
|
39
|
+
],
|
|
40
|
+
"audience": "applications and the integration spec of plugin-team-memberships",
|
|
41
|
+
"notes": "Each method sends one hydra teams request. get takes a team object or an id and resolves body.items when present, else the body; list resolves a webex-core Page; update sends the whole object as the body. get and update read team.id synchronously, so a missing argument throws a TypeError instead of rejecting. There is no delete method and no event."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "package scripts",
|
|
45
|
+
"kind": "npm_scripts",
|
|
46
|
+
"source": "package.json",
|
|
47
|
+
"entrypoints": [
|
|
48
|
+
"build",
|
|
49
|
+
"build:src",
|
|
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. There is no test:unit script and no unit test. test:browser:broken (commands.browser-test) runs karma over test/integration/spec but bundles nothing today (no case run, exit 0). The aggregate test script runs test:style, then exits 1 because test:unit is not defined (it also names test:integration and test:browser, which are not defined either); it is deliberately not a manifest command."
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"source_of_truth": [
|
|
60
|
+
{
|
|
61
|
+
"surface": "Teams plugin implementation",
|
|
62
|
+
"paths": [
|
|
63
|
+
"src/index.js",
|
|
64
|
+
"src/teams.js"
|
|
65
|
+
],
|
|
66
|
+
"generated_artifacts": [
|
|
67
|
+
"dist"
|
|
68
|
+
],
|
|
69
|
+
"refresh_with": [
|
|
70
|
+
"yarn build:src"
|
|
71
|
+
],
|
|
72
|
+
"validate_with": [
|
|
73
|
+
"yarn test:style"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"surface": "module specification",
|
|
78
|
+
"paths": [
|
|
79
|
+
"src/docs/README.md"
|
|
80
|
+
],
|
|
81
|
+
"generated_artifacts": [],
|
|
82
|
+
"refresh_with": [
|
|
83
|
+
"update alongside the behavior change in the same commit"
|
|
84
|
+
],
|
|
85
|
+
"validate_with": [
|
|
86
|
+
"spec-validator on an independent runtime"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"generated_artifacts": [
|
|
91
|
+
{
|
|
92
|
+
"path": "dist",
|
|
93
|
+
"generated_from": "src",
|
|
94
|
+
"refresh_with": "yarn build:src"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"path": "../../../.sdd/templates/repo-standards/template-map.json",
|
|
98
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
99
|
+
"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."
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"validation_matrix": [
|
|
103
|
+
{
|
|
104
|
+
"paths": [
|
|
105
|
+
"src/**"
|
|
106
|
+
],
|
|
107
|
+
"minimum": [
|
|
108
|
+
"yarn build:src",
|
|
109
|
+
"yarn test:style"
|
|
110
|
+
],
|
|
111
|
+
"recommended": [
|
|
112
|
+
"add a test/unit/spec case and a test:unit script for the changed behavior; the package has no unit tests"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"paths": [
|
|
117
|
+
"src/teams.js"
|
|
118
|
+
],
|
|
119
|
+
"minimum": [
|
|
120
|
+
"yarn build:src",
|
|
121
|
+
"yarn test:style"
|
|
122
|
+
],
|
|
123
|
+
"recommended": [
|
|
124
|
+
"pin the four request options and the resolved values, including get resolving body.items and list resolving a Page, with unit cases before changing them"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"paths": [
|
|
129
|
+
"src/index.js"
|
|
130
|
+
],
|
|
131
|
+
"minimum": [
|
|
132
|
+
"yarn build:src",
|
|
133
|
+
"yarn test:style"
|
|
134
|
+
],
|
|
135
|
+
"recommended": [
|
|
136
|
+
"check the bundles that register the plugin (webex, webex-node) when the registered name changes"
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"change_impact": [
|
|
141
|
+
{
|
|
142
|
+
"paths": [
|
|
143
|
+
"src/teams.js"
|
|
144
|
+
],
|
|
145
|
+
"affects": [
|
|
146
|
+
"the hydra teams requests and their result shapes",
|
|
147
|
+
"callers that pass a team object or an id to get",
|
|
148
|
+
"callers that page through list"
|
|
149
|
+
],
|
|
150
|
+
"refresh_with": [
|
|
151
|
+
"yarn build:src"
|
|
152
|
+
],
|
|
153
|
+
"validate_with": [
|
|
154
|
+
"yarn test:style"
|
|
155
|
+
],
|
|
156
|
+
"avoid_direct_edits": [
|
|
157
|
+
"dist"
|
|
158
|
+
],
|
|
159
|
+
"notes": "No unit case covers any method; add one before changing behavior."
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"paths": [
|
|
163
|
+
"src/index.js"
|
|
164
|
+
],
|
|
165
|
+
"affects": [
|
|
166
|
+
"the registered plugin name"
|
|
167
|
+
],
|
|
168
|
+
"refresh_with": [
|
|
169
|
+
"yarn build:src"
|
|
170
|
+
],
|
|
171
|
+
"validate_with": [
|
|
172
|
+
"yarn test:style"
|
|
173
|
+
],
|
|
174
|
+
"avoid_direct_edits": [
|
|
175
|
+
"dist"
|
|
176
|
+
],
|
|
177
|
+
"notes": "The webex and webex-node bundles require the package for this registration (MOD-001)."
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"evidence_rules": [
|
|
181
|
+
{
|
|
182
|
+
"claim_category": "command_name",
|
|
183
|
+
"sources": [
|
|
184
|
+
"package.json"
|
|
185
|
+
],
|
|
186
|
+
"requirement": "The script must exist in package.json scripts.",
|
|
187
|
+
"notes": "test:unit, test:integration, and test:browser do not exist, so the aggregate test script fails; test:browser:broken currently verifies nothing."
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"claim_category": "import_path",
|
|
191
|
+
"sources": [
|
|
192
|
+
"src/index.js"
|
|
193
|
+
],
|
|
194
|
+
"requirement": "A binding is public only if exported from src/index.js.",
|
|
195
|
+
"notes": "The only export is the default Teams."
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"claim_category": "behavior_claim",
|
|
199
|
+
"sources": [
|
|
200
|
+
"src"
|
|
201
|
+
],
|
|
202
|
+
"requirement": "Ground every behavioral claim in source evidence.",
|
|
203
|
+
"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 and plugin-rooms specs were consulted; plugin-memberships and test-helper-chai have no spec, so their code was read."
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"negative_guidance": [
|
|
207
|
+
{
|
|
208
|
+
"rule": "Do not send team requests outside this.request with service hydra.",
|
|
209
|
+
"why": "webex-core resolves the catalog URL and adds authorization and tracking only on that path."
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"rule": "Do not add argument checks, caching, or reshaping of the response without a unit case and a spec update.",
|
|
213
|
+
"why": "Callers receive the service response as it is today (MOD-002 to MOD-005)."
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"rule": "Do not log team names or ids through webex.logger.",
|
|
217
|
+
"why": "They identify users' teams; the plugin logs nothing today."
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"rule": "Do not treat README.md as the behavior reference.",
|
|
221
|
+
"why": "It shows only get(id); see docs/adr/0001-retain-product-readme.md."
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"rule": "Do not infer a coverage threshold or a unit-test command for this package.",
|
|
225
|
+
"why": "No unit test, test:unit script, coverage script, or threshold exists."
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"confidence_policy": {
|
|
229
|
+
"high": {
|
|
230
|
+
"action": "update",
|
|
231
|
+
"expectation": "Source and a unit case agree; no such case exists in this package yet."
|
|
232
|
+
},
|
|
233
|
+
"medium": {
|
|
234
|
+
"action": "narrow-scope",
|
|
235
|
+
"expectation": "Only source evidence exists, or only the unrun integration spec, as for every method today. Pin current behavior with a unit case before modifying."
|
|
236
|
+
},
|
|
237
|
+
"low": {
|
|
238
|
+
"action": "noop",
|
|
239
|
+
"expectation": "Neither source, tests, nor a dependency's spec or code settles the question, as for why get reads body.items or which team fields the service returns beyond id, name, and created. Stop and report the gap."
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"repository_topology": {
|
|
243
|
+
"main_entrypoints": [
|
|
244
|
+
{
|
|
245
|
+
"name": "package entry",
|
|
246
|
+
"path": "src/index.js",
|
|
247
|
+
"purpose": "Registers the teams plugin and exports the class",
|
|
248
|
+
"notes": "No subpath exports; package.json main is dist/index.js and devMain is src/index.js."
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"workspace_packages": [
|
|
252
|
+
{
|
|
253
|
+
"name": "@webex/plugin-teams",
|
|
254
|
+
"paths": [
|
|
255
|
+
"src",
|
|
256
|
+
"test"
|
|
257
|
+
],
|
|
258
|
+
"notes": "One module; this SDD root is the package directory inside the webex-js-sdk monorepo."
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"source_surfaces": [
|
|
262
|
+
{
|
|
263
|
+
"name": "Teams plugin",
|
|
264
|
+
"paths": [
|
|
265
|
+
"src"
|
|
266
|
+
],
|
|
267
|
+
"notes": "index.js and teams.js. Specified at src/docs/README.md."
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "tests",
|
|
271
|
+
"paths": [
|
|
272
|
+
"test/integration/spec"
|
|
273
|
+
],
|
|
274
|
+
"notes": "One live-service integration spec that only test:browser:broken would run, and it bundles nothing today. There is no unit spec."
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"generated_surfaces": [
|
|
278
|
+
{
|
|
279
|
+
"name": "build output",
|
|
280
|
+
"paths": [
|
|
281
|
+
"dist"
|
|
282
|
+
],
|
|
283
|
+
"generated_from": "src",
|
|
284
|
+
"refresh_with": "yarn build:src",
|
|
285
|
+
"notes": "JavaScript and source maps from webex-legacy-tools; no type declarations. Do not edit by hand."
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "repo-standards template map",
|
|
289
|
+
"paths": [
|
|
290
|
+
"../../../.sdd/templates/repo-standards"
|
|
291
|
+
],
|
|
292
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
293
|
+
"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.",
|
|
294
|
+
"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."
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
"validation_entrypoints": [
|
|
298
|
+
{
|
|
299
|
+
"name": "compile",
|
|
300
|
+
"command": "yarn build",
|
|
301
|
+
"scope": "src",
|
|
302
|
+
"notes": "Runs build:src."
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "lint",
|
|
306
|
+
"command": "yarn test:style",
|
|
307
|
+
"scope": "src",
|
|
308
|
+
"notes": "eslint via the local .eslintrc.js; docs/** and *.md are ignored."
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"sync_paths": [
|
|
312
|
+
{
|
|
313
|
+
"source": "src/teams.js",
|
|
314
|
+
"targets": [
|
|
315
|
+
"src/docs/README.md"
|
|
316
|
+
],
|
|
317
|
+
"mechanism": "Manual; update the module specification in the same change that alters observable behavior.",
|
|
318
|
+
"notes": "Keep the request and wire rows of the specification aligned with src/teams.js and src/index.js."
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
322
|
+
"targets": [
|
|
323
|
+
"../../../.sdd/templates/repo-standards"
|
|
324
|
+
],
|
|
325
|
+
"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.",
|
|
326
|
+
"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."
|
|
327
|
+
}
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
"folder_readme_contract": {
|
|
331
|
+
"required_sections": [
|
|
332
|
+
"purpose",
|
|
333
|
+
"boundaries",
|
|
334
|
+
"key-files",
|
|
335
|
+
"common-tasks"
|
|
336
|
+
],
|
|
337
|
+
"rules": [
|
|
338
|
+
"Orient the reader before describing detail.",
|
|
339
|
+
"Link to the module specification rather than duplicating it."
|
|
340
|
+
],
|
|
341
|
+
"example_policy": "Examples are allowed only when verified against src/ or test/.",
|
|
342
|
+
"fallback": "Omit a section rather than inventing content; report unresolved facts as gaps."
|
|
343
|
+
},
|
|
344
|
+
"regression_feedback_rules": [
|
|
345
|
+
{
|
|
346
|
+
"trigger": "A teams request or its result handling in src/teams.js changes.",
|
|
347
|
+
"required_followups": [
|
|
348
|
+
"Add a test:unit script and a test/unit/spec case asserting the request options and the resolved value",
|
|
349
|
+
"Update MOD-002 to MOD-005 in src/docs/README.md"
|
|
350
|
+
],
|
|
351
|
+
"notes": "No unit case exists for any method today."
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"trigger": "The registration in src/index.js changes.",
|
|
355
|
+
"required_followups": [
|
|
356
|
+
"Check the webex and webex-node bundles that require the package",
|
|
357
|
+
"Update MOD-001 in src/docs/README.md"
|
|
358
|
+
],
|
|
359
|
+
"notes": "Applications reach the plugin as webex.teams."
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
"surface_owners": [
|
|
363
|
+
{
|
|
364
|
+
"surface": "module implementation and specifications",
|
|
365
|
+
"owner": "@webex/web-sdk",
|
|
366
|
+
"edit_boundary": "Owners per the default * rule of the monorepo .github/CODEOWNERS; no line names packages/@webex/plugin-teams."
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"do_not_edit": [
|
|
370
|
+
"dist",
|
|
371
|
+
"../../../.sdd/templates/repo-standards"
|
|
372
|
+
],
|
|
373
|
+
"marker_scopes": {
|
|
374
|
+
"sdd": [
|
|
375
|
+
".sdd/manifest.json",
|
|
376
|
+
"src/docs/README.md",
|
|
377
|
+
"docs"
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
"fallback_rules": [
|
|
381
|
+
"When source and tests disagree, code is the referee and the disagreement is recorded rather than silently resolved.",
|
|
382
|
+
"When neither source nor tests settle a question, report it as a gap instead of inferring.",
|
|
383
|
+
"Commit history is not a valid rationale source for this package.",
|
|
384
|
+
"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."
|
|
385
|
+
],
|
|
386
|
+
"downstream_context_pack": {
|
|
387
|
+
"required_human_surfaces": [
|
|
388
|
+
"README.md",
|
|
389
|
+
"docs/index.md",
|
|
390
|
+
"docs/architecture.md",
|
|
391
|
+
"src/docs/README.md"
|
|
392
|
+
],
|
|
393
|
+
"required_agent_operational_surfaces": [
|
|
394
|
+
"AGENTS.md",
|
|
395
|
+
"docs/specs/README.md"
|
|
396
|
+
],
|
|
397
|
+
"required_machine_readable_surface": ".sdd/manifest.json",
|
|
398
|
+
"recommended_machine_readable_sections": [
|
|
399
|
+
"public_interfaces",
|
|
400
|
+
"change_impact",
|
|
401
|
+
"evidence_rules",
|
|
402
|
+
"negative_guidance",
|
|
403
|
+
"confidence_policy",
|
|
404
|
+
"repository_topology",
|
|
405
|
+
"folder_readme_contract",
|
|
406
|
+
"regression_feedback_rules"
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
}
|