@webex/internal-plugin-task 3.13.0-next.8 → 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.
@@ -0,0 +1,93 @@
1
+ ---
2
+ type: ADR
3
+ title: ADR-0001 - Retain the product README
4
+ description: Stage 0 keeps README.md as product documentation and does not route it as a spec source.
5
+ tags: [adr]
6
+ timestamp: 2026-10-09T00:00:00Z
7
+ status: accepted
8
+ ---
9
+ <!-- sdd-generated-metadata
10
+ doc_kind: standing-doc
11
+ generated_from: adr@0.3.0
12
+ generated_by: claude-cowork
13
+ approved_by: akulakum@cisco.com
14
+ updated_at: 2026-11-12T12:59:34Z
15
+ validation_status: pass-with-warnings
16
+ -->
17
+
18
+ # ADR-0001 - Retain the product README
19
+
20
+ | Field | Value |
21
+ | ------------- | ----- |
22
+ | Status | Accepted |
23
+ | Decision date | 2026-10-09 |
24
+ | Deciders | akulakum@cisco.com (bootstrap questionnaire, SPARK-853128) |
25
+ | Supersedes | N/A |
26
+ | Superseded by | N/A |
27
+
28
+ ## Context
29
+
30
+ Stage 0 found one existing document, `README.md`. It is the npm usage page. It names the package as
31
+ the plugin for the Task service, warns that internal plugins do not strictly follow semantic
32
+ versioning, shows the install command, and shows a usage block that imports the package and
33
+ `@webex/webex-core` and then calls `listMyTasks`, `getTask`, `createTask`, `updateTask`,
34
+ `deleteTask`, `acceptTask`, and `rejectTask`.
35
+
36
+ Those seven names match `src/task.js`. The README does not describe `register`, `unregister`, the
37
+ two plugin events, the encryption of `title` and `notes`, or the fact that each REST method resolves
38
+ the whole response rather than a task object, which the README's callback parameter name `task`
39
+ suggests. No other
40
+ intent, design, or AI-authored spec exists in this package.
41
+
42
+ ## Decision
43
+
44
+ Keep `README.md` unchanged. Do not migrate it into the module specification. Record
45
+ `spec_source_policy.mode` as `keep-separate` with `migrated_source_disposition` `retain` and an
46
+ empty `spec_sources` list.
47
+
48
+ The canonical behavior is `src/` plus `test/`. Where the README is incomplete, code wins.
49
+
50
+ ## Why
51
+
52
+ The README is the npm-facing page. Rewriting it is a product-doc change, not a requirement of making
53
+ the package SDD-ready. Its method list agrees with `src/task.js`, and the module specification
54
+ records the behavior it leaves out.
55
+
56
+ ## Alternatives considered
57
+
58
+ | Alternative | Why it was not selected |
59
+ | ----------- | ----------------------- |
60
+ | Migrate the README into `src/docs/README.md` and delete it | The page is retained product documentation, and deletion was not requested |
61
+ | Expand the README during Stage 0 | Stage 0 writes the SDD tree only and does not edit `README.md` |
62
+
63
+ ## Consequences
64
+
65
+ **Positive:**
66
+
67
+ - The npm page stays stable for consumers.
68
+ - The module specification is the single behavioral reference.
69
+
70
+ **Negative / tradeoffs:**
71
+
72
+ - Agents must not infer return shapes from the README callback names.
73
+ - README improvements remain a separate product-doc change.
74
+
75
+ ## Constraint on future changes
76
+
77
+ Do not delete `README.md` as part of spec maintenance. If its usage text changes, keep the module
78
+ specification aligned with code rather than with the README.
79
+
80
+ ## Follow-up
81
+
82
+ - None.
83
+
84
+ ## Revisit when
85
+
86
+ - A maintainer chooses to document registration, encryption, or return shapes on the npm page.
87
+
88
+ ## References
89
+
90
+ - `README.md`
91
+ - `src/index.js`
92
+ - `src/task.js`
93
+ - `.sdd/manifest.json` `spec_source_policy`
@@ -0,0 +1,22 @@
1
+ <!-- sdd-generated-metadata
2
+ doc_kind: standing-doc
3
+ generated_from: adr-index@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
+ # Architectural decision records
11
+
12
+ Numbered, append-only records of structural decisions for this package and its documentation. The
13
+ module specification owns current behavior. An ADR owns why a documentation or structural choice was
14
+ made. Supersede an accepted ADR with a new one instead of editing its outcome.
15
+
16
+ ## Index
17
+
18
+ | ADR | Title | Status |
19
+ | --- | ----- | ------ |
20
+ | [0001](0001-retain-product-readme.md) | Retain the product README | Accepted |
21
+
22
+ Keep this list in numeric order.
@@ -0,0 +1,294 @@
1
+ ---
2
+ type: Architecture
3
+ title: '@webex/internal-plugin-task architecture'
4
+ description: Package-wide boundaries, resources, interactions, dependencies, and cross-cutting architecture.
5
+ tags: [architecture]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: architecture@0.3.0
10
+ generated_by: claude-cowork
11
+ approved_by: akulakum@cisco.com
12
+ updated_at: 2026-11-12T12:59:34Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # @webex/internal-plugin-task architecture
17
+
18
+ Canonical architecture for this package. Plugin behavior lives in the
19
+ [Task plugin specification](../src/docs/README.md). This page owns package boundaries, the plugin
20
+ registration, the contract index, and how the package meets the rest of the SDK.
21
+
22
+ Related context: [specification registry](specs/README.md) ·
23
+ [package agent instructions](../AGENTS.md)
24
+
25
+ ## Applicability
26
+
27
+ | Condition ID | Status | Evidence or reason | Owned section |
28
+ | ------------------------------------ | ---------- | ------------------ | ------------- |
29
+ | `repo.owns_datastore` | N/A | No database, file store, or migration in `src/` | Repository data and schema |
30
+ | `repo.holds_client_state` | Applicable | The Task plugin keeps an in-memory `registered` flag across calls (`src/task.js`) | Client state model |
31
+ | `repo.components_interact` | N/A | One module. The import graph is shown under Interaction and execution flows. | Dependency and interaction topology |
32
+ | `repo.domain_data_across_components` | N/A | Task DTOs are passed through to the caller, not owned | Object and data ownership |
33
+ | `repo.caches_data` | N/A | No cache in `src/`; KMS key caching belongs to internal-plugin-encryption | Caching catalog |
34
+ | `repo.observability_convention` | Applicable | `src/task.js` logs through `this.logger` with a fixed message prefix | Observability patterns |
35
+ | `repo.deploys_to_infra` | N/A | Library published to npm. No service runtime. | Runtime and infrastructure |
36
+ | `repo.shared_base_libs` | Applicable | Inherits `WebexPlugin` and the legacy build, lint, and test stack | Shared and base libraries |
37
+ | `repo.is_monorepo` | N/A | This SDD root is one package. The workspace around it is out of scope. | Package map and dependencies |
38
+ | `repo.multi_platform` | Applicable | The same `src/` targets Node (`package.json` engines, Jest and mocha runs) and browsers (the `browserify` transforms, `test:browser`, and the `process` browser-testing file) | Platform matrix |
39
+ | `repo.published_package` | Applicable | `package.json` `name` is `@webex/internal-plugin-task` and `deploy:npm` publishes it | Release and versioning |
40
+ | `repo.embedded_in_host` | N/A | No host theme or embed API | Host integration and theming |
41
+ | `repo.exposes_commands_or_artifacts` | Applicable | `build:src` writes the build output directory | Commands and generated artifacts |
42
+ | `repo.cross_repo_deps_material` | Applicable | Behavior depends on sibling workspace plugins and on the Raindrop service | Cross-repository topology |
43
+ | `repo.security_arch_warranted` | Applicable | Task text is encrypted with KMS keys before it leaves the client, and authorization is attached by webex-core | Security architecture |
44
+
45
+ ## Design overview
46
+
47
+ `@webex/internal-plugin-task` is a published library with one module. Importing it imports the
48
+ device, encryption, and conversation plugins and registers `Task` as the internal plugin `task`, so
49
+ webex instances constructed after the import have `webex.internal.task`.
50
+
51
+ The plugin wraps the Raindrop task REST operations and encrypts the free-text task fields with the
52
+ encryption plugin before they leave the client, decrypting them in responses. A `register` call
53
+ registers the device and connects Mercury, and the plugin emits its own registered and unregistered
54
+ events, but it does not yet subscribe to any task event.
55
+
56
+ The package serves no routes and persists nothing.
57
+
58
+ ## Resource inventory and responsibilities
59
+
60
+ | Resource | Kind | Responsibility | Owner | Source | Detailed specification |
61
+ | -------- | ---- | -------------- | ----- | ------ | ---------------------- |
62
+ | Task plugin | module | REST wrappers, field encryption and decryption, registration state | @webex/web-sdk | `src/` | `src/docs/README.md` |
63
+ | Published package | package | npm entry points and the registration side effect | @webex/web-sdk | `package.json` | N/A (this document) |
64
+
65
+ ## Interaction and execution flows
66
+
67
+ ```mermaid
68
+ flowchart LR
69
+ importer[Package importer]
70
+ index[src_index_js]
71
+ device[internal_plugin_device]
72
+ enc[internal_plugin_encryption]
73
+ conv[internal_plugin_conversation]
74
+ mercury[internal_plugin_mercury]
75
+ core[webex_core_registerInternalPlugin]
76
+ task[src_task_js]
77
+ helpers[src_helpers]
78
+ caller[Caller code]
79
+ request[webex_request]
80
+ raindrop[Raindrop service]
81
+ importer --> index
82
+ index -->|side-effect import| device
83
+ index -->|side-effect import| enc
84
+ index -->|side-effect import| conv
85
+ enc -->|side-effect import| mercury
86
+ index --> core
87
+ index --> task
88
+ caller -->|REST methods, register| task
89
+ task --> helpers
90
+ helpers -->|encryptText, decryptText, createUnboundKeys| enc
91
+ task -->|register| device
92
+ task -->|connect| mercury
93
+ task --> request
94
+ request -->|HTTP| raindrop
95
+ ```
96
+
97
+ | From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
98
+ | ---- | -- | ------------------------ | ------- | --------------------------------- |
99
+ | Importer | `src/index.js` | package import | Register the plugin | Without the import, `webex.internal.task` is absent |
100
+ | `src/index.js` | device, encryption, conversation plugins | side-effect imports | Register those plugins with webex-core so webex instances constructed afterwards include them; see Dependency topology for Mercury | Load-time only |
101
+ | Caller | `webex.internal.task` | method calls | Task REST operations and registration | See the Task plugin spec failure modes |
102
+ | `src/helpers/` | `webex.internal.encryption` | in-process promise | Encrypt and decrypt `title` and `notes`; create a key | Rejections propagate |
103
+ | `src/task.js` | `webex.request` | in-process promise | Send HTTP requests | Rejections propagate |
104
+ | `webex.request` | Raindrop service | HTTP | Task storage and assignment | Error behavior is recorded in the Task plugin spec Dependencies and Caller-visible failure modes |
105
+
106
+ ## Dependency topology
107
+
108
+ | Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
109
+ | ---------- | ---- | ------- | ------- | ------------------------------------ |
110
+ | `@webex/webex-core` | Internal | `src` | Plugin base, registration, request, logger | Workspace version |
111
+ | `@webex/internal-plugin-encryption` | Internal | `src` | Field encryption, decryption, key creation | Workspace version |
112
+ | `@webex/internal-plugin-device` | Internal | `src` | Device registration in `register` | Workspace version |
113
+ | `@webex/internal-plugin-mercury` | Internal, undeclared | `src` | `connect` in `register` | Reached through the encryption import, not `package.json` |
114
+ | `@webex/internal-plugin-conversation` | Internal | `src` | Side-effect import only | Workspace version |
115
+ | `lodash` | External | `src` | `isArray` | Range in `package.json` |
116
+ | `uuid` | External | none | Declared but not imported | Range in `package.json` |
117
+
118
+ Ordering: `register` calls `device.register()` before `mercury.connect()`; Mercury's `connect()` also
119
+ registers the device itself when it is not yet registered. No dependency cycle exists inside the
120
+ package.
121
+
122
+ ## Public and consumer surfaces
123
+
124
+ | Surface | Type | Owner | Consumers | Compatibility policy | Source |
125
+ | ------- | ---- | ----- | --------- | -------------------- | ------ |
126
+ | `task-sdk` (published) | SDK | Task plugin | Sibling package webex, whose file src/webex.js requires this package, and any code reaching `webex.internal.task` | Internal plugin; see Release and versioning | `package.json` |
127
+ | `raindrop-tasks-http` (required) | API | Raindrop service | Task plugin | External; consumed, not served | Raindrop service |
128
+ | `webex-core-plugin-host` (required) | RPC | sibling package webex-core | Task plugin | External | `@webex/webex-core` |
129
+ | `encryption-sdk` (required) | SDK | sibling package internal-plugin-encryption | Task helpers | External | `@webex/internal-plugin-encryption` |
130
+ | `webex-device-registration` (required) | SDK | sibling package internal-plugin-device | Task plugin | Specified in its SDD module spec, file src/docs/README.md of that package | `@webex/internal-plugin-device` |
131
+ | `mercury-sdk` (required) | SDK | sibling package internal-plugin-mercury | Task plugin | Specified in its SDD module spec, file src/docs/README.md of that package | `@webex/internal-plugin-mercury` |
132
+ | `conversation-sdk` (required) | SDK | sibling package internal-plugin-conversation | Package barrel | Side-effect import only | `@webex/internal-plugin-conversation` |
133
+ | `lodash` (required) | SDK | npm | Task helpers | See Dependency topology | npm |
134
+
135
+ `task-sdk` entry points: `main` points at the build output and `devMain` at `src/index.js`. No HTTP
136
+ surface is served, so `api-specs/openapi.yaml` is omitted.
137
+
138
+ ## Client state model
139
+
140
+ | State or slice | Owner | Transition triggers | Persistence or reset boundary |
141
+ | -------------- | ----- | ------------------- | ----------------------------- |
142
+ | `registered` | Task plugin module (`src`) | `register` and `unregister` | Memory only; not reset by logout |
143
+
144
+ Owner details, guards, and event timing are in the module spec
145
+ [Client state model and State machine](../src/docs/README.md).
146
+
147
+ ## Cross-cutting architecture
148
+
149
+ ### Security
150
+
151
+ - Trust boundaries and identity flow: see Security architecture.
152
+ - Sensitive surfaces and data classes: see Security architecture; field rules are the module spec
153
+ `INV-001` to `INV-003`.
154
+ - Encryption and secret boundaries: see Security architecture.
155
+
156
+ ### Observability and operations
157
+
158
+ - Logging and correlation: see Observability patterns.
159
+ - Metrics, traces, and audit signals: see Observability patterns.
160
+ - Ownership and operational entry points: no runtime to deploy or monitor; owners are listed in
161
+ References and maintenance.
162
+
163
+ ### Quality attributes
164
+
165
+ - Confidentiality: see Security architecture.
166
+ - Compatibility: the plugin name, the default export, and the event names are relied on by
167
+ importers.
168
+ - Footprint: the runtime dependencies listed under Dependency topology, with no native or
169
+ platform-specific code.
170
+
171
+ ## Observability patterns
172
+
173
+ | Signal | Convention or required fields | Propagation or naming rule | Primary evidence |
174
+ | ------- | ----------------------------- | -------------------------- | ---------------- |
175
+ | Logs | `this.logger` (`webex.logger`, or `console` when absent) at `info` and `error`; messages carry no task content | Prefix `Task->method#LEVEL,` followed by the reason; `register` failures append the error message. With webex-core's default interceptor set, request and response logging is added only when `ENABLE_NETWORK_LOGGING` or `ENABLE_VERBOSE_NETWORK_LOGGING` is set; a host that supplies `config.interceptors` can install webex-core's logging interceptors itself | `src/task.js` |
176
+ | Metrics | N/A — none emitted | — | `src/task.js` |
177
+ | Traces | N/A — none in this package; tracking ids come from webex-core's `WebexTrackingIdInterceptor` | — | `src/task.js` |
178
+ | Audit | N/A — none | — | `src/task.js` |
179
+
180
+ ## Shared and base libraries
181
+
182
+ | Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
183
+ | ------- | ------------------------ | --------- | ------------- | ------------------ |
184
+ | `WebexPlugin` from `@webex/webex-core` | `this.webex`, `this.logger`, events, and `request()` delegating to `webex.request` | `src/task.js` | workspace | Follow webex-core plugin conventions |
185
+ | `@webex/babel-config-legacy`, `@webex/eslint-config-legacy`, `@webex/jest-config-legacy` | Build, lint, and Jest config passthroughs | `babel.config.js`, `.eslintrc.js`, `jest.config.js` | workspace | Change upstream, not in the passthrough files |
186
+ | `@webex/legacy-tools` | `webex-legacy-tools` build and test runners | `package.json` scripts | workspace | Scripts call it; do not replace locally |
187
+
188
+ ## Platform matrix
189
+
190
+ | Platform | Shared versus platform-specific boundary | Entry or build | Support and compatibility constraints |
191
+ | -------- | ---------------------------------------- | -------------- | ------------------------------------- |
192
+ | Node.js | All of `src/` is shared; no platform-specific code | `main` build output from `yarn workspace @webex/internal-plugin-task build:src`; tested by `test:unit` (Jest); `test:integration` (mocha) runs a mock-only spec that does not import this package | `engines` `>=18` for consumers; Node 22.14 for development |
193
+ | Browser | Same `src/`, bundled by the consumer through the `browserify` transforms (`babelify`, `envify`) in `package.json` | `yarn workspace @webex/internal-plugin-task test:browser` (karma), with the package-root `process` browser-testing file | Unit-spec behavior under karma: see [Getting started](getting-started.md) Tests |
194
+
195
+ ## Release and versioning
196
+
197
+ | Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
198
+ | -------- | -------------- | --------------- | ------------------ | --------------------------------- |
199
+ | `@webex/internal-plugin-task` | npm, through the `deploy:npm` script (manifest `commands.deploy`) | Workspace release tooling; README says the internal plugin does not strictly follow semver | None declared in code | No package-local changelog; workspace tooling owns it |
200
+
201
+ ## Commands and generated artifacts
202
+
203
+ | Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
204
+ | ------------------- | ----- | ------ | --------------------- | ---------------------- |
205
+ | `yarn install` | workspace | root `package.json` and lockfile | workspace `node_modules` | Run from the workspace root |
206
+ | `yarn workspace @webex/internal-plugin-task build` | package | `src/` | build output through `build:src` | Build output is never edited by hand |
207
+ | `yarn workspace @webex/internal-plugin-task build:src` | package | `src/` (`.js` and `.ts`) | build output with source maps | Markdown under `src/` is not processed |
208
+ | `yarn workspace @webex/internal-plugin-task test:unit` | package | `test/unit/spec/` | Jest result | Imports this package by name, so it needs the build output |
209
+ | `yarn workspace @webex/internal-plugin-task test:integration` | package | `test/integration/spec/` | mocha result | — |
210
+ | `yarn workspace @webex/internal-plugin-task test:browser` | package | unit and integration specs | karma result | Needs a browser |
211
+ | `yarn workspace @webex/internal-plugin-task test:style` | package | files under `src/` | eslint result | Markdown is reported as ignored |
212
+ | `yarn workspace @webex/internal-plugin-task deploy:npm` | package | build output, `package.json` | Publishes the package to the npm registry | Release pipeline only |
213
+
214
+ ## Cross-repository topology
215
+
216
+ | Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
217
+ | ----------------------------- | ------------ | ------------------------------ | ----- | --------------------- |
218
+ | Sibling package webex-core | Consumes | `webex-core-plugin-host` | @webex/web-client and @webex/web-sdk (explicit CODEOWNERS entry) | Plugin host must exist before registration |
219
+ | Sibling package internal-plugin-encryption | Consumes | `encryption-sdk` | @webex/web-sdk (CODEOWNERS default rule) | Imported before registration |
220
+ | Sibling package internal-plugin-device | Consumes | `webex-device-registration` | @webex/web-client and @webex/web-sdk (explicit CODEOWNERS entry) | Called first by `register` |
221
+ | Sibling package internal-plugin-mercury | Consumes | `mercury-sdk` | @webex/web-client and @webex/web-sdk (explicit CODEOWNERS entry) | Connected by `register` |
222
+ | Sibling package internal-plugin-conversation | Consumes | `conversation-sdk` | @webex/web-client and @webex/web-sdk (explicit CODEOWNERS entry) | Imported before registration |
223
+ | Sibling package webex | Provides | `task-sdk` | @webex/web-sdk (CODEOWNERS default rule) | None |
224
+ | Raindrop service | Coordinates | `raindrop-tasks-http` | External Webex service; owner not recorded in this repository | Request shapes and encrypted fields must match the service |
225
+
226
+ These are sibling workspace packages and external services outside this package-scoped SDD root.
227
+
228
+ ## Security architecture
229
+
230
+ Threats addressed: task title and notes readable by the task service, and the user's access token
231
+ reaching an unintended host.
232
+
233
+ ```mermaid
234
+ flowchart LR
235
+ caller[Caller task object] -->|plaintext title and notes| task[Task plugin]
236
+ task -->|encryptText, decryptText, createUnboundKeys| enc[internal-plugin-encryption and KMS]
237
+ task -->|ciphertext body, service raindrop| pipeline[webex.request interceptor pipeline owned by webex-core]
238
+ pipeline -->|HTTP request, authorized by webex-core| svc[Raindrop service]
239
+ svc -->|response or redirect| pipeline
240
+ ```
241
+
242
+ Controls and boundaries:
243
+
244
+ - Field encryption: the module spec `INV-001` to `INV-003` define which fields are encrypted, which
245
+ key is used, and when responses are decrypted. Key material, key caching, and the KMS exchange
246
+ belong to the sibling package internal-plugin-encryption (files src/encryption.js and src/kms.js).
247
+ - This package never reads, stores, or sends a token itself. Every request names catalog service
248
+ `raindrop`; the service URL is resolved by the webex-core service interceptor (file
249
+ src/lib/interceptors/service.js).
250
+ - Authorization, host validation, and redirect handling belong to the sibling package webex-core
251
+ request pipeline (files src/webex-core.js and src/config.js, and the interceptors under
252
+ src/interceptors/). With webex-core's default interceptor set:
253
+ - The auth interceptor adds the authorization header when its credentials check resolves the
254
+ request to a catalog service or an allowed domain (file src/interceptors/auth.js).
255
+ - When `config.services.validateCatalogUrls` is `true` (default `false`, files src/config.js and
256
+ src/webex-core.js), `CatalogUrlInterceptor` rejects a request whose `uri` is outside the
257
+ catalog and allowed domains (file src/interceptors/catalog-url.js). A request that carries
258
+ `service` and no `uri`, as this package's requests do when first sent, is not checked; a
259
+ re-issued redirect is.
260
+ - Known gap, redirects: the redirect interceptor re-issues a request on a `cisco-location`
261
+ header, a Locus body with `errorCode` 2000002 and `location`, or an App API body with `code`
262
+ 404100 and `data.siteFullUrl`, reusing options that already carry the authorization header, and
263
+ the auth interceptor keeps an existing header, so the token can reach the redirect host. The
264
+ header is cleared only for `webex-appapi-service` `preJoin` requests, which this package never
265
+ makes. An active `CatalogUrlInterceptor` also checks the re-issued request (file
266
+ src/interceptors/redirect.js).
267
+ - These controls assume webex-core's default interceptor set; the Task plugin spec Dependencies row
268
+ for webex-core records what changes when a host supplies its own set.
269
+
270
+ Known gaps owned by this package are recorded where the code lives: the caller-object mutation and
271
+ key handling in the Task plugin spec Pitfalls. Neither this package nor the workspace root has a
272
+ `SECURITY.md`, and this package adds none.
273
+
274
+ ## Domain language
275
+
276
+ | Term | Repository-specific meaning | Authoritative source |
277
+ | ---- | --------------------------- | -------------------- |
278
+ | Task | A Raindrop item with a title, notes, and fields such as a due date, that an assignee can accept or reject | `src/task.js`, `README.md` |
279
+ | Raindrop | The catalog service name for the task service | `src/task.js` |
280
+ | Encryption key URL | `encryptionKeyUrl`, the KMS key URI that encrypts a task's `title` and `notes` | `src/helpers/encrypt.helper.js` |
281
+ | Unbound key | A KMS key created with `createUnboundKeys` and not yet bound to a resource | `src/helpers/encrypt.helper.js` |
282
+ | Accept, reject | An assignee's response to a task, sent to `tasks/{id}/accept` or `/reject` | `src/task.js` |
283
+ | Registered | The plugin state after `register` succeeded | `src/task.js` |
284
+
285
+ ## References and maintenance
286
+
287
+ - Decisions: [adr/](adr/), including [ADR 0001](adr/0001-retain-product-readme.md)
288
+ - Repository rules and patterns: [package agent instructions](../AGENTS.md)
289
+ - Instantiated specifications and routing: [specs/README.md](specs/README.md)
290
+ - Module spec: `src/docs/README.md`
291
+ - Owner: `@webex/web-sdk` through the monorepo `.github/CODEOWNERS` default rule
292
+ - Manifest: `.sdd/manifest.json`
293
+ - Update this document in the same change that alters package boundaries, contracts, or
294
+ cross-cutting behavior.
@@ -0,0 +1,124 @@
1
+ ---
2
+ type: Getting Started
3
+ title: Getting started
4
+ description: Local setup, build, run, and test routing for @webex/internal-plugin-task.
5
+ tags: [onboarding]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: getting-started@0.3.0
10
+ generated_by: claude-cowork
11
+ approved_by: akulakum@cisco.com
12
+ updated_at: 2026-11-12T12:59:34Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # Getting started
17
+
18
+ Onboarding for **@webex/internal-plugin-task**. Commands run from the webex-js-sdk workspace root.
19
+
20
+ ## Prerequisites
21
+
22
+ | Tool or access | Version or requirement |
23
+ | -------------- | ---------------------- |
24
+ | Node.js | 22.14, required for working in this repository by the workspace root `AGENTS.md`; the root `.nvmrc` selects the Node 22 LTS line |
25
+ | Yarn | The version pinned by the workspace root `packageManager` field, provided through Corepack: enable Corepack for the selected Node.js version, as the workspace root `CONTRIBUTING.md` setup steps require. Workspaces are used, so install from the workspace root rather than this directory |
26
+ | Browsers for `test:browser` | Chrome and Firefox: the karma runner that `test:browser` starts through `@webex/legacy-tools` defaults to both, and the workspace root `CONTRIBUTING.md` lists both for browser testing |
27
+
28
+ The `package.json` `engines` value `>=18` is the floor for applications that install the package,
29
+ not the development runtime.
30
+
31
+ ## Install
32
+
33
+ The repository is already cloned when you are reading this file. Dependencies are resolved for the
34
+ whole workspace:
35
+
36
+ ```bash
37
+ yarn install
38
+ ```
39
+
40
+ ## Build
41
+
42
+ ```bash
43
+ yarn workspace @webex/internal-plugin-task build
44
+ ```
45
+
46
+ `scripts.build` runs `build:src`, which uses the `@webex/legacy-tools` builder to compile `.js` and
47
+ `.ts` files from `src/` into the build output directory with source maps. The manifest records
48
+ `build:src` as the compile role and `build` as the package role.
49
+
50
+ ## Run
51
+
52
+ N/A — library package with no start script. Import the package from a consumer so that
53
+ `webex.internal.task` exists.
54
+
55
+ ## Tests
56
+
57
+ ```bash
58
+ yarn workspace @webex/internal-plugin-task test:unit
59
+ ```
60
+
61
+ | Tier | Command | Test location | Framework | External dependencies |
62
+ | ---- | ------- | ------------- | --------- | --------------------- |
63
+ | Unit | `yarn workspace @webex/internal-plugin-task test:unit` | `test/unit/spec` | Jest | This package's build output and the built workspace packages it imports |
64
+ | Integration | `yarn workspace @webex/internal-plugin-task test:integration` | `test/integration/spec` | mocha (assertions via `@webex/test-helper-chai`) | The workspace test helper server that the runner starts; no Webex service, because the spec uses an in-file mock |
65
+ | Browser | `yarn workspace @webex/internal-plugin-task test:browser` | `test/unit/spec` and `test/integration/spec` | karma | A browser |
66
+ | Lint | `yarn workspace @webex/internal-plugin-task test:style` | `src/` | eslint | None |
67
+
68
+ - The browser run is manifest `commands.browser-test` with role `other`, because the SDD manifest
69
+ `tests` schema allows only `unit`, `integration`, `e2e`, and `qa`.
70
+ - The browser run collects the unit specs too, and karma is configured with the browserify, mocha,
71
+ and chai frameworks (sibling package legacy-tools, file src/utils/karma/karma.constants.ts). The
72
+ unit specs call Jest globals such as `jest.fn`, so expect those specs to fail there; a passing
73
+ browser run has not been verified.
74
+ - The integration spec defines its own `MockTask` and never imports this package, so a passing
75
+ integration run says nothing about the plugin.
76
+ - Do not use the `package.json` script `test` as a verification command; it chains every tier,
77
+ including the browser run.
78
+ - Coverage or quality gate: N/A — no coverage threshold.
79
+ - Enforcement source: none. `jest.config.js` re-exports `@webex/jest-config-legacy`, which sets
80
+ `collectCoverage: false` and no threshold.
81
+ - Test environment or QA dependencies: none beyond the workspace; `test/unit/spec/task.js` imports
82
+ this package by name, which resolves to the build output, so a stale build tests old code. See
83
+ First-run verification for the first build, and run
84
+ `yarn workspace @webex/internal-plugin-task build:src` again after any `src/` change before
85
+ `test:unit`.
86
+
87
+ ## Configuration and secrets
88
+
89
+ - Required configuration: none. The plugin config is `{task: {}}` and `src/` reads no key from it,
90
+ no environment variable, and no feature toggle.
91
+ - Secret source: none in this package. The access token is attached by the webex-core request
92
+ pipeline at runtime, and encryption keys come from the encryption plugin.
93
+ - Package or artifact access: no private registry or credentials. `yarn install` needs network access
94
+ to the public npm registry set in the workspace root `.yarnrc.yml`, because the Yarn cache is not
95
+ committed and the package depends on public packages such as `lodash`, `uuid`, and `eslint`.
96
+ - Required neighboring repositories or workspace layout: the webex-js-sdk workspace, because sibling
97
+ packages such as webex-core and internal-plugin-encryption are `workspace:*` dependencies.
98
+ - Platform, simulator, device, or SDK setup: N/A.
99
+ - Never commit credentials or copy production secrets into a local config.
100
+
101
+ ## First-run verification
102
+
103
+ 1. Select Node.js 22.14, enable Corepack (see Prerequisites), and run `yarn install` from the
104
+ workspace root.
105
+ 2. Run the workspace root `prebuild:modules` script. `yarn install` does not build the
106
+ `webex-legacy-tools` CLI that this package's scripts call, because its binary lives in the
107
+ untracked build output of the workspace legacy tools package. That root script installs again,
108
+ then builds the workspace tools, the legacy tools, webex-core, and the `build:src` output of every
109
+ workspace package that defines that script, including this package and the sibling plugins that
110
+ its unit spec loads.
111
+ 3. Run `yarn workspace @webex/internal-plugin-task build` and check that the build output contains
112
+ `index.js`.
113
+ 4. Run `yarn workspace @webex/internal-plugin-task test:unit`.
114
+
115
+ Expected result: Jest reports 3 suites and 17 tests passing — 9 in `test/unit/spec/task.js`, 7 in the
116
+ decrypt helper spec, and 1 in the encrypt helper spec. If `task.js` fails with
117
+ `Cannot find module '@webex/internal-plugin-task'` or a sibling plugin name, step 2 or 3 was skipped.
118
+
119
+ ## Next steps
120
+
121
+ - [Package architecture](architecture.md)
122
+ - [Specification registry](specs/README.md)
123
+ - [Documentation index](index.md)
124
+ - [Task plugin specification](../src/docs/README.md)
package/docs/index.md ADDED
@@ -0,0 +1,47 @@
1
+ ---
2
+ okf_version: '0.1'
3
+ ---
4
+ <!-- sdd-generated-metadata
5
+ doc_kind: standing-doc
6
+ generated_from: docs-index@0.3.0
7
+ generated_by: claude-cowork
8
+ approved_by: akulakum@cisco.com
9
+ updated_at: 2026-11-12T12:59:34Z
10
+ validation_status: pass-with-warnings
11
+ -->
12
+
13
+ # @webex/internal-plugin-task documentation
14
+
15
+ Doc map for developers and agents.
16
+
17
+ This package is the Webex JS SDK's client for the Raindrop task service. It registers
18
+ `webex.internal.task`, wraps the task REST operations, and encrypts task titles and notes before
19
+ they leave the client.
20
+
21
+ ## Start here
22
+
23
+ - [Getting started](getting-started.md)
24
+ - [Package architecture](architecture.md)
25
+ - [Task plugin specification](../src/docs/README.md) — behavior of `src/`
26
+
27
+ ## Decisions
28
+
29
+ - [adr/](adr/) — architectural decision records
30
+
31
+ ## Specifications and contracts
32
+
33
+ - [architecture.md](architecture.md) — canonical package-wide architecture and contract index
34
+ - [specs/README.md](specs/README.md) — manifest-backed module and contract registry
35
+ - `src/docs/README.md` — the owning specification beside the module's code
36
+ - [adr/](adr/) — concrete architectural decisions
37
+
38
+ No deployable service exists in this package, so no service specification is generated. The
39
+ published contract is an npm/SDK surface whose authoritative source is `package.json` with
40
+ `src/index.js`. The Raindrop task HTTP API is consumed, not served, so no OpenAPI document applies.
41
+
42
+ ## Related repository resources
43
+
44
+ - `README.md` — the package's npm-facing usage page, retained separately from this generated
45
+ documentation set. See [ADR 0001](adr/0001-retain-product-readme.md).
46
+
47
+ No `ci/`, `operate/`, `diagrams/`, or runbook directories exist in this package.
@@ -0,0 +1,73 @@
1
+ ---
2
+ type: Reference
3
+ title: Specification registry
4
+ description: Canonical specification registry and change-routing guide.
5
+ tags: [specifications, registry]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: spec-index@0.3.0
10
+ generated_by: claude-cowork
11
+ approved_by: akulakum@cisco.com
12
+ updated_at: 2026-11-12T12:59:34Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # Specification registry
17
+
18
+ Use this page to find the canonical package architecture and every instantiated module specification
19
+ and native contract. Keep technical facts in the owning document.
20
+
21
+ Start with the [package architecture](../architecture.md). No service specification exists: this
22
+ package is a library published to npm, so that artifact is omitted in `.sdd/manifest.json`.
23
+
24
+ ## Document roles
25
+
26
+ | Document | Canonical ownership |
27
+ | -------- | ------------------- |
28
+ | [Package architecture](../architecture.md) | Package boundaries, resource inventory, interactions, dependency topology, contract index, and cross-cutting architecture |
29
+ | Service specification | Not applicable — no deployable service exists in this package |
30
+ | Module specifications | Stable behavior and design at each manifest-routed module spec |
31
+ | [ADR](../adr/) | A durable decision, its deciders, rationale, and consequences |
32
+
33
+ ## Instantiated specification registry
34
+
35
+ | Resource | Role | Canonical path | Owner | Status | Last verified |
36
+ | -------- | ---- | -------------- | ----- | ------ | ------------- |
37
+ | Package | Architecture | `docs/architecture.md` | @webex/web-sdk | Draft | 2026-10-09 |
38
+ | Task plugin | Module | `src/docs/README.md` | @webex/web-sdk | Draft | 2026-10-09 |
39
+ | `task-sdk` | Contract | `package.json` | @webex/web-sdk | Active | 2026-10-09 |
40
+
41
+ ### Module registry
42
+
43
+ | Module | Responsibility | Manifest coverage state | Start here |
44
+ | --- | --- | --- | --- |
45
+ | `src/` | Raindrop task REST wrappers, title and notes encryption, and registration state | Partial | `src/docs/README.md` |
46
+
47
+ Generator-side field measurement is complete. Field coverage measured 2026-10-09 is 93.3% (14 of 15
48
+ mandatory fields PRESENT for `src`). Critical fields are 8 of 8 PRESENT. The WEAK field is test
49
+ strategy; the untested paths are listed in the module spec's Verification section. Independent
50
+ validation is recorded in the module spec Validation status row. Coverage state stays `Partial`
51
+ until the missing tests and a characterization baseline exist and a spec-drift record exists.
52
+
53
+ ## Change and verification routing
54
+
55
+ | Change affects | Load and update | Verification route |
56
+ | -------------- | --------------- | ------------------ |
57
+ | Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn workspace @webex/internal-plugin-task build:src`, then `yarn workspace @webex/internal-plugin-task test:unit` and `yarn workspace @webex/internal-plugin-task test:style` |
58
+ | A deployable service surface or operating posture | Not applicable — no deployable service exists in this package | Not applicable |
59
+ | A REST wrapper or request shape | `src/docs/README.md` | `yarn workspace @webex/internal-plugin-task build:src`, then `yarn workspace @webex/internal-plugin-task test:unit` and `yarn workspace @webex/internal-plugin-task test:style` |
60
+ | Encrypted fields or key selection | `src/docs/README.md` and the architecture Security architecture | `yarn workspace @webex/internal-plugin-task build:src`, then `yarn workspace @webex/internal-plugin-task test:unit` and `yarn workspace @webex/internal-plugin-task test:style`, after adding the missing helper cases |
61
+ | `register`, `unregister`, or the event names | `src/docs/README.md` | `yarn workspace @webex/internal-plugin-task build:src`, then `yarn workspace @webex/internal-plugin-task test:unit` and `yarn workspace @webex/internal-plugin-task test:style` |
62
+ | The default export or the plugin name | `src/docs/README.md` and `docs/architecture.md`; check the sibling package webex | `yarn workspace @webex/internal-plugin-task build:src`, then `yarn workspace @webex/internal-plugin-task test:unit` and `yarn workspace @webex/internal-plugin-task test:style` |
63
+
64
+ ## Module and contract registration
65
+
66
+ Modules, in manifest tree order: `src` with canonical spec `src/docs/README.md`.
67
+
68
+ `task-sdk` is published; its ecosystem-native artifact is `package.json`, owned by `src`. No OpenAPI
69
+ document applies, which is why `api-specs/openapi.yaml` is omitted.
70
+
71
+ `raindrop-tasks-http`, `webex-core-plugin-host`, `encryption-sdk`, `webex-device-registration`,
72
+ `mercury-sdk`, `conversation-sdk`, and `lodash` are external required contracts. They are not
73
+ implemented in this package.