@webex/internal-plugin-task 3.13.0-next.7 → 3.13.0-next.9
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 +566 -0
- package/.sdd/manifest.json +393 -0
- package/AGENTS.md +206 -0
- package/dist/task.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +93 -0
- package/docs/adr/index.md +22 -0
- package/docs/architecture.md +294 -0
- package/docs/getting-started.md +124 -0
- package/docs/index.md +47 -0
- package/docs/specs/README.md +73 -0
- package/package.json +5 -5
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +496 -0
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 1,
|
|
3
|
+
"repository": {
|
|
4
|
+
"name": "@webex/internal-plugin-task",
|
|
5
|
+
"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.",
|
|
6
|
+
"category": "cat2-legacy",
|
|
7
|
+
"primary_languages": [
|
|
8
|
+
"javascript"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"topology": "Orchestrator-plus-components",
|
|
12
|
+
"commands": {
|
|
13
|
+
"install": {
|
|
14
|
+
"command": "yarn install",
|
|
15
|
+
"source_file": "package.json",
|
|
16
|
+
"role": "install"
|
|
17
|
+
},
|
|
18
|
+
"compile": {
|
|
19
|
+
"command": "yarn workspace @webex/internal-plugin-task build:src",
|
|
20
|
+
"source_file": "package.json",
|
|
21
|
+
"role": "compile"
|
|
22
|
+
},
|
|
23
|
+
"build": {
|
|
24
|
+
"command": "yarn workspace @webex/internal-plugin-task build",
|
|
25
|
+
"source_file": "package.json",
|
|
26
|
+
"role": "package"
|
|
27
|
+
},
|
|
28
|
+
"unit-test": {
|
|
29
|
+
"command": "yarn workspace @webex/internal-plugin-task test:unit",
|
|
30
|
+
"source_file": "package.json",
|
|
31
|
+
"role": "unit-test"
|
|
32
|
+
},
|
|
33
|
+
"integration-test": {
|
|
34
|
+
"command": "yarn workspace @webex/internal-plugin-task test:integration",
|
|
35
|
+
"source_file": "package.json",
|
|
36
|
+
"role": "integration-test"
|
|
37
|
+
},
|
|
38
|
+
"browser-test": {
|
|
39
|
+
"command": "yarn workspace @webex/internal-plugin-task test:browser",
|
|
40
|
+
"source_file": "package.json",
|
|
41
|
+
"role": "other"
|
|
42
|
+
},
|
|
43
|
+
"lint": {
|
|
44
|
+
"command": "yarn workspace @webex/internal-plugin-task test:style",
|
|
45
|
+
"source_file": "package.json",
|
|
46
|
+
"role": "lint"
|
|
47
|
+
},
|
|
48
|
+
"deploy": {
|
|
49
|
+
"command": "yarn workspace @webex/internal-plugin-task deploy:npm",
|
|
50
|
+
"source_file": "package.json",
|
|
51
|
+
"role": "deploy"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"toolchain": [
|
|
55
|
+
{
|
|
56
|
+
"name": "node",
|
|
57
|
+
"version": "22.14",
|
|
58
|
+
"origin": "human-declared",
|
|
59
|
+
"declared_by": "akulakum@cisco.com (bootstrap instruction 'nvm use 22.14.0'; the workspace root AGENTS.md requires Node 22.14 for development; package.json engines >=18 is the consumer floor)"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "babel",
|
|
63
|
+
"version": "^7.17.10",
|
|
64
|
+
"origin": "repo-config",
|
|
65
|
+
"source_file": "package.json"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "eslint",
|
|
69
|
+
"version": "^8.24.0",
|
|
70
|
+
"origin": "repo-config",
|
|
71
|
+
"source_file": "package.json"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "prettier",
|
|
75
|
+
"version": "^2.7.1",
|
|
76
|
+
"origin": "repo-config",
|
|
77
|
+
"source_file": "package.json"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "sinon",
|
|
81
|
+
"version": "^9.2.4",
|
|
82
|
+
"origin": "repo-config",
|
|
83
|
+
"source_file": "package.json"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"registries": [
|
|
87
|
+
{
|
|
88
|
+
"name": "npmjs-public",
|
|
89
|
+
"type": "npm",
|
|
90
|
+
"host": "registry.npmjs.org",
|
|
91
|
+
"egress_required": true,
|
|
92
|
+
"origin": "human-declared",
|
|
93
|
+
"declared_by": "akulakum@cisco.com (registry set by the workspace root .yarnrc.yml npmRegistryServer; the package-scoped manifest records no root source_file)"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"tests": {
|
|
97
|
+
"unit": {
|
|
98
|
+
"command_ref": "unit-test",
|
|
99
|
+
"dir": "test/unit/spec",
|
|
100
|
+
"framework": "jest"
|
|
101
|
+
},
|
|
102
|
+
"integration": {
|
|
103
|
+
"command_ref": "integration-test",
|
|
104
|
+
"dir": "test/integration/spec",
|
|
105
|
+
"framework": "mocha"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"quality_gates": {
|
|
109
|
+
"code_coverage": {
|
|
110
|
+
"origin": "none",
|
|
111
|
+
"declared_by": "akulakum@cisco.com via bootstrap questionnaire (delegated check: jest.config.js re-exports @webex/jest-config-legacy, which sets collectCoverage false and no coverageThreshold; test:unit runs webex-legacy-tools with --runner jest; package.json defines no coverage script)"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"coverage_status_definitions": {
|
|
115
|
+
"specced": ">=80% public surface specced, drift <5% - spec is authoritative",
|
|
116
|
+
"partial": "40-80% specced - spec is a hint, cross-check code",
|
|
117
|
+
"untracked": "<40% specced - code is the source of truth"
|
|
118
|
+
},
|
|
119
|
+
"spec_source_policy": {
|
|
120
|
+
"mode": "keep-separate",
|
|
121
|
+
"migrated_source_disposition": "retain",
|
|
122
|
+
"disposition_decided_by": "akulakum@cisco.com",
|
|
123
|
+
"disposition_decided_at": "2026-10-09T14:40:25Z",
|
|
124
|
+
"decided_by": "akulakum@cisco.com",
|
|
125
|
+
"decided_at": "2026-10-09T14:40:25Z",
|
|
126
|
+
"decision_record": "docs/adr/0001-retain-product-readme.md"
|
|
127
|
+
},
|
|
128
|
+
"spec_sources": [],
|
|
129
|
+
"modules": [
|
|
130
|
+
{
|
|
131
|
+
"path": "src",
|
|
132
|
+
"canonical_spec": "src/docs/README.md",
|
|
133
|
+
"coverage_status": "Partial",
|
|
134
|
+
"coverage_evidence": "Field coverage 93.3% (14/15) assessed 2026-10-09 by the generator; critical field coverage 8/8. The one WEAK field is test strategy: 17 unit tests cover request shapes for five REST methods, the happy register and unregister paths, and the helpers' basic branches, but no test exercises acceptTask, rejectTask, the register guards or failures, the existing-key encryption path, encryption or decryption failures, or caller-object mutation; the integration spec tests its own mock, and no characterization baseline exists. Independent validation is recorded in the module spec Validation status row. Held at Partial: weak test strategy, no characterization baseline, and no spec-drift record.",
|
|
135
|
+
"last_assessed": "2026-10-09",
|
|
136
|
+
"contracts": {
|
|
137
|
+
"provides": [
|
|
138
|
+
"task-sdk"
|
|
139
|
+
],
|
|
140
|
+
"requires": [
|
|
141
|
+
"raindrop-tasks-http",
|
|
142
|
+
"webex-core-plugin-host",
|
|
143
|
+
"encryption-sdk",
|
|
144
|
+
"webex-device-registration",
|
|
145
|
+
"mercury-sdk",
|
|
146
|
+
"conversation-sdk",
|
|
147
|
+
"lodash"
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
"section_profile": {
|
|
151
|
+
"has_tiers": false,
|
|
152
|
+
"has_ui": false,
|
|
153
|
+
"crosses_service_boundaries": true,
|
|
154
|
+
"holds_client_state": true,
|
|
155
|
+
"enforces_domain_rules": true,
|
|
156
|
+
"is_concurrent_async": true,
|
|
157
|
+
"owns_persistence": false,
|
|
158
|
+
"stateful_transitions": true,
|
|
159
|
+
"exposes_wire_protocol": true,
|
|
160
|
+
"ui_multi_screen": false,
|
|
161
|
+
"large_data_model": false,
|
|
162
|
+
"returns_caller_errors": true,
|
|
163
|
+
"module_specific_conventions": true,
|
|
164
|
+
"published_package": true,
|
|
165
|
+
"embedded_in_host": false,
|
|
166
|
+
"has_design_tradeoff": true,
|
|
167
|
+
"resolved_by": "claude-cowork (code evidence; bootstrap questionnaire; Codex review on PR 5280)",
|
|
168
|
+
"resolved_at": "2026-10-12T06:10:19Z",
|
|
169
|
+
"has_submodules": false,
|
|
170
|
+
"has_submodules_computed_by": "scripts/module_tree.py",
|
|
171
|
+
"has_submodules_computed_at": "2026-10-12T07:56:23Z"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"contract_catalog": {
|
|
176
|
+
"index_path": "docs/architecture.md",
|
|
177
|
+
"definitions": {
|
|
178
|
+
"task-sdk": {
|
|
179
|
+
"kind": "sdk",
|
|
180
|
+
"publication": "published",
|
|
181
|
+
"source_kind": "repository-path",
|
|
182
|
+
"source": "package.json",
|
|
183
|
+
"summary": "Published npm package. main is dist/index.js and devMain is src/index.js. Importing the package imports @webex/internal-plugin-device, @webex/internal-plugin-encryption, and @webex/internal-plugin-conversation for their side effects and registers Task as the internal plugin 'task' with config {task: {}} and empty payload-transformer predicate and transform lists. The barrel src/index.js exports only Task as default. Per-method behavior is in src/docs/README.md."
|
|
184
|
+
},
|
|
185
|
+
"raindrop-tasks-http": {
|
|
186
|
+
"kind": "http",
|
|
187
|
+
"publication": "internal",
|
|
188
|
+
"source_kind": "external",
|
|
189
|
+
"source": "Raindrop task service REST API (catalog service 'raindrop')",
|
|
190
|
+
"summary": "Consumed, not served. Calls GET tasks (query from the caller's options), GET tasks/{id}, POST tasks, PATCH tasks/{id}, DELETE tasks/{id}, POST tasks/{id}/accept, and POST tasks/{id}/reject on service raindrop. Request and response fields read by this package are listed under Protocol and wire format in src/docs/README.md."
|
|
191
|
+
},
|
|
192
|
+
"webex-core-plugin-host": {
|
|
193
|
+
"kind": "rpc",
|
|
194
|
+
"publication": "internal",
|
|
195
|
+
"source_kind": "external",
|
|
196
|
+
"source": "@webex/webex-core (WebexPlugin, registerInternalPlugin, webex.request, credentials.canAuthorize)",
|
|
197
|
+
"summary": "Host contract consumed by Task: WebexPlugin.extend supplies this.webex, this.logger, the ampersand event methods, and request(), which delegates to webex.request; registerInternalPlugin installs the plugin and merges its config; webex.canAuthorize gates register()."
|
|
198
|
+
},
|
|
199
|
+
"encryption-sdk": {
|
|
200
|
+
"kind": "sdk",
|
|
201
|
+
"publication": "internal",
|
|
202
|
+
"source_kind": "external",
|
|
203
|
+
"source": "@webex/internal-plugin-encryption (webex.internal.encryption)",
|
|
204
|
+
"summary": "The helpers call encryption.encryptText(keyUri, plaintext), encryption.decryptText(keyUri, ciphertext), and encryption.kms.createUnboundKeys({count: 1}). Key retrieval, caching, and the KMS exchange are owned by internal-plugin-encryption."
|
|
205
|
+
},
|
|
206
|
+
"webex-device-registration": {
|
|
207
|
+
"kind": "sdk",
|
|
208
|
+
"publication": "internal",
|
|
209
|
+
"source_kind": "external",
|
|
210
|
+
"source": "@webex/internal-plugin-device (packages/@webex/internal-plugin-device/src/docs/README.md)",
|
|
211
|
+
"summary": "register() calls webex.internal.device.register() before connecting Mercury. Imported for its registration side effect in src/index.js. Owned and specified by @webex/internal-plugin-device."
|
|
212
|
+
},
|
|
213
|
+
"mercury-sdk": {
|
|
214
|
+
"kind": "sdk",
|
|
215
|
+
"publication": "internal",
|
|
216
|
+
"source_kind": "external",
|
|
217
|
+
"source": "@webex/internal-plugin-mercury (packages/@webex/internal-plugin-mercury/src/docs/README.md)",
|
|
218
|
+
"summary": "register() calls webex.internal.mercury.connect() with no arguments. Not a declared dependency of this package; the plugin is registered transitively because internal-plugin-encryption's index imports it. Task subscribes to no Mercury event. Owned and specified by @webex/internal-plugin-mercury."
|
|
219
|
+
},
|
|
220
|
+
"conversation-sdk": {
|
|
221
|
+
"kind": "sdk",
|
|
222
|
+
"publication": "internal",
|
|
223
|
+
"source_kind": "external",
|
|
224
|
+
"source": "@webex/internal-plugin-conversation (webex.internal.conversation)",
|
|
225
|
+
"summary": "Imported only for its registration side effect in src/index.js. Task calls no conversation method."
|
|
226
|
+
},
|
|
227
|
+
"lodash": {
|
|
228
|
+
"kind": "sdk",
|
|
229
|
+
"publication": "published",
|
|
230
|
+
"source_kind": "external",
|
|
231
|
+
"source": "lodash@^4.17.21 (npm)",
|
|
232
|
+
"summary": "src/helpers/encrypt.helper.js imports isArray to read the first key from createUnboundKeys."
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"spec_policy": {
|
|
237
|
+
"require_what_and_why": true,
|
|
238
|
+
"require_provenance": true,
|
|
239
|
+
"protected_specs": [
|
|
240
|
+
"src/docs/README.md"
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"validation": {
|
|
244
|
+
"generator_runtime": "claude-cowork",
|
|
245
|
+
"generator_model": "claude-opus-5-5",
|
|
246
|
+
"generator_runtime_source": "host-metadata",
|
|
247
|
+
"generator_run_id": "spark-853128-task-sdd-stage0-2026-10-09",
|
|
248
|
+
"minimum_independence": "different-runtime",
|
|
249
|
+
"blocking_severities": [
|
|
250
|
+
"Blocking"
|
|
251
|
+
],
|
|
252
|
+
"base_ref": "next",
|
|
253
|
+
"head_ref": "TASK_INTERNAL_PLUGIN_SDD",
|
|
254
|
+
"validator_runtime": "current-session",
|
|
255
|
+
"validator_runtime_source": "invocation-input",
|
|
256
|
+
"runtime_fallback_tier": "different-runtime",
|
|
257
|
+
"source_commit": "e30d9f6298b48349c0a9133618272b093ac67e8b"
|
|
258
|
+
},
|
|
259
|
+
"layout": {
|
|
260
|
+
"sdd_root": ".sdd",
|
|
261
|
+
"docs_root": "docs",
|
|
262
|
+
"agent_entry_path": "AGENTS.md",
|
|
263
|
+
"standing_docs_root": "docs",
|
|
264
|
+
"spec_index_path": "docs/specs/README.md",
|
|
265
|
+
"module_docs_strategy": "source-local",
|
|
266
|
+
"module_docs_relative_path": "docs/README.md",
|
|
267
|
+
"module_docs_decision": {
|
|
268
|
+
"basis": "repo-standards-default",
|
|
269
|
+
"reason": "No module-local documentation existed. The source-local default gives src/docs/README.md. test:style runs eslint ./src/**/*.* and build:src processes -js -ts only, so Markdown under src/ does not enter the build output, and eslint reports it as ignored.",
|
|
270
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
271
|
+
"decided_at": "2026-10-09T14:40:25Z"
|
|
272
|
+
},
|
|
273
|
+
"repo_context_decision": {
|
|
274
|
+
"path": ".repo-context.json",
|
|
275
|
+
"schema_path": "schemas/repo-context.schema.json",
|
|
276
|
+
"action": "create",
|
|
277
|
+
"schema_action": "create",
|
|
278
|
+
"reason": "Neither the operational context nor its schema existed in this package. The context is created from package evidence and the schema is copied from packages/@webex/common/schemas/repo-context.schema.json (Repo Standards 0.3.0).",
|
|
279
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
280
|
+
"decided_at": "2026-10-09T14:40:25Z"
|
|
281
|
+
},
|
|
282
|
+
"artifact_decisions": [
|
|
283
|
+
{
|
|
284
|
+
"path": "docs/service.md",
|
|
285
|
+
"action": "omit",
|
|
286
|
+
"reason": "Library package, not a deployable service. package.json has no start script, container, or deployment descriptor.",
|
|
287
|
+
"decided_by": "claude-cowork (code evidence)",
|
|
288
|
+
"decided_at": "2026-10-09T14:40:25Z"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"path": "mkdocs.yml",
|
|
292
|
+
"action": "omit",
|
|
293
|
+
"reason": "No package-level documentation site exists. Documentation publishing stays with the workspace.",
|
|
294
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
295
|
+
"decided_at": "2026-10-09T14:40:25Z"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"path": "api-specs/openapi.yaml",
|
|
299
|
+
"action": "omit",
|
|
300
|
+
"reason": "The package serves no HTTP routes. It is a client of the Raindrop task service, recorded as the external internal-publication contract raindrop-tasks-http; its published surface is the npm export described by task-sdk.",
|
|
301
|
+
"decided_by": "claude-cowork (code evidence)",
|
|
302
|
+
"decided_at": "2026-10-09T14:40:25Z"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"path": "SECURITY.md",
|
|
306
|
+
"action": "omit",
|
|
307
|
+
"reason": "Neither this package nor the workspace root has a SECURITY.md; a security policy is outside the scope of this package's documentation and is not created here.",
|
|
308
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
309
|
+
"decided_at": "2026-10-09T14:40:25Z"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"path": "CONTRIBUTING.md",
|
|
313
|
+
"action": "omit",
|
|
314
|
+
"reason": "Contribution instructions are owned at the workspace root and linked from this package README.md.",
|
|
315
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
316
|
+
"decided_at": "2026-10-09T14:40:25Z"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"path": "CHANGELOG.md",
|
|
320
|
+
"action": "omit",
|
|
321
|
+
"reason": "Changelog generation is owned at the workspace root. This package has no changelog file.",
|
|
322
|
+
"decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
|
|
323
|
+
"decided_at": "2026-10-09T14:40:25Z"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"path": "CTO_CHECKLIST.yml",
|
|
327
|
+
"action": "omit",
|
|
328
|
+
"reason": "The CTO readiness checklist applies to deployable services. This package is a library.",
|
|
329
|
+
"decided_by": "claude-cowork (code evidence)",
|
|
330
|
+
"decided_at": "2026-10-09T14:40:25Z"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"path": "schemas/cto-checklist.schema.json",
|
|
334
|
+
"action": "omit",
|
|
335
|
+
"reason": "Omitted together with CTO_CHECKLIST.yml.",
|
|
336
|
+
"decided_by": "claude-cowork (code evidence)",
|
|
337
|
+
"decided_at": "2026-10-09T14:40:25Z"
|
|
338
|
+
}
|
|
339
|
+
],
|
|
340
|
+
"template_roots": {
|
|
341
|
+
"canonical": ".sdd/templates/repo-standards"
|
|
342
|
+
},
|
|
343
|
+
"repo_skills_root": ".sdd/skills",
|
|
344
|
+
"contract_index_path": "docs/architecture.md",
|
|
345
|
+
"monorepo_package": {
|
|
346
|
+
"package_path": "packages/@webex/internal-plugin-task",
|
|
347
|
+
"root_manifest_path": "../../../.sdd/manifest.json",
|
|
348
|
+
"templates_root_path": "../../../.sdd/templates/repo-standards"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"coverage_ratchet": {
|
|
352
|
+
"enabled": true,
|
|
353
|
+
"waivers": []
|
|
354
|
+
},
|
|
355
|
+
"substrate": {
|
|
356
|
+
"source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
357
|
+
"consumed": [
|
|
358
|
+
"@webex/eslint-config-legacy via .eslintrc.js",
|
|
359
|
+
"@webex/babel-config-legacy via babel.config.js",
|
|
360
|
+
"@webex/jest-config-legacy via jest.config.js",
|
|
361
|
+
"@webex/legacy-tools build and test runner via package.json",
|
|
362
|
+
"package README.md",
|
|
363
|
+
"Repo Standards 0.3.0 templates at the monorepo root .sdd/templates/repo-standards, referred to through layout.monorepo_package.templates_root_path; the package holds no templates"
|
|
364
|
+
],
|
|
365
|
+
"compliance_tier": "baseline"
|
|
366
|
+
},
|
|
367
|
+
"section_profiles": {
|
|
368
|
+
"repo": {
|
|
369
|
+
"owns_datastore": false,
|
|
370
|
+
"holds_client_state": true,
|
|
371
|
+
"components_interact": false,
|
|
372
|
+
"domain_data_across_components": false,
|
|
373
|
+
"caches_data": false,
|
|
374
|
+
"observability_convention": true,
|
|
375
|
+
"deploys_to_infra": false,
|
|
376
|
+
"shared_base_libs": true,
|
|
377
|
+
"is_monorepo": false,
|
|
378
|
+
"multi_platform": true,
|
|
379
|
+
"published_package": true,
|
|
380
|
+
"embedded_in_host": false,
|
|
381
|
+
"cross_repo_deps_material": true,
|
|
382
|
+
"security_arch_warranted": true,
|
|
383
|
+
"exposes_commands_or_artifacts": true
|
|
384
|
+
},
|
|
385
|
+
"resolved_by": "claude-cowork (code evidence; bootstrap questionnaire; Codex review on PR 5280)",
|
|
386
|
+
"resolved_at": "2026-10-12T07:56:23Z"
|
|
387
|
+
},
|
|
388
|
+
"tooling": {
|
|
389
|
+
"sdlc_skills": {
|
|
390
|
+
"source_ref": "repo-annotation@2.3.1"
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: agent-entry
|
|
3
|
+
generated_from: agents@0.3.0
|
|
4
|
+
generated_by: claude-cowork
|
|
5
|
+
approved_by: akulakum@cisco.com
|
|
6
|
+
updated_at: 2026-11-12T12:59:34Z
|
|
7
|
+
validation_status: pass-with-warnings
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# AI Agent Instructions
|
|
11
|
+
|
|
12
|
+
Package-scoped SDD entry for `@webex/internal-plugin-task`, the plugin that wraps the Raindrop task
|
|
13
|
+
service for the Webex JS SDK. This file orients agents. The monorepo root `AGENTS.md` governs
|
|
14
|
+
workspace-wide setup.
|
|
15
|
+
|
|
16
|
+
## Working Method
|
|
17
|
+
|
|
18
|
+
- Read the relevant package files before editing. Do not edit blind.
|
|
19
|
+
- Understand the task and affected surfaces before writing code.
|
|
20
|
+
- Prefer focused edits over rewriting whole files.
|
|
21
|
+
- Do not invent commands, paths, exports, request shapes, or event names. Verify them from this
|
|
22
|
+
package's source and tests.
|
|
23
|
+
- Test or validate before declaring done.
|
|
24
|
+
- Keep output concise. If something is uncertain, say so instead of guessing.
|
|
25
|
+
|
|
26
|
+
## Canonical Repository Documentation
|
|
27
|
+
|
|
28
|
+
Before changing code or documentation, start with:
|
|
29
|
+
|
|
30
|
+
- [`docs/index.md`](docs/index.md) for package documentation navigation;
|
|
31
|
+
- [`docs/architecture.md`](docs/architecture.md) for package boundaries and interactions;
|
|
32
|
+
- [`docs/specs/README.md`](docs/specs/README.md) for the manifest-backed module and contract registry;
|
|
33
|
+
- the module specification at [`src/docs/README.md`](src/docs/README.md) (Task plugin); and
|
|
34
|
+
- [`docs/adr/index.md`](docs/adr/index.md) plus applicable concrete ADRs.
|
|
35
|
+
|
|
36
|
+
Follow `.sdd/manifest.json` for each contract's publication state and canonical source. This package
|
|
37
|
+
publishes an SDK surface, so its contract artifact is `package.json` plus the `src/index.js` barrel.
|
|
38
|
+
It calls the Raindrop task HTTP API but serves none, so no OpenAPI applies.
|
|
39
|
+
|
|
40
|
+
## 1. Commands (Run First)
|
|
41
|
+
|
|
42
|
+
Use only documented commands. Do not invent alternatives when a command is missing. Run workspace
|
|
43
|
+
commands from the monorepo root.
|
|
44
|
+
|
|
45
|
+
| Task | Command |
|
|
46
|
+
| ---------------------- | ------- |
|
|
47
|
+
| Install dependencies | `yarn install` (workspace root) |
|
|
48
|
+
| Start dev environment | N/A — library package with no start script in `package.json` |
|
|
49
|
+
| Run tests | `yarn workspace @webex/internal-plugin-task test:unit` (Jest); `yarn workspace @webex/internal-plugin-task test:integration` (mocha); `yarn workspace @webex/internal-plugin-task test:browser` (karma) |
|
|
50
|
+
| Run linters | `yarn workspace @webex/internal-plugin-task test:style` |
|
|
51
|
+
| Build/release artifact | `yarn workspace @webex/internal-plugin-task build` (runs `build:src`) |
|
|
52
|
+
| Format code | N/A — no format script; `prettier` is a devDependency used through eslint |
|
|
53
|
+
|
|
54
|
+
Use the individual scripts rather than the aggregate `test` script, and run the first-run build
|
|
55
|
+
before `test:unit`; both are explained in [`docs/getting-started.md`](docs/getting-started.md).
|
|
56
|
+
|
|
57
|
+
If a required command is unknown, stop and ask for the exact command.
|
|
58
|
+
|
|
59
|
+
## 2. Agent Persona and Scope
|
|
60
|
+
|
|
61
|
+
You are the Webex web SDK engineering assistant for `@webex/internal-plugin-task`.
|
|
62
|
+
|
|
63
|
+
Primary outcomes:
|
|
64
|
+
|
|
65
|
+
- Deliver production-safe changes with unit tests and lint passing.
|
|
66
|
+
- Preserve existing behavior unless a change request explicitly requires a behavior change.
|
|
67
|
+
- Keep docs and configuration aligned with code changes.
|
|
68
|
+
|
|
69
|
+
Definition of done:
|
|
70
|
+
|
|
71
|
+
1. Requested change is implemented.
|
|
72
|
+
2. Relevant tests, lint, and build checks pass locally.
|
|
73
|
+
3. Updated docs cover new behavior, including the module spec.
|
|
74
|
+
4. PR summary includes risks and rollback notes.
|
|
75
|
+
|
|
76
|
+
## 3. Repository Knowledge
|
|
77
|
+
|
|
78
|
+
### Tech Stack
|
|
79
|
+
|
|
80
|
+
| Area | Tooling | Version |
|
|
81
|
+
| ---------------- | ------- | ------- |
|
|
82
|
+
| Language runtime | node | 22.14 for development (workspace root `AGENTS.md`); `>=18` for consumers (`package.json` engines) |
|
|
83
|
+
| Package manager | Yarn through Corepack | Pinned by the workspace root `packageManager` field |
|
|
84
|
+
| Build tool | `@webex/legacy-tools` over babel | `@babel/core` version in `package.json` `devDependencies` |
|
|
85
|
+
| Test framework | Jest via `webex-legacy-tools` (`test:unit`); mocha (`test:integration`); karma (`test:browser`) | workspace versions; `sinon` version in `package.json` `devDependencies` |
|
|
86
|
+
| Lint/format | eslint via `@webex/eslint-config-legacy`, prettier | eslint and prettier versions in `package.json` `devDependencies` |
|
|
87
|
+
|
|
88
|
+
### Project Map
|
|
89
|
+
|
|
90
|
+
- `src/index.js`: imports the device, encryption, and conversation plugins, registers internal
|
|
91
|
+
plugin `task`, and re-exports `Task` as default.
|
|
92
|
+
- `src/task.js`: the `Task` plugin. Spec: `src/docs/README.md`.
|
|
93
|
+
- `src/helpers/`: title and notes encryption and decryption.
|
|
94
|
+
- `src/constants.js`: the two plugin event names. `src/config.js`: the empty plugin config.
|
|
95
|
+
- `test/unit/spec/`: Jest specs for the plugin and helpers.
|
|
96
|
+
- `test/integration/spec/task.js`: a mocha spec over its own mock; it does not import the plugin.
|
|
97
|
+
- Build output from `build:src`: generated. Never edit by hand.
|
|
98
|
+
- `README.md`: retained product readme. It is not the behavioral authority.
|
|
99
|
+
|
|
100
|
+
### Critical Constraints
|
|
101
|
+
|
|
102
|
+
- Task `title` and `notes` must be encrypted before any request that carries them, as the module
|
|
103
|
+
spec invariants `INV-001` and `INV-002` define, and decrypted in every task-bearing response
|
|
104
|
+
(`INV-003`).
|
|
105
|
+
- REST methods resolve the whole response (`INV-004`); do not switch one to the body alone.
|
|
106
|
+
- Requests stay on catalog service `raindrop` (`INV-006`).
|
|
107
|
+
- Known defects, such as `createTask` and `updateTask` changing the caller's object and the empty
|
|
108
|
+
event hooks, are recorded in the module spec Pitfalls. Fix them only in a dedicated change with a
|
|
109
|
+
test.
|
|
110
|
+
|
|
111
|
+
## 4. Testing Workflow
|
|
112
|
+
|
|
113
|
+
Run checks in this order:
|
|
114
|
+
|
|
115
|
+
1. `yarn workspace @webex/internal-plugin-task build:src`
|
|
116
|
+
2. `yarn workspace @webex/internal-plugin-task test:unit`
|
|
117
|
+
3. `yarn workspace @webex/internal-plugin-task test:style`
|
|
118
|
+
|
|
119
|
+
Rebuild before the unit run after any `src/` change; [`docs/getting-started.md`](docs/getting-started.md)
|
|
120
|
+
under Tests explains why.
|
|
121
|
+
|
|
122
|
+
The browser run is recorded in `.sdd/manifest.json` as `commands.browser-test` (role `other`), not
|
|
123
|
+
under `tests`, because the SDD manifest `tests` schema allows only `unit`, `integration`, `e2e`, and
|
|
124
|
+
`qa`. Tier details are in [`docs/getting-started.md`](docs/getting-started.md) under Tests.
|
|
125
|
+
|
|
126
|
+
Testing rules:
|
|
127
|
+
|
|
128
|
+
- Add or update unit cases for every behavior change.
|
|
129
|
+
- Assert encrypted request bodies against a copy of the input, because the helpers change the
|
|
130
|
+
object they receive.
|
|
131
|
+
- Cover failure paths and edge cases, not only happy paths.
|
|
132
|
+
- Do not remove tests to make CI pass.
|
|
133
|
+
|
|
134
|
+
No coverage gate applies to this package; do not infer one.
|
|
135
|
+
|
|
136
|
+
## 5. Code Style and Patterns
|
|
137
|
+
|
|
138
|
+
Coding expectations:
|
|
139
|
+
|
|
140
|
+
- Follow repository style rules and static analysis output. The local `.eslintrc.js` sets `root: true`.
|
|
141
|
+
- Prefer small, composable functions over large procedural blocks.
|
|
142
|
+
- Make error handling explicit at system boundaries.
|
|
143
|
+
- Keep public interfaces stable unless a breaking change is requested.
|
|
144
|
+
- Before adding a literal path, command, status, or other policy value, search the package for
|
|
145
|
+
existing uses; event names already live in `src/constants.js`.
|
|
146
|
+
- Do not import a binding and immediately re-export it; the barrel should use direct re-exports.
|
|
147
|
+
- Do not write inline runtime `typeof` checks outside descriptively named guard implementations.
|
|
148
|
+
|
|
149
|
+
Pattern example:
|
|
150
|
+
|
|
151
|
+
```text
|
|
152
|
+
Preferred:
|
|
153
|
+
- Build a new write that sends title or notes as encryptTaskRequest, then this.request, then the
|
|
154
|
+
decrypt helper, then resolve the response. Reads and bodyless actions skip encryptTaskRequest
|
|
155
|
+
and still run the decrypt helper on a task-bearing body.
|
|
156
|
+
|
|
157
|
+
Avoid:
|
|
158
|
+
- Resolving response.body instead of the response.
|
|
159
|
+
- Logging title or notes.
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## 6. Git Workflow
|
|
163
|
+
|
|
164
|
+
- Branch naming: no convention is defined in this package or in the workspace `CONTRIBUTING.md`.
|
|
165
|
+
- Commit format: conventional commits (`feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`), which
|
|
166
|
+
the workspace `CONTRIBUTING.md` requires for pull requests.
|
|
167
|
+
- Keep commits focused and reversible.
|
|
168
|
+
- Rebase on the target branch before opening a pull request.
|
|
169
|
+
|
|
170
|
+
PR checklist:
|
|
171
|
+
|
|
172
|
+
- What changed and why.
|
|
173
|
+
- Tests run and results.
|
|
174
|
+
- Risk and impact, including encrypted-field handling and the sibling package webex, which loads
|
|
175
|
+
this plugin.
|
|
176
|
+
- Rollback approach.
|
|
177
|
+
|
|
178
|
+
## 7. Boundaries and Escalation
|
|
179
|
+
|
|
180
|
+
### Always
|
|
181
|
+
|
|
182
|
+
- Prefer existing patterns over introducing new architecture.
|
|
183
|
+
- Keep changes minimal for the requested scope.
|
|
184
|
+
- Call out assumptions and unknowns explicitly.
|
|
185
|
+
- Update the module spec in the same change that alters observable behavior.
|
|
186
|
+
|
|
187
|
+
### Ask First
|
|
188
|
+
|
|
189
|
+
- Adding dependencies or external services, including declaring the Mercury plugin.
|
|
190
|
+
- Large refactors or schema migrations.
|
|
191
|
+
- Security-sensitive changes (auth, encryption, secrets handling), including which fields are
|
|
192
|
+
encrypted or how the key is chosen.
|
|
193
|
+
- Any destructive data or infrastructure operation.
|
|
194
|
+
- Changing an export, the plugin name, or an event name.
|
|
195
|
+
- Implementing the task event hooks.
|
|
196
|
+
|
|
197
|
+
### Never
|
|
198
|
+
|
|
199
|
+
- Edit build output by hand.
|
|
200
|
+
- Commit secrets, tokens, keys, or credentials, including in test fixtures.
|
|
201
|
+
- Bypass required checks by disabling tests or linters.
|
|
202
|
+
- Rewrite history on shared branches.
|
|
203
|
+
- Change unrelated files "while here" without clear need.
|
|
204
|
+
- Add a `.sdd/templates` directory, a copy of the templates, or a link to them in this package. The
|
|
205
|
+
templates live once at the monorepo root, `../../../.sdd/templates/repo-standards`, and
|
|
206
|
+
`.sdd/manifest.json` refers to them.
|