@webex/internal-plugin-board 3.12.0 → 3.13.0-next.10
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 +480 -0
- package/AGENTS.md +205 -0
- package/dist/board.js +46 -5
- package/dist/board.js.map +1 -1
- package/dist/realtime.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +92 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +294 -0
- package/docs/getting-started.md +101 -0
- package/docs/index.md +42 -0
- package/docs/specs/README.md +66 -0
- package/package.json +13 -13
- package/schemas/repo-context.schema.json +796 -0
- package/src/board.js +53 -9
- package/src/docs/README.md +554 -0
- package/test/unit/spec/board.js +167 -3
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schemas/repo-context.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"repository": {
|
|
5
|
+
"name": "@webex/internal-plugin-board",
|
|
6
|
+
"purpose": "Internal whiteboard plugin registered as webex.internal.board. It creates, lists, locks, keeps alive, and deletes board channels bound to a conversation ACL (routing create and list to the board cluster that matches the ACL cluster), adds and reads KMS-encrypted board contents in serial chunks, uploads board images and snapshots to Webex Files, authorizes a transcoder for whiteboard sharing to mobile, and carries live board activity over Mercury through its realtime child, either on a board socket of its own or on the shared Mercury socket. Its payload transformer creates each channel's content key and decrypts content reads."
|
|
7
|
+
},
|
|
8
|
+
"commands": {
|
|
9
|
+
"install": "yarn",
|
|
10
|
+
"compile": "yarn workspace @webex/internal-plugin-board build:src",
|
|
11
|
+
"build": "yarn workspace @webex/internal-plugin-board build",
|
|
12
|
+
"unit-test": "yarn workspace @webex/internal-plugin-board test:unit",
|
|
13
|
+
"integration-test": "yarn workspace @webex/internal-plugin-board test:browser",
|
|
14
|
+
"lint": "yarn workspace @webex/internal-plugin-board test:style",
|
|
15
|
+
"deploy": "yarn workspace @webex/internal-plugin-board deploy:npm"
|
|
16
|
+
},
|
|
17
|
+
"public_interfaces": [
|
|
18
|
+
{
|
|
19
|
+
"name": "@webex/internal-plugin-board package entry",
|
|
20
|
+
"kind": "package_export",
|
|
21
|
+
"source": "src/index.js",
|
|
22
|
+
"entrypoints": [
|
|
23
|
+
"import Board from '@webex/internal-plugin-board'",
|
|
24
|
+
"import {config, RealtimeChannel} from '@webex/internal-plugin-board'",
|
|
25
|
+
"import '@webex/internal-plugin-board'"
|
|
26
|
+
],
|
|
27
|
+
"audience": "@webex/webex-server, @webex/recipe-private-web-client, and first-party clients",
|
|
28
|
+
"notes": "Importing the package imports the mercury, encryption, conversation, and feature plugins and registers Board as internal plugin 'board' with child realtime, the board config, and the decryptContents and encryptChannel payload transformers."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "webex.internal.board runtime methods",
|
|
32
|
+
"kind": "plugin_api",
|
|
33
|
+
"source": "src/board.js",
|
|
34
|
+
"entrypoints": [
|
|
35
|
+
"webex.internal.board.createChannel()",
|
|
36
|
+
"webex.internal.board.getChannels()",
|
|
37
|
+
"webex.internal.board.getChannel()",
|
|
38
|
+
"webex.internal.board.deleteChannel()",
|
|
39
|
+
"webex.internal.board.addContent()",
|
|
40
|
+
"webex.internal.board.getContents()",
|
|
41
|
+
"webex.internal.board.addImage()",
|
|
42
|
+
"webex.internal.board.setSnapshotImage()",
|
|
43
|
+
"webex.internal.board.registerToShareMercury()",
|
|
44
|
+
"webex.internal.board.authorizeMediaInjector()"
|
|
45
|
+
],
|
|
46
|
+
"audience": "first-party clients",
|
|
47
|
+
"notes": "Representative entry points; the full list is the Public surface section of src/docs/README.md. Create and list use the cluster-local board URL when the conversation ACL cluster resolves one. The media-injector methods resolve errors as values."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "webex.internal.board.realtime methods",
|
|
51
|
+
"kind": "plugin_api",
|
|
52
|
+
"source": "src/realtime.js",
|
|
53
|
+
"entrypoints": [
|
|
54
|
+
"webex.internal.board.realtime.publish()",
|
|
55
|
+
"webex.internal.board.realtime.connectToSharedMercury()",
|
|
56
|
+
"webex.internal.board.realtime.connectByOpenNewMercuryConnection()",
|
|
57
|
+
"webex.internal.board.realtime.disconnectFromSharedMercury()",
|
|
58
|
+
"webex.internal.board.realtime.disconnectMercuryConnection()"
|
|
59
|
+
],
|
|
60
|
+
"audience": "first-party clients",
|
|
61
|
+
"notes": "Each RealtimeChannel emits event:board.activity. Shared mode needs the developer toggle web-shared-mercury and a registered Mercury connection."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "board configuration",
|
|
65
|
+
"kind": "configuration",
|
|
66
|
+
"source": "src/config.js",
|
|
67
|
+
"entrypoints": [
|
|
68
|
+
"webex.config.board.numberContentsPerPageForAdd",
|
|
69
|
+
"webex.config.board.numberContentsPerPageForGet",
|
|
70
|
+
"webex.config.board.pingInterval",
|
|
71
|
+
"webex.config.board.pongTimeout",
|
|
72
|
+
"webex.config.board.forceCloseDelay",
|
|
73
|
+
"webex.config.board.mercuryBindingPrefix"
|
|
74
|
+
],
|
|
75
|
+
"audience": "integrators configuring Webex.init",
|
|
76
|
+
"notes": "The timers default from MERCURY_PING_INTERVAL, MERCURY_PONG_TIMEOUT, and MERCURY_FORCE_CLOSE_DELAY and are strings when those variables are set. RealtimeChannel reads this block as its Mercury config."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "package scripts",
|
|
80
|
+
"kind": "npm_scripts",
|
|
81
|
+
"source": "package.json",
|
|
82
|
+
"entrypoints": [
|
|
83
|
+
"build",
|
|
84
|
+
"build:src",
|
|
85
|
+
"test:style",
|
|
86
|
+
"test:unit",
|
|
87
|
+
"test:browser",
|
|
88
|
+
"deploy:npm"
|
|
89
|
+
],
|
|
90
|
+
"audience": "contributors and CI",
|
|
91
|
+
"notes": "Run build:src before test:unit because the unit specs import the package by name and load dist. test:browser runs the specs under karma against live services. The aggregate test script calls test:integration, which is not defined, so it fails at that step."
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"source_of_truth": [
|
|
95
|
+
{
|
|
96
|
+
"surface": "board plugin implementation",
|
|
97
|
+
"paths": [
|
|
98
|
+
"src/index.js",
|
|
99
|
+
"src/board.js",
|
|
100
|
+
"src/realtime.js",
|
|
101
|
+
"src/realtime-channel.js",
|
|
102
|
+
"src/realtime-channel-collection.js",
|
|
103
|
+
"src/config.js"
|
|
104
|
+
],
|
|
105
|
+
"generated_artifacts": [
|
|
106
|
+
"dist"
|
|
107
|
+
],
|
|
108
|
+
"refresh_with": [
|
|
109
|
+
"yarn workspace @webex/internal-plugin-board build:src"
|
|
110
|
+
],
|
|
111
|
+
"validate_with": [
|
|
112
|
+
"yarn workspace @webex/internal-plugin-board test:unit",
|
|
113
|
+
"yarn workspace @webex/internal-plugin-board test:style"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"surface": "module specification",
|
|
118
|
+
"paths": [
|
|
119
|
+
"src/docs/README.md"
|
|
120
|
+
],
|
|
121
|
+
"generated_artifacts": [],
|
|
122
|
+
"refresh_with": [
|
|
123
|
+
"update alongside the behavior change in the same commit"
|
|
124
|
+
],
|
|
125
|
+
"validate_with": [
|
|
126
|
+
"spec-validator on an independent runtime"
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"generated_artifacts": [
|
|
131
|
+
{
|
|
132
|
+
"path": "dist",
|
|
133
|
+
"generated_from": "src",
|
|
134
|
+
"refresh_with": "yarn workspace @webex/internal-plugin-board build:src"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"path": "../../../.sdd/templates/repo-standards/template-map.json",
|
|
138
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
139
|
+
"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."
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"validation_matrix": [
|
|
143
|
+
{
|
|
144
|
+
"paths": [
|
|
145
|
+
"src/**"
|
|
146
|
+
],
|
|
147
|
+
"minimum": [
|
|
148
|
+
"yarn workspace @webex/internal-plugin-board build:src",
|
|
149
|
+
"yarn workspace @webex/internal-plugin-board test:unit"
|
|
150
|
+
],
|
|
151
|
+
"recommended": [
|
|
152
|
+
"yarn workspace @webex/internal-plugin-board test:style"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"paths": [
|
|
157
|
+
"src/index.js",
|
|
158
|
+
"src/realtime.js",
|
|
159
|
+
"src/realtime-channel.js"
|
|
160
|
+
],
|
|
161
|
+
"minimum": [
|
|
162
|
+
"yarn workspace @webex/internal-plugin-board build:src",
|
|
163
|
+
"yarn workspace @webex/internal-plugin-board test:unit"
|
|
164
|
+
],
|
|
165
|
+
"recommended": [
|
|
166
|
+
"review the sibling package specifications packages/@webex/internal-plugin-mercury/src/docs/README.md and packages/@webex/webex-core/src/docs/README.md when the transformer, the RealtimeChannel base class, or the shared-socket handling change",
|
|
167
|
+
"add unit cases for the payload transformer, which has none today"
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"change_impact": [
|
|
172
|
+
{
|
|
173
|
+
"paths": [
|
|
174
|
+
"src/board.js"
|
|
175
|
+
],
|
|
176
|
+
"affects": [
|
|
177
|
+
"channel creation and its cluster-local routing",
|
|
178
|
+
"content encryption and decryption",
|
|
179
|
+
"image and snapshot upload",
|
|
180
|
+
"channel deletion and locking",
|
|
181
|
+
"shared Mercury registration",
|
|
182
|
+
"transcoder authorization for mobile sharing"
|
|
183
|
+
],
|
|
184
|
+
"refresh_with": [
|
|
185
|
+
"yarn workspace @webex/internal-plugin-board build:src"
|
|
186
|
+
],
|
|
187
|
+
"validate_with": [
|
|
188
|
+
"yarn workspace @webex/internal-plugin-board test:unit"
|
|
189
|
+
],
|
|
190
|
+
"avoid_direct_edits": [
|
|
191
|
+
"dist"
|
|
192
|
+
],
|
|
193
|
+
"notes": "Content written by older or other clients must still decrypt, so the encrypted content shape (device, type, encryptionKeyUrl, payload, file) is a cross-client contract."
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"paths": [
|
|
197
|
+
"src/realtime.js",
|
|
198
|
+
"src/realtime-channel.js",
|
|
199
|
+
"src/realtime-channel-collection.js"
|
|
200
|
+
],
|
|
201
|
+
"affects": [
|
|
202
|
+
"the publishRequest frame and board bindings",
|
|
203
|
+
"own-socket and shared-socket connect and disconnect",
|
|
204
|
+
"event:board.activity routing"
|
|
205
|
+
],
|
|
206
|
+
"refresh_with": [
|
|
207
|
+
"yarn workspace @webex/internal-plugin-board build:src"
|
|
208
|
+
],
|
|
209
|
+
"validate_with": [
|
|
210
|
+
"yarn workspace @webex/internal-plugin-board test:unit"
|
|
211
|
+
],
|
|
212
|
+
"avoid_direct_edits": [
|
|
213
|
+
"dist"
|
|
214
|
+
],
|
|
215
|
+
"notes": "RealtimeChannel inherits the whole Mercury implementation under namespace Board, so a Mercury change can change board sockets."
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"paths": [
|
|
219
|
+
"src/index.js",
|
|
220
|
+
"src/config.js"
|
|
221
|
+
],
|
|
222
|
+
"affects": [
|
|
223
|
+
"registration as webex.internal.board and the sibling plugin imports",
|
|
224
|
+
"the decryptContents and encryptChannel payload transformers",
|
|
225
|
+
"the board config, including board socket timers"
|
|
226
|
+
],
|
|
227
|
+
"refresh_with": [
|
|
228
|
+
"yarn workspace @webex/internal-plugin-board build:src"
|
|
229
|
+
],
|
|
230
|
+
"validate_with": [
|
|
231
|
+
"yarn workspace @webex/internal-plugin-board test:unit"
|
|
232
|
+
],
|
|
233
|
+
"avoid_direct_edits": [
|
|
234
|
+
"dist"
|
|
235
|
+
],
|
|
236
|
+
"notes": "The transformers have no unit case; changes need a new test or a live check."
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"evidence_rules": [
|
|
240
|
+
{
|
|
241
|
+
"claim_category": "command_name",
|
|
242
|
+
"sources": [
|
|
243
|
+
"package.json"
|
|
244
|
+
],
|
|
245
|
+
"requirement": "The script must exist in package.json scripts.",
|
|
246
|
+
"notes": "test:integration does not exist; the integration specs run only through test:browser, which needs live services."
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"claim_category": "import_path",
|
|
250
|
+
"sources": [
|
|
251
|
+
"src/index.js"
|
|
252
|
+
],
|
|
253
|
+
"requirement": "A binding is public only if exported from src/index.js.",
|
|
254
|
+
"notes": "Exports: default Board, named config and RealtimeChannel."
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"claim_category": "behavior_claim",
|
|
258
|
+
"sources": [
|
|
259
|
+
"src",
|
|
260
|
+
"test/unit/spec"
|
|
261
|
+
],
|
|
262
|
+
"requirement": "Ground every behavioral claim in source or test evidence.",
|
|
263
|
+
"notes": "Commit history is not an evidence source for this package. README.md is context only (docs/adr/0001-retain-product-readme.md). Socket lifecycle, KMS, and the service catalog are owned by sibling packages; consult their specifications when present, else their code."
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"negative_guidance": [
|
|
267
|
+
{
|
|
268
|
+
"rule": "Do not send board content without encrypting it with channel.defaultEncryptionKeyUrl.",
|
|
269
|
+
"why": "The board service stores opaque ciphertext and other clients decrypt with that key."
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"rule": "Do not route createChannel or getChannels to the home board cluster when the ACL cluster resolves a board service.",
|
|
273
|
+
"why": "In-code comment: the home cluster answers with a cross-cluster 307 the browser cannot follow."
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"rule": "Do not post addContent chunks in parallel.",
|
|
277
|
+
"why": "In-code comment: parallel chunks race among patches."
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"rule": "Do not make authorizeMediaInjector or unauthorizeMediaInjector reject on service errors without a design change.",
|
|
281
|
+
"why": "In-code comment: whiteboard sharing must keep working when only mobile delivery fails."
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"rule": "Do not treat README.md as the method, event, or error reference.",
|
|
285
|
+
"why": "Its usage block is a placeholder; see docs/adr/0001-retain-product-readme.md."
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"rule": "Do not run test:unit against a stale dist.",
|
|
289
|
+
"why": "The unit specs import the package by name, which resolves main (dist/index.js)."
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"rule": "Do not infer a coverage threshold for this package.",
|
|
293
|
+
"why": "The developer confirmed no coverage gate applies; the legacy Jest config sets none."
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"confidence_policy": {
|
|
297
|
+
"high": {
|
|
298
|
+
"action": "update",
|
|
299
|
+
"expectation": "Source and unit test evidence both support the change, and the behavior has a case in test/unit/spec."
|
|
300
|
+
},
|
|
301
|
+
"medium": {
|
|
302
|
+
"action": "narrow-scope",
|
|
303
|
+
"expectation": "Only source evidence exists, for example the payload transformer, the media-injector methods, processActivityEvent, or the shared-socket refresh. Pin current behavior with a characterization test before modifying."
|
|
304
|
+
},
|
|
305
|
+
"low": {
|
|
306
|
+
"action": "noop",
|
|
307
|
+
"expectation": "Neither source nor tests settle the question, for example the partial-delete server API. Stop and report the gap."
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"repository_topology": {
|
|
311
|
+
"main_entrypoints": [
|
|
312
|
+
{
|
|
313
|
+
"name": "package entry",
|
|
314
|
+
"path": "src/index.js",
|
|
315
|
+
"purpose": "Imports the sibling plugins, registers the board plugin with its config and payload transformer, and re-exports Board, config, and RealtimeChannel",
|
|
316
|
+
"notes": "No subpath exports."
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
"workspace_packages": [
|
|
320
|
+
{
|
|
321
|
+
"name": "@webex/internal-plugin-board",
|
|
322
|
+
"paths": [
|
|
323
|
+
"src",
|
|
324
|
+
"test"
|
|
325
|
+
],
|
|
326
|
+
"notes": "One module; this SDD root is the package directory inside the webex-js-sdk monorepo."
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"source_surfaces": [
|
|
330
|
+
{
|
|
331
|
+
"name": "board plugin",
|
|
332
|
+
"paths": [
|
|
333
|
+
"src"
|
|
334
|
+
],
|
|
335
|
+
"notes": "index.js, board.js, realtime.js, realtime-channel.js, realtime-channel-collection.js, config.js. Specified at src/docs/README.md."
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "tests",
|
|
339
|
+
"paths": [
|
|
340
|
+
"test/unit/spec",
|
|
341
|
+
"test/integration/spec"
|
|
342
|
+
],
|
|
343
|
+
"notes": "Three unit specs run by Jest through webex-legacy-tools (58 cases). Three integration specs run only by test:browser; realtime.js and sharing-mercury.js are describe.skip."
|
|
344
|
+
}
|
|
345
|
+
],
|
|
346
|
+
"generated_surfaces": [
|
|
347
|
+
{
|
|
348
|
+
"name": "build output",
|
|
349
|
+
"paths": [
|
|
350
|
+
"dist"
|
|
351
|
+
],
|
|
352
|
+
"generated_from": "src",
|
|
353
|
+
"refresh_with": "yarn workspace @webex/internal-plugin-board build:src",
|
|
354
|
+
"notes": "Produced by webex-legacy-tools. Do not edit by hand. The unit specs load it."
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "repo-standards template map",
|
|
358
|
+
"paths": [
|
|
359
|
+
"../../../.sdd/templates/repo-standards"
|
|
360
|
+
],
|
|
361
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
362
|
+
"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.",
|
|
363
|
+
"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."
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"validation_entrypoints": [
|
|
367
|
+
{
|
|
368
|
+
"name": "unit tests",
|
|
369
|
+
"command": "yarn workspace @webex/internal-plugin-board test:unit",
|
|
370
|
+
"scope": "test/unit/spec",
|
|
371
|
+
"notes": "jest via webex-legacy-tools --runner jest; run build:src first."
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "lint",
|
|
375
|
+
"command": "yarn workspace @webex/internal-plugin-board test:style",
|
|
376
|
+
"scope": "src",
|
|
377
|
+
"notes": "eslint via the local .eslintrc.js; exits 0 with require-jsdoc warnings; the shared ignore patterns skip src/docs/README.md."
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"sync_paths": [
|
|
381
|
+
{
|
|
382
|
+
"source": "src/board.js",
|
|
383
|
+
"targets": [
|
|
384
|
+
"src/docs/README.md"
|
|
385
|
+
],
|
|
386
|
+
"mechanism": "Manual; update the module specification in the same change that alters observable behavior.",
|
|
387
|
+
"notes": "The same applies to src/realtime.js, src/index.js, and src/config.js."
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
391
|
+
"targets": [
|
|
392
|
+
"../../../.sdd/templates/repo-standards"
|
|
393
|
+
],
|
|
394
|
+
"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.",
|
|
395
|
+
"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."
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
"folder_readme_contract": {
|
|
400
|
+
"required_sections": [
|
|
401
|
+
"purpose",
|
|
402
|
+
"boundaries",
|
|
403
|
+
"key-files",
|
|
404
|
+
"common-tasks"
|
|
405
|
+
],
|
|
406
|
+
"rules": [
|
|
407
|
+
"Orient the reader before describing detail.",
|
|
408
|
+
"Link to the module specification rather than duplicating it."
|
|
409
|
+
],
|
|
410
|
+
"example_policy": "Examples are allowed only when verified against src/ or test/.",
|
|
411
|
+
"fallback": "Omit a section rather than inventing content; report unresolved facts as gaps."
|
|
412
|
+
},
|
|
413
|
+
"regression_feedback_rules": [
|
|
414
|
+
{
|
|
415
|
+
"trigger": "The encrypted content shape, the publishRequest frame, or the binding format changes.",
|
|
416
|
+
"required_followups": [
|
|
417
|
+
"Add or update cases in test/unit/spec/encryption.js or test/unit/spec/realtime.js",
|
|
418
|
+
"Update MOD-010, MOD-011, MOD-021, MOD-022, and INV-004 in src/docs/README.md"
|
|
419
|
+
],
|
|
420
|
+
"notes": "Other clients read the same board contents and frames."
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"trigger": "The payload transformer predicates or transforms change.",
|
|
424
|
+
"required_followups": [
|
|
425
|
+
"Add a unit case for the changed predicate or transform",
|
|
426
|
+
"Update MOD-003 and MOD-004 in src/docs/README.md"
|
|
427
|
+
],
|
|
428
|
+
"notes": "Channel creation depends on encryptChannel running before encryptKmsMessage."
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"surface_owners": [
|
|
432
|
+
{
|
|
433
|
+
"surface": "module implementation and specifications",
|
|
434
|
+
"owner": "@webex/web-sdk",
|
|
435
|
+
"edit_boundary": "Owner per the monorepo .github/CODEOWNERS default rule; the package has no explicit entry."
|
|
436
|
+
}
|
|
437
|
+
],
|
|
438
|
+
"do_not_edit": [
|
|
439
|
+
"dist",
|
|
440
|
+
"../../../.sdd/templates/repo-standards"
|
|
441
|
+
],
|
|
442
|
+
"marker_scopes": {
|
|
443
|
+
"sdd": [
|
|
444
|
+
".sdd/manifest.json",
|
|
445
|
+
"src/docs/README.md",
|
|
446
|
+
"docs"
|
|
447
|
+
]
|
|
448
|
+
},
|
|
449
|
+
"fallback_rules": [
|
|
450
|
+
"When source and tests disagree, code is the referee and the disagreement is recorded rather than silently resolved.",
|
|
451
|
+
"When neither source nor tests settle a question, report it as a gap instead of inferring.",
|
|
452
|
+
"Commit history is not a valid rationale source for this package."
|
|
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
|
+
}
|