@webex/internal-plugin-presence 3.13.0-next.4 → 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 +477 -0
- package/.sdd/manifest.json +428 -0
- package/AGENTS.md +208 -0
- package/dist/presence.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +98 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +266 -0
- package/docs/getting-started.md +134 -0
- package/docs/index.md +44 -0
- package/docs/specs/README.md +70 -0
- package/package.json +4 -4
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +515 -0
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schemas/repo-context.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"repository": {
|
|
5
|
+
"name": "@webex/internal-plugin-presence",
|
|
6
|
+
"purpose": "Internal plugin registered as webex.internal.presence for the presence service (catalog name apheleia). get() reads one user's composed presence; list() reads many through a Batcher that folds lookups into POST compositions; subscribe() POSTs subscriptions in batches of 50 and unsubscribe() sends subscriptionTtl 0; setStatus() POSTs events for the device user, without a label for dnd; enable(), disable(), and isEnabled() set and read the user-presence-enabled toggle through the feature plugin. Registration adds an inbound transform that copies body.eventType to body.status. An optional PresenceWorker, started by initializeWorker() or config.presence.initializeWorker, counts enqueue/dequeue watchers, fetches stale presence after a 300 ms debounce, subscribes users watched for a minute, renews watched subscriptions, listens to the Mercury event apheleia.subscription_update, expires update times after 10 minutes, and reports every change as an 'updated' event with a subscription, presence, or delete envelope. It stores nothing."
|
|
7
|
+
},
|
|
8
|
+
"commands": {
|
|
9
|
+
"install": "yarn",
|
|
10
|
+
"prebuild": "yarn prebuild:modules",
|
|
11
|
+
"compile": "yarn workspace @webex/internal-plugin-presence build",
|
|
12
|
+
"build": "yarn workspace @webex/internal-plugin-presence build:src",
|
|
13
|
+
"unit-test": "yarn workspace @webex/internal-plugin-presence test:unit",
|
|
14
|
+
"lint": "yarn workspace @webex/internal-plugin-presence test:style",
|
|
15
|
+
"deploy": "yarn workspace @webex/internal-plugin-presence deploy:npm"
|
|
16
|
+
},
|
|
17
|
+
"public_interfaces": [
|
|
18
|
+
{
|
|
19
|
+
"name": "@webex/internal-plugin-presence package entry",
|
|
20
|
+
"kind": "package_export",
|
|
21
|
+
"source": "src/index.js",
|
|
22
|
+
"entrypoints": [
|
|
23
|
+
"import '@webex/internal-plugin-presence'",
|
|
24
|
+
"import Presence from '@webex/internal-plugin-presence'"
|
|
25
|
+
],
|
|
26
|
+
"audience": "first-party Webex clients and the SDK packages that register it",
|
|
27
|
+
"notes": "Importing the package imports the device plugin, then registers Presence as internal plugin 'presence' with config.presence defaults {batcherWait: 50, batcherMaxCalls: 50, batcherMaxWait: 150} and the inbound transform normalizeSingleStatusResponse, which copies body.eventType to body.status on any response with body.eventType and body.subject; the first registration of the name wins. The default export is the only export."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "webex.internal.presence methods and events",
|
|
31
|
+
"kind": "plugin_api",
|
|
32
|
+
"source": "src/presence.js",
|
|
33
|
+
"entrypoints": [
|
|
34
|
+
"webex.internal.presence.get(personId)",
|
|
35
|
+
"webex.internal.presence.list(personIds)",
|
|
36
|
+
"webex.internal.presence.subscribe(personIds, subscriptionTtl)",
|
|
37
|
+
"webex.internal.presence.unsubscribe(personIds)",
|
|
38
|
+
"webex.internal.presence.setStatus(status, ttl)",
|
|
39
|
+
"webex.internal.presence.enable()",
|
|
40
|
+
"webex.internal.presence.disable()",
|
|
41
|
+
"webex.internal.presence.isEnabled()",
|
|
42
|
+
"webex.internal.presence.initializeWorker()",
|
|
43
|
+
"webex.internal.presence.enqueue(id)",
|
|
44
|
+
"webex.internal.presence.dequeue(id)",
|
|
45
|
+
"webex.internal.presence.on('updated', handler)"
|
|
46
|
+
],
|
|
47
|
+
"audience": "first-party Webex clients",
|
|
48
|
+
"notes": "Requests go to the apheleia service; list batches lookups into POST compositions; subscribe sends at most 50 subjects per request; setStatus leaves out label for dnd; unsubscribe resolves the whole response. enable, disable, and isEnabled need the host to register the feature plugin. The worker emits 'updated' with {type: 'subscription' | 'presence' | 'delete', payload}."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "package scripts",
|
|
52
|
+
"kind": "npm_scripts",
|
|
53
|
+
"source": "package.json",
|
|
54
|
+
"entrypoints": [
|
|
55
|
+
"build",
|
|
56
|
+
"build:src",
|
|
57
|
+
"test:unit",
|
|
58
|
+
"test:style",
|
|
59
|
+
"test:browser",
|
|
60
|
+
"test",
|
|
61
|
+
"deploy:npm"
|
|
62
|
+
],
|
|
63
|
+
"audience": "contributors and CI",
|
|
64
|
+
"notes": "build runs build:src, which writes dist. test:unit runs the jest unit specs, which import the package by name and so test dist; run build:src first. Every unit case is describe.skip, so test:unit runs nothing. There is no test:integration script, so the aggregate test stops there; test:browser currently bundles nothing (0 tests)."
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"source_of_truth": [
|
|
68
|
+
{
|
|
69
|
+
"surface": "Presence plugin implementation",
|
|
70
|
+
"paths": [
|
|
71
|
+
"src/index.js",
|
|
72
|
+
"src/presence.js",
|
|
73
|
+
"src/presence-batcher.js",
|
|
74
|
+
"src/presence-worker.js",
|
|
75
|
+
"src/constants.js",
|
|
76
|
+
"src/config.js"
|
|
77
|
+
],
|
|
78
|
+
"generated_artifacts": [
|
|
79
|
+
"dist"
|
|
80
|
+
],
|
|
81
|
+
"refresh_with": [
|
|
82
|
+
"yarn workspace @webex/internal-plugin-presence build:src"
|
|
83
|
+
],
|
|
84
|
+
"validate_with": [
|
|
85
|
+
"yarn workspace @webex/internal-plugin-presence test:unit",
|
|
86
|
+
"yarn workspace @webex/internal-plugin-presence test:style"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"surface": "module specification",
|
|
91
|
+
"paths": [
|
|
92
|
+
"src/docs/README.md"
|
|
93
|
+
],
|
|
94
|
+
"generated_artifacts": [],
|
|
95
|
+
"refresh_with": [
|
|
96
|
+
"update alongside the behavior change in the same commit"
|
|
97
|
+
],
|
|
98
|
+
"validate_with": [
|
|
99
|
+
"spec-validator on an independent runtime"
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"generated_artifacts": [
|
|
104
|
+
{
|
|
105
|
+
"path": "dist",
|
|
106
|
+
"generated_from": "src",
|
|
107
|
+
"refresh_with": "yarn workspace @webex/internal-plugin-presence build:src"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"path": "../../../.sdd/templates/repo-standards/template-map.json",
|
|
111
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
112
|
+
"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."
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"validation_matrix": [
|
|
116
|
+
{
|
|
117
|
+
"paths": [
|
|
118
|
+
"src/**"
|
|
119
|
+
],
|
|
120
|
+
"minimum": [
|
|
121
|
+
"yarn workspace @webex/internal-plugin-presence build:src",
|
|
122
|
+
"yarn workspace @webex/internal-plugin-presence test:unit",
|
|
123
|
+
"yarn workspace @webex/internal-plugin-presence test:style"
|
|
124
|
+
],
|
|
125
|
+
"recommended": [
|
|
126
|
+
"add a running case in test/unit/spec/presence.js or test/unit/spec/presence-worker.js for the changed behavior; the existing suites are skipped"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"paths": [
|
|
131
|
+
"src/presence-worker.js",
|
|
132
|
+
"src/constants.js"
|
|
133
|
+
],
|
|
134
|
+
"minimum": [
|
|
135
|
+
"yarn workspace @webex/internal-plugin-presence build:src",
|
|
136
|
+
"yarn workspace @webex/internal-plugin-presence test:unit",
|
|
137
|
+
"yarn workspace @webex/internal-plugin-presence test:style"
|
|
138
|
+
],
|
|
139
|
+
"recommended": [
|
|
140
|
+
"use sinon.useFakeTimers() for the 300 ms debounce and the 20-second groundskeeper, and check the updated envelope types clients switch on"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"paths": [
|
|
145
|
+
"src/index.js",
|
|
146
|
+
"src/config.js"
|
|
147
|
+
],
|
|
148
|
+
"minimum": [
|
|
149
|
+
"yarn workspace @webex/internal-plugin-presence build:src",
|
|
150
|
+
"yarn workspace @webex/internal-plugin-presence test:unit",
|
|
151
|
+
"yarn workspace @webex/internal-plugin-presence test:style"
|
|
152
|
+
],
|
|
153
|
+
"recommended": [
|
|
154
|
+
"check the packages that register the plugin (webex, webex-node, @webex/recipe-private-web-client) when a default, the transform, or the registered name changes"
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"change_impact": [
|
|
159
|
+
{
|
|
160
|
+
"paths": [
|
|
161
|
+
"src/presence.js",
|
|
162
|
+
"src/presence-batcher.js"
|
|
163
|
+
],
|
|
164
|
+
"affects": [
|
|
165
|
+
"the compositions, subscriptions, and events request bodies",
|
|
166
|
+
"the resolved result shapes {statusList} and {responses}",
|
|
167
|
+
"the presence feature toggle"
|
|
168
|
+
],
|
|
169
|
+
"refresh_with": [
|
|
170
|
+
"yarn workspace @webex/internal-plugin-presence build:src"
|
|
171
|
+
],
|
|
172
|
+
"validate_with": [
|
|
173
|
+
"yarn workspace @webex/internal-plugin-presence test:unit",
|
|
174
|
+
"yarn workspace @webex/internal-plugin-presence test:style"
|
|
175
|
+
],
|
|
176
|
+
"avoid_direct_edits": [
|
|
177
|
+
"dist"
|
|
178
|
+
],
|
|
179
|
+
"notes": "Keep at most 50 subjects per subscribe request and the dnd label rule (INV-001, INV-003)."
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"paths": [
|
|
183
|
+
"src/presence-worker.js",
|
|
184
|
+
"src/constants.js"
|
|
185
|
+
],
|
|
186
|
+
"affects": [
|
|
187
|
+
"when the worker fetches, subscribes, renews, and expires",
|
|
188
|
+
"the 'updated' event and its envelope types"
|
|
189
|
+
],
|
|
190
|
+
"refresh_with": [
|
|
191
|
+
"yarn workspace @webex/internal-plugin-presence build:src"
|
|
192
|
+
],
|
|
193
|
+
"validate_with": [
|
|
194
|
+
"yarn workspace @webex/internal-plugin-presence test:unit",
|
|
195
|
+
"yarn workspace @webex/internal-plugin-presence test:style"
|
|
196
|
+
],
|
|
197
|
+
"avoid_direct_edits": [
|
|
198
|
+
"dist"
|
|
199
|
+
],
|
|
200
|
+
"notes": "The worker keeps times and counts only; each start adds a listener and an interval that nothing removes."
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"paths": [
|
|
204
|
+
"src/index.js",
|
|
205
|
+
"src/config.js"
|
|
206
|
+
],
|
|
207
|
+
"affects": [
|
|
208
|
+
"config.presence batcher defaults",
|
|
209
|
+
"the SDK-wide inbound transform normalizeSingleStatusResponse"
|
|
210
|
+
],
|
|
211
|
+
"refresh_with": [
|
|
212
|
+
"yarn workspace @webex/internal-plugin-presence build:src"
|
|
213
|
+
],
|
|
214
|
+
"validate_with": [
|
|
215
|
+
"yarn workspace @webex/internal-plugin-presence test:unit",
|
|
216
|
+
"yarn workspace @webex/internal-plugin-presence test:style"
|
|
217
|
+
],
|
|
218
|
+
"avoid_direct_edits": [
|
|
219
|
+
"dist"
|
|
220
|
+
],
|
|
221
|
+
"notes": "The transform runs on every inbound SDK response; no test asserts it or the defaults."
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"evidence_rules": [
|
|
225
|
+
{
|
|
226
|
+
"claim_category": "command_name",
|
|
227
|
+
"sources": [
|
|
228
|
+
"package.json"
|
|
229
|
+
],
|
|
230
|
+
"requirement": "The script must exist in package.json scripts.",
|
|
231
|
+
"notes": "test:integration does not exist, so the aggregate test script fails; test:unit and test:browser currently verify nothing."
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"claim_category": "import_path",
|
|
235
|
+
"sources": [
|
|
236
|
+
"src/index.js"
|
|
237
|
+
],
|
|
238
|
+
"requirement": "A binding is public only if exported from src/index.js.",
|
|
239
|
+
"notes": "The only export is the default Presence."
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"claim_category": "behavior_claim",
|
|
243
|
+
"sources": [
|
|
244
|
+
"src",
|
|
245
|
+
"test/unit/spec"
|
|
246
|
+
],
|
|
247
|
+
"requirement": "Ground every behavioral claim in source and unit-test evidence.",
|
|
248
|
+
"notes": "Commit history is not an evidence source for this package. README.md is context only (docs/adr/0001-retain-product-readme.md). The webex-core, internal-plugin-mercury, internal-plugin-feature, and internal-plugin-device specs were consulted; their code is the referee where a spec is silent or, as for Mercury's session model, stale. Every unit case is skipped, so skipped cases describe intent, not verified behavior."
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"negative_guidance": [
|
|
252
|
+
{
|
|
253
|
+
"rule": "Do not store presence objects in the worker.",
|
|
254
|
+
"why": "The client owns presence data and receives it through 'updated' envelopes."
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"rule": "Do not send more than 50 subjects in one subscribe request.",
|
|
258
|
+
"why": "The code comment limits batches to 50 ids per request."
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"rule": "Do not widen the inbound transform predicate.",
|
|
262
|
+
"why": "It runs on every inbound SDK response, not only presence responses."
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"rule": "Do not start another interval or Mercury listener without a way to stop it.",
|
|
266
|
+
"why": "Nothing removes the existing ones; each start duplicates work and events."
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"rule": "Do not log presence data, statuses, or user ids.",
|
|
270
|
+
"why": "They are other users' personal data; the package has no log line today."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"rule": "Do not treat README.md as a usage reference.",
|
|
274
|
+
"why": "Its Usage block names a placeholder member; see docs/adr/0001-retain-product-readme.md."
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"rule": "Do not infer a coverage threshold for this package.",
|
|
278
|
+
"why": "No coverage script or threshold exists."
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
"confidence_policy": {
|
|
282
|
+
"high": {
|
|
283
|
+
"action": "update",
|
|
284
|
+
"expectation": "Source and a running unit case agree. No such case exists today; every case in test/unit/spec is skipped."
|
|
285
|
+
},
|
|
286
|
+
"medium": {
|
|
287
|
+
"action": "narrow-scope",
|
|
288
|
+
"expectation": "Only source evidence, or a skipped case, exists, as for every behavior today. Pin current behavior with a running unit case before modifying."
|
|
289
|
+
},
|
|
290
|
+
"low": {
|
|
291
|
+
"action": "noop",
|
|
292
|
+
"expectation": "Neither source, tests, nor a dependency's spec or code settles the question. Stop and report the gap."
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"repository_topology": {
|
|
296
|
+
"main_entrypoints": [
|
|
297
|
+
{
|
|
298
|
+
"name": "package entry",
|
|
299
|
+
"path": "src/index.js",
|
|
300
|
+
"purpose": "Registers the presence plugin and its transform, and default-exports the class",
|
|
301
|
+
"notes": "No subpath exports; package.json main is dist/index.js and devMain is src/index.js."
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"workspace_packages": [
|
|
305
|
+
{
|
|
306
|
+
"name": "@webex/internal-plugin-presence",
|
|
307
|
+
"paths": [
|
|
308
|
+
"src",
|
|
309
|
+
"test"
|
|
310
|
+
],
|
|
311
|
+
"notes": "One module; this SDD root is the package directory inside the webex-js-sdk monorepo."
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"source_surfaces": [
|
|
315
|
+
{
|
|
316
|
+
"name": "Presence plugin",
|
|
317
|
+
"paths": [
|
|
318
|
+
"src"
|
|
319
|
+
],
|
|
320
|
+
"notes": "index.js, presence.js, presence-batcher.js, presence-worker.js, constants.js, config.js. Specified at src/docs/README.md."
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "tests",
|
|
324
|
+
"paths": [
|
|
325
|
+
"test/unit/spec",
|
|
326
|
+
"test/integration/spec"
|
|
327
|
+
],
|
|
328
|
+
"notes": "Unit specs run by test:unit, all skipped; live-service spec run only by test:browser, skipped."
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"generated_surfaces": [
|
|
332
|
+
{
|
|
333
|
+
"name": "build output",
|
|
334
|
+
"paths": [
|
|
335
|
+
"dist"
|
|
336
|
+
],
|
|
337
|
+
"generated_from": "src",
|
|
338
|
+
"refresh_with": "yarn workspace @webex/internal-plugin-presence build:src",
|
|
339
|
+
"notes": "JavaScript and source maps from webex-legacy-tools; no type declarations. Do not edit by hand."
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "repo-standards template map",
|
|
343
|
+
"paths": [
|
|
344
|
+
"../../../.sdd/templates/repo-standards"
|
|
345
|
+
],
|
|
346
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
347
|
+
"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.",
|
|
348
|
+
"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."
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"validation_entrypoints": [
|
|
352
|
+
{
|
|
353
|
+
"name": "compile",
|
|
354
|
+
"command": "yarn workspace @webex/internal-plugin-presence build",
|
|
355
|
+
"scope": "src",
|
|
356
|
+
"notes": "Runs build:src."
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "unit-test",
|
|
360
|
+
"command": "yarn workspace @webex/internal-plugin-presence test:unit",
|
|
361
|
+
"scope": "test/unit/spec",
|
|
362
|
+
"notes": "Run build:src first; the specs test dist. Every case is skipped today."
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "lint",
|
|
366
|
+
"command": "yarn workspace @webex/internal-plugin-presence test:style",
|
|
367
|
+
"scope": "src",
|
|
368
|
+
"notes": "eslint via the local .eslintrc.js; docs/** and *.md are ignored."
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"sync_paths": [
|
|
372
|
+
{
|
|
373
|
+
"source": "src/presence-worker.js",
|
|
374
|
+
"targets": [
|
|
375
|
+
"src/docs/README.md"
|
|
376
|
+
],
|
|
377
|
+
"mechanism": "Manual; update the module specification in the same change that alters observable behavior.",
|
|
378
|
+
"notes": "Keep the request, worker timing, envelope type, and transform rows of the specification aligned with the code."
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
382
|
+
"targets": [
|
|
383
|
+
"../../../.sdd/templates/repo-standards"
|
|
384
|
+
],
|
|
385
|
+
"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.",
|
|
386
|
+
"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."
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
"folder_readme_contract": {
|
|
391
|
+
"required_sections": [
|
|
392
|
+
"purpose",
|
|
393
|
+
"boundaries",
|
|
394
|
+
"key-files",
|
|
395
|
+
"common-tasks"
|
|
396
|
+
],
|
|
397
|
+
"rules": [
|
|
398
|
+
"Orient the reader before describing detail.",
|
|
399
|
+
"Link to the module specification rather than duplicating it."
|
|
400
|
+
],
|
|
401
|
+
"example_policy": "Examples are allowed only when verified against src/ or test/.",
|
|
402
|
+
"fallback": "Omit a section rather than inventing content; report unresolved facts as gaps."
|
|
403
|
+
},
|
|
404
|
+
"regression_feedback_rules": [
|
|
405
|
+
{
|
|
406
|
+
"trigger": "A request method, body, resource, or result shape in src/presence.js or src/presence-batcher.js changes.",
|
|
407
|
+
"required_followups": [
|
|
408
|
+
"Add or update a running case in test/unit/spec/presence.js",
|
|
409
|
+
"Update MOD-004 to MOD-010 and INV-001, INV-002, INV-003, INV-006 in src/docs/README.md"
|
|
410
|
+
],
|
|
411
|
+
"notes": "Clients read {statusList} and {responses}."
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"trigger": "A worker timing, map rule, or envelope type changes.",
|
|
415
|
+
"required_followups": [
|
|
416
|
+
"Add or update a running case in test/unit/spec/presence-worker.js with fake timers",
|
|
417
|
+
"Update MOD-011 to MOD-017, INV-004, INV-005, and the State machine in src/docs/README.md"
|
|
418
|
+
],
|
|
419
|
+
"notes": "Clients switch on the 'updated' envelope type."
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"trigger": "The registration, transform, or config defaults change.",
|
|
423
|
+
"required_followups": [
|
|
424
|
+
"Add unit cases; none exist today",
|
|
425
|
+
"Update MOD-001 to MOD-003 in src/docs/README.md"
|
|
426
|
+
],
|
|
427
|
+
"notes": "The transform applies to every inbound SDK response."
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
"surface_owners": [
|
|
431
|
+
{
|
|
432
|
+
"surface": "module implementation and specifications",
|
|
433
|
+
"owner": "@webex/web-sdk",
|
|
434
|
+
"edit_boundary": "Owner per the default rule of the monorepo .github/CODEOWNERS; the file has no line for packages/@webex/internal-plugin-presence."
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"do_not_edit": [
|
|
438
|
+
"dist",
|
|
439
|
+
"../../../.sdd/templates/repo-standards"
|
|
440
|
+
],
|
|
441
|
+
"marker_scopes": {
|
|
442
|
+
"sdd": [
|
|
443
|
+
".sdd/manifest.json",
|
|
444
|
+
"src/docs/README.md",
|
|
445
|
+
"docs"
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
"fallback_rules": [
|
|
449
|
+
"When source and tests disagree, code is the referee and the disagreement is recorded rather than silently resolved.",
|
|
450
|
+
"When neither source nor tests settle a question, report it as a gap instead of inferring.",
|
|
451
|
+
"Commit history is not a valid rationale source for this package.",
|
|
452
|
+
"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."
|
|
453
|
+
],
|
|
454
|
+
"downstream_context_pack": {
|
|
455
|
+
"required_human_surfaces": [
|
|
456
|
+
"README.md",
|
|
457
|
+
"docs/index.md",
|
|
458
|
+
"docs/architecture.md",
|
|
459
|
+
"src/docs/README.md"
|
|
460
|
+
],
|
|
461
|
+
"required_agent_operational_surfaces": [
|
|
462
|
+
"AGENTS.md",
|
|
463
|
+
"docs/specs/README.md"
|
|
464
|
+
],
|
|
465
|
+
"required_machine_readable_surface": ".sdd/manifest.json",
|
|
466
|
+
"recommended_machine_readable_sections": [
|
|
467
|
+
"public_interfaces",
|
|
468
|
+
"change_impact",
|
|
469
|
+
"evidence_rules",
|
|
470
|
+
"negative_guidance",
|
|
471
|
+
"confidence_policy",
|
|
472
|
+
"repository_topology",
|
|
473
|
+
"folder_readme_contract",
|
|
474
|
+
"regression_feedback_rules"
|
|
475
|
+
]
|
|
476
|
+
}
|
|
477
|
+
}
|