@webex/internal-plugin-task 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.
@@ -0,0 +1,566 @@
1
+ {
2
+ "$schema": "./schemas/repo-context.schema.json",
3
+ "version": 1,
4
+ "repository": {
5
+ "name": "@webex/internal-plugin-task",
6
+ "purpose": "Internal Webex JS SDK plugin for the Raindrop task service. It registers webex.internal.task, wraps the task REST operations (list, get, create, update, delete, accept, and reject) on catalog service raindrop, encrypts task title and notes with a KMS key before create and update and decrypts them in responses through webex.internal.encryption, and offers register and unregister calls that register the device, connect Mercury, and emit task:registered and task:unregistered without subscribing to any task event."
7
+ },
8
+ "commands": {
9
+ "install": "yarn",
10
+ "compile": "yarn workspace @webex/internal-plugin-task build:src",
11
+ "build": "yarn workspace @webex/internal-plugin-task build",
12
+ "unit-test": "yarn workspace @webex/internal-plugin-task test:unit",
13
+ "integration-test": "yarn workspace @webex/internal-plugin-task test:integration",
14
+ "browser-test": "yarn workspace @webex/internal-plugin-task test:browser",
15
+ "lint": "yarn workspace @webex/internal-plugin-task test:style",
16
+ "deploy": "yarn workspace @webex/internal-plugin-task deploy:npm"
17
+ },
18
+ "public_interfaces": [
19
+ {
20
+ "name": "@webex/internal-plugin-task package barrel",
21
+ "kind": "package_export",
22
+ "source": "src/index.js",
23
+ "entrypoints": [
24
+ "import Task from '@webex/internal-plugin-task'"
25
+ ],
26
+ "audience": "the sibling package webex, which lists this package as a dependency and requires it in src/webex.js",
27
+ "notes": "Importing the package also imports the device, encryption, and conversation plugins for their side effects and registers Task as internal plugin 'task' with config {task: {}}. The event-name constants are not re-exported."
28
+ },
29
+ {
30
+ "name": "webex.internal.task runtime methods",
31
+ "kind": "plugin_api",
32
+ "source": "src/task.js",
33
+ "entrypoints": [
34
+ "webex.internal.task.acceptTask()",
35
+ "webex.internal.task.createTask()",
36
+ "webex.internal.task.deleteTask()",
37
+ "webex.internal.task.getTask()",
38
+ "webex.internal.task.listMyTasks()",
39
+ "webex.internal.task.register()",
40
+ "webex.internal.task.rejectTask()",
41
+ "webex.internal.task.unregister()",
42
+ "webex.internal.task.updateTask()"
43
+ ],
44
+ "audience": "SDK plugins and applications that manage Webex tasks",
45
+ "notes": "REST methods resolve the whole response; every method except deleteTask decrypts title and notes in body. createTask and updateTask encrypt the caller's object in place. listenForEvents and stopListeningForEvents are JSDoc-private and empty."
46
+ },
47
+ {
48
+ "name": "plugin events",
49
+ "kind": "event",
50
+ "source": "src/constants.js",
51
+ "entrypoints": [
52
+ "task:registered",
53
+ "task:unregistered"
54
+ ],
55
+ "audience": "listeners on webex.internal.task",
56
+ "notes": "Emitted on the plugin with no payload by register and unregister."
57
+ },
58
+ {
59
+ "name": "package scripts",
60
+ "kind": "npm_scripts",
61
+ "source": "package.json",
62
+ "entrypoints": [
63
+ "build",
64
+ "build:src",
65
+ "test:style",
66
+ "test:unit",
67
+ "test:integration",
68
+ "test:browser",
69
+ "deploy:npm"
70
+ ],
71
+ "audience": "contributors and CI",
72
+ "notes": "Do not use the aggregate test script as a verification command; it chains every tier including the browser run. test:unit needs this package's build output and the sibling packages' build output."
73
+ }
74
+ ],
75
+ "source_of_truth": [
76
+ {
77
+ "surface": "Task plugin implementation",
78
+ "paths": [
79
+ "src/index.js",
80
+ "src/task.js",
81
+ "src/constants.js",
82
+ "src/config.js",
83
+ "src/helpers/encrypt.helper.js",
84
+ "src/helpers/decrypt.helper.js"
85
+ ],
86
+ "generated_artifacts": [
87
+ "dist"
88
+ ],
89
+ "refresh_with": [
90
+ "yarn workspace @webex/internal-plugin-task build:src"
91
+ ],
92
+ "validate_with": [
93
+ "yarn workspace @webex/internal-plugin-task build:src",
94
+ "yarn workspace @webex/internal-plugin-task test:unit",
95
+ "yarn workspace @webex/internal-plugin-task test:style"
96
+ ]
97
+ },
98
+ {
99
+ "surface": "module specification",
100
+ "paths": [
101
+ "src/docs/README.md"
102
+ ],
103
+ "generated_artifacts": [],
104
+ "refresh_with": [
105
+ "update alongside the behavior change in the same commit"
106
+ ],
107
+ "validate_with": [
108
+ "spec-validator on an independent runtime"
109
+ ]
110
+ }
111
+ ],
112
+ "generated_artifacts": [
113
+ {
114
+ "path": "dist",
115
+ "generated_from": "src",
116
+ "refresh_with": "yarn workspace @webex/internal-plugin-task build:src"
117
+ },
118
+ {
119
+ "path": "../../../.sdd/templates/repo-standards/template-map.json",
120
+ "generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
121
+ "refresh_with": "Run the setup script of the active Repo Annotation installation against the monorepo root"
122
+ }
123
+ ],
124
+ "validation_matrix": [
125
+ {
126
+ "paths": [
127
+ "src/**"
128
+ ],
129
+ "minimum": [
130
+ "yarn workspace @webex/internal-plugin-task build:src",
131
+ "yarn workspace @webex/internal-plugin-task test:unit",
132
+ "yarn workspace @webex/internal-plugin-task test:style"
133
+ ],
134
+ "recommended": []
135
+ },
136
+ {
137
+ "paths": [
138
+ "src/helpers/**"
139
+ ],
140
+ "minimum": [
141
+ "yarn workspace @webex/internal-plugin-task build:src",
142
+ "yarn workspace @webex/internal-plugin-task test:unit",
143
+ "yarn workspace @webex/internal-plugin-task test:style"
144
+ ],
145
+ "recommended": [
146
+ "add a helper unit case for the existing-key path and for encryption or decryption failures, because none exists today"
147
+ ]
148
+ },
149
+ {
150
+ "paths": [
151
+ "package.json"
152
+ ],
153
+ "minimum": [
154
+ "yarn workspace @webex/internal-plugin-task build:src",
155
+ "yarn workspace @webex/internal-plugin-task test:unit",
156
+ "yarn workspace @webex/internal-plugin-task test:style",
157
+ "yarn workspace @webex/internal-plugin-task test:browser"
158
+ ],
159
+ "recommended": [
160
+ "yarn workspace @webex/internal-plugin-task test:integration"
161
+ ]
162
+ },
163
+ {
164
+ "paths": [
165
+ ".eslintrc.js",
166
+ "babel.config.js",
167
+ "jest.config.js"
168
+ ],
169
+ "minimum": [
170
+ "yarn workspace @webex/internal-plugin-task build:src",
171
+ "yarn workspace @webex/internal-plugin-task test:unit",
172
+ "yarn workspace @webex/internal-plugin-task test:style"
173
+ ],
174
+ "recommended": []
175
+ },
176
+ {
177
+ "paths": [
178
+ "AGENTS.md",
179
+ "README.md",
180
+ "docs/**",
181
+ "src/docs/**",
182
+ ".sdd/manifest.json",
183
+ ".repo-context.json",
184
+ "schemas/repo-context.schema.json"
185
+ ],
186
+ "minimum": [
187
+ "spec-validator on an independent runtime"
188
+ ],
189
+ "recommended": [
190
+ "the Repo Annotation checkers: check_manifest.py, check_repo_context.py, check_spec_index.py, and check_ignored_outputs.py --manifest with --repo-root at this package, and check_orchestrator_root.py at the monorepo root"
191
+ ]
192
+ },
193
+ {
194
+ "paths": [
195
+ "process"
196
+ ],
197
+ "minimum": [
198
+ "yarn workspace @webex/internal-plugin-task test:browser"
199
+ ],
200
+ "recommended": []
201
+ },
202
+ {
203
+ "paths": [
204
+ "test/unit/spec/**"
205
+ ],
206
+ "minimum": [
207
+ "yarn workspace @webex/internal-plugin-task build:src",
208
+ "yarn workspace @webex/internal-plugin-task test:unit"
209
+ ],
210
+ "recommended": [
211
+ "yarn workspace @webex/internal-plugin-task test:style"
212
+ ]
213
+ },
214
+ {
215
+ "paths": [
216
+ "test/integration/spec/**"
217
+ ],
218
+ "minimum": [
219
+ "yarn workspace @webex/internal-plugin-task test:integration"
220
+ ],
221
+ "recommended": []
222
+ }
223
+ ],
224
+ "change_impact": [
225
+ {
226
+ "paths": [
227
+ "src/helpers/encrypt.helper.js",
228
+ "src/helpers/decrypt.helper.js"
229
+ ],
230
+ "affects": [
231
+ "which task fields leave the client in plaintext",
232
+ "the KMS key used for each task"
233
+ ],
234
+ "refresh_with": [
235
+ "yarn workspace @webex/internal-plugin-task build:src"
236
+ ],
237
+ "validate_with": [
238
+ "yarn workspace @webex/internal-plugin-task build:src",
239
+ "yarn workspace @webex/internal-plugin-task test:unit",
240
+ "yarn workspace @webex/internal-plugin-task test:style"
241
+ ],
242
+ "avoid_direct_edits": [
243
+ "dist"
244
+ ],
245
+ "notes": "title and notes must stay encrypted before any request that carries them."
246
+ },
247
+ {
248
+ "paths": [
249
+ "src/task.js"
250
+ ],
251
+ "affects": [
252
+ "Raindrop request shapes",
253
+ "the registered state and plugin events"
254
+ ],
255
+ "refresh_with": [
256
+ "yarn workspace @webex/internal-plugin-task build:src"
257
+ ],
258
+ "validate_with": [
259
+ "yarn workspace @webex/internal-plugin-task build:src",
260
+ "yarn workspace @webex/internal-plugin-task test:unit",
261
+ "yarn workspace @webex/internal-plugin-task test:style"
262
+ ],
263
+ "avoid_direct_edits": [
264
+ "dist"
265
+ ],
266
+ "notes": "REST methods resolve the whole response; changing that breaks callers that read response.body."
267
+ },
268
+ {
269
+ "paths": [
270
+ "src/index.js",
271
+ "src/constants.js"
272
+ ],
273
+ "affects": [
274
+ "the package export",
275
+ "the internal plugin name 'task'",
276
+ "the event names"
277
+ ],
278
+ "refresh_with": [
279
+ "yarn workspace @webex/internal-plugin-task build:src"
280
+ ],
281
+ "validate_with": [
282
+ "yarn workspace @webex/internal-plugin-task build:src",
283
+ "yarn workspace @webex/internal-plugin-task test:unit",
284
+ "yarn workspace @webex/internal-plugin-task test:style"
285
+ ],
286
+ "avoid_direct_edits": [
287
+ "dist"
288
+ ],
289
+ "notes": "Renaming the plugin or an event is a breaking change for importers and listeners."
290
+ },
291
+ {
292
+ "paths": [
293
+ "package.json"
294
+ ],
295
+ "affects": [
296
+ "the published entry points (main, devMain)",
297
+ "package scripts and the manifest commands that call them",
298
+ "runtime dependencies resolved by importers"
299
+ ],
300
+ "refresh_with": [
301
+ "yarn workspace @webex/internal-plugin-task build:src"
302
+ ],
303
+ "validate_with": [
304
+ "yarn workspace @webex/internal-plugin-task build:src",
305
+ "yarn workspace @webex/internal-plugin-task test:unit",
306
+ "yarn workspace @webex/internal-plugin-task test:style"
307
+ ],
308
+ "avoid_direct_edits": [
309
+ "dist"
310
+ ],
311
+ "notes": "package.json is the native artifact of the published task-sdk contract; update .sdd/manifest.json commands and docs/getting-started.md when a script changes."
312
+ },
313
+ {
314
+ "paths": [
315
+ "process"
316
+ ],
317
+ "affects": [
318
+ "the legacy-tools browser test run (test:browser)"
319
+ ],
320
+ "refresh_with": [
321
+ "edit by hand, then run the test:browser comparison described in notes"
322
+ ],
323
+ "validate_with": [
324
+ "yarn workspace @webex/internal-plugin-task test:browser"
325
+ ],
326
+ "avoid_direct_edits": [
327
+ "dist"
328
+ ],
329
+ "notes": "A passing browser run has not been verified (the unit specs use Jest globals that karma does not provide), so compare the test:browser result before and after the change."
330
+ }
331
+ ],
332
+ "evidence_rules": [
333
+ {
334
+ "claim_category": "command_name",
335
+ "sources": [
336
+ "package.json"
337
+ ],
338
+ "requirement": "The script must exist in package.json scripts.",
339
+ "notes": "Never cite the aggregate test script as a verification command."
340
+ },
341
+ {
342
+ "claim_category": "import_path",
343
+ "sources": [
344
+ "src/index.js"
345
+ ],
346
+ "requirement": "A binding is public only if exported from src/index.js.",
347
+ "notes": "Only the default Task export exists; there are no subpath entry points."
348
+ },
349
+ {
350
+ "claim_category": "behavior_claim",
351
+ "sources": [
352
+ "src",
353
+ "test/unit/spec"
354
+ ],
355
+ "requirement": "Ground every behavioral claim in source or unit test evidence.",
356
+ "notes": "Commit history is not an evidence source for this package. README.md is retained product documentation, not the behavioral authority. test/integration/spec/task.js tests its own mock and is not evidence of plugin behavior."
357
+ }
358
+ ],
359
+ "negative_guidance": [
360
+ {
361
+ "rule": "Do not reuse a task object after passing it to createTask or updateTask.",
362
+ "why": "The encrypt helper replaces title and notes with ciphertext in place, so a retry encrypts them again."
363
+ },
364
+ {
365
+ "rule": "Do not call updateTask without the task's encryptionKeyUrl when the existing key must be kept.",
366
+ "why": "Without it the helper creates a new unbound key for that update."
367
+ },
368
+ {
369
+ "rule": "Do not expect task events after register.",
370
+ "why": "listenForEvents is empty; register only registers the device, connects Mercury, and emits task:registered."
371
+ },
372
+ {
373
+ "rule": "Do not treat README.md as the behavioral reference.",
374
+ "why": "It omits registration, encryption, and return shapes. See docs/adr/0001-retain-product-readme.md."
375
+ },
376
+ {
377
+ "rule": "Do not infer a coverage threshold for this package.",
378
+ "why": "No coverage gate applies: jest-config-legacy sets collectCoverage false and package.json has no coverage script."
379
+ }
380
+ ],
381
+ "confidence_policy": {
382
+ "high": {
383
+ "action": "update",
384
+ "expectation": "Source and unit test evidence both support the change, for example request shapes and the decrypt helper."
385
+ },
386
+ "medium": {
387
+ "action": "narrow-scope",
388
+ "expectation": "Only source evidence exists, for example acceptTask, rejectTask, the register guards, and the existing-key encryption path. Pin current behavior with a characterization test before modifying."
389
+ },
390
+ "low": {
391
+ "action": "noop",
392
+ "expectation": "Neither source nor tests settle the question, for example a Raindrop response shape or whether the service binds the created key. Stop and report the gap."
393
+ }
394
+ },
395
+ "repository_topology": {
396
+ "main_entrypoints": [
397
+ {
398
+ "name": "package barrel",
399
+ "path": "src/index.js",
400
+ "purpose": "Imports the device, encryption, and conversation plugins for their side effects, registers the plugin, and re-exports Task",
401
+ "notes": "No subpath exports."
402
+ }
403
+ ],
404
+ "workspace_packages": [
405
+ {
406
+ "name": "@webex/internal-plugin-task",
407
+ "paths": [
408
+ "src",
409
+ "test"
410
+ ],
411
+ "notes": "One module; this SDD root is the package directory inside the webex-js-sdk monorepo."
412
+ }
413
+ ],
414
+ "source_surfaces": [
415
+ {
416
+ "name": "Task plugin",
417
+ "paths": [
418
+ "src"
419
+ ],
420
+ "notes": "index.js, task.js, constants.js, config.js, helpers/. Specified at src/docs/README.md."
421
+ },
422
+ {
423
+ "name": "tests",
424
+ "paths": [
425
+ "test/unit/spec",
426
+ "test/integration/spec"
427
+ ],
428
+ "notes": "Three Jest specs; one mocha spec over an in-file mock."
429
+ }
430
+ ],
431
+ "generated_surfaces": [
432
+ {
433
+ "name": "build output",
434
+ "paths": [
435
+ "dist"
436
+ ],
437
+ "generated_from": "src",
438
+ "refresh_with": "yarn workspace @webex/internal-plugin-task build:src",
439
+ "notes": "Produced by webex-legacy-tools. Do not edit by hand."
440
+ },
441
+ {
442
+ "name": "repo-standards template map",
443
+ "paths": [
444
+ "../../../.sdd/templates/repo-standards"
445
+ ],
446
+ "generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
447
+ "refresh_with": "Run the setup script of the active Repo Annotation installation against the monorepo root",
448
+ "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."
449
+ }
450
+ ],
451
+ "validation_entrypoints": [
452
+ {
453
+ "name": "unit tests",
454
+ "command": "yarn workspace @webex/internal-plugin-task test:unit",
455
+ "scope": "test/unit/spec",
456
+ "notes": "Jest via webex-legacy-tools --runner jest. Run build:src first: test/unit/spec/task.js imports the package by name, which resolves to dist/."
457
+ },
458
+ {
459
+ "name": "integration tests",
460
+ "command": "yarn workspace @webex/internal-plugin-task test:integration",
461
+ "scope": "test/integration/spec",
462
+ "notes": "mocha via webex-legacy-tools --integration; the spec does not import this package."
463
+ },
464
+ {
465
+ "name": "browser tests",
466
+ "command": "yarn workspace @webex/internal-plugin-task test:browser",
467
+ "scope": "unit and integration specs",
468
+ "notes": "karma via webex-legacy-tools --integration --unit."
469
+ },
470
+ {
471
+ "name": "lint",
472
+ "command": "yarn workspace @webex/internal-plugin-task test:style",
473
+ "scope": "src",
474
+ "notes": "eslint via the local root .eslintrc.js."
475
+ }
476
+ ],
477
+ "sync_paths": [
478
+ {
479
+ "source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
480
+ "targets": [
481
+ "../../../.sdd/templates/repo-standards"
482
+ ],
483
+ "mechanism": "Setup script of the active Repo Annotation installation",
484
+ "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."
485
+ }
486
+ ]
487
+ },
488
+ "folder_readme_contract": {
489
+ "required_sections": [
490
+ "purpose",
491
+ "boundaries",
492
+ "key-files",
493
+ "common-tasks"
494
+ ],
495
+ "rules": [
496
+ "Orient the reader before describing detail.",
497
+ "Link to the module specification rather than duplicating it."
498
+ ],
499
+ "example_policy": "Examples are allowed only when verified against src/ or test/.",
500
+ "fallback": "Omit a section rather than inventing content; report unresolved facts as gaps."
501
+ },
502
+ "regression_feedback_rules": [
503
+ {
504
+ "trigger": "Plaintext title or notes reach the Raindrop service, or a response is returned still encrypted.",
505
+ "required_followups": [
506
+ "Add a helper unit case in test/unit/spec/helpers that reproduces the input",
507
+ "Update INV-001 to INV-003 in src/docs/README.md"
508
+ ],
509
+ "notes": "The existing-key path and failure paths have no test today."
510
+ },
511
+ {
512
+ "trigger": "A task method resolves a different shape or sends a different request.",
513
+ "required_followups": [
514
+ "Add or update the request-shape case in test/unit/spec/task.js",
515
+ "Record the change in src/docs/README.md"
516
+ ],
517
+ "notes": "acceptTask and rejectTask have no test today."
518
+ }
519
+ ],
520
+ "surface_owners": [
521
+ {
522
+ "surface": "module implementation and specification",
523
+ "owner": "@webex/web-sdk",
524
+ "edit_boundary": "The monorepo .github/CODEOWNERS has no entry for packages/@webex/internal-plugin-task, so the default * rule applies."
525
+ }
526
+ ],
527
+ "do_not_edit": [
528
+ "dist",
529
+ "../../../.sdd/templates/repo-standards"
530
+ ],
531
+ "marker_scopes": {
532
+ "sdd": [
533
+ ".sdd/manifest.json",
534
+ "src/docs/README.md",
535
+ "docs"
536
+ ]
537
+ },
538
+ "fallback_rules": [
539
+ "When source and tests disagree, code is the referee and the disagreement is recorded rather than silently resolved.",
540
+ "When neither source nor tests settle a question, report it as a gap instead of inferring.",
541
+ "Commit history is not a valid rationale source for this package."
542
+ ],
543
+ "downstream_context_pack": {
544
+ "required_human_surfaces": [
545
+ "README.md",
546
+ "docs/index.md",
547
+ "docs/architecture.md",
548
+ "src/docs/README.md"
549
+ ],
550
+ "required_agent_operational_surfaces": [
551
+ "AGENTS.md",
552
+ "docs/specs/README.md"
553
+ ],
554
+ "required_machine_readable_surface": ".sdd/manifest.json",
555
+ "recommended_machine_readable_sections": [
556
+ "public_interfaces",
557
+ "change_impact",
558
+ "evidence_rules",
559
+ "negative_guidance",
560
+ "confidence_policy",
561
+ "repository_topology",
562
+ "folder_readme_contract",
563
+ "regression_feedback_rules"
564
+ ]
565
+ }
566
+ }