@webex/plugin-team-memberships 3.13.0-next.3 → 3.13.0-next.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,364 @@
1
+ {
2
+ "manifest_version": 1,
3
+ "repository": {
4
+ "name": "@webex/plugin-team-memberships",
5
+ "purpose": "Public plugin registered as webex.teamMemberships that manages Webex team memberships through the Webex REST API team/memberships resource (catalog service hydra): create POSTs the caller's membership object (teamId plus personId or personEmail, optionally isModerator), get and remove take a membership object or its id, list sends its options as the query and resolves a webex-core Page, update PUTs the whole membership object, and remove resolves undefined on 204. Each method sends one request through webex.request and resolves the response; nothing is validated, cached, persisted, or logged.",
6
+ "category": "cat2-legacy",
7
+ "primary_languages": [
8
+ "javascript"
9
+ ]
10
+ },
11
+ "topology": "Orchestrator-plus-components",
12
+ "commands": {
13
+ "install": {
14
+ "command": "yarn",
15
+ "source_file": "../../../.github/workflows/deploy.yml",
16
+ "role": "install"
17
+ },
18
+ "prebuild": {
19
+ "command": "yarn prebuild:modules",
20
+ "source_file": "../../../CONTRIBUTING.md",
21
+ "role": "other"
22
+ },
23
+ "compile": {
24
+ "command": "yarn build",
25
+ "source_file": "package.json",
26
+ "role": "compile",
27
+ "verified_at": "2026-11-12T17:21:35Z"
28
+ },
29
+ "build": {
30
+ "command": "yarn build:src",
31
+ "source_file": "package.json",
32
+ "role": "package",
33
+ "verified_at": "2026-11-12T17:21:33Z"
34
+ },
35
+ "unit-test": "[NEEDS HUMAN INPUT] -- package.json defines no test:unit script and the package has no test/unit directory; its only spec, test/integration/spec/team-memberships.js, runs only under test:browser, which currently bundles nothing. Add a unit suite and script before recording a command here.",
36
+ "lint": {
37
+ "command": "yarn test:style",
38
+ "source_file": "package.json",
39
+ "role": "lint",
40
+ "verified_at": "2026-11-12T17:21:37Z"
41
+ },
42
+ "browser-test": {
43
+ "command": "yarn test:browser",
44
+ "source_file": "package.json",
45
+ "role": "other"
46
+ },
47
+ "deploy": {
48
+ "command": "yarn deploy:npm",
49
+ "source_file": "package.json",
50
+ "role": "deploy"
51
+ }
52
+ },
53
+ "toolchain": [
54
+ {
55
+ "name": "node",
56
+ "version": ">=18",
57
+ "origin": "repo-config",
58
+ "source_file": "package.json"
59
+ },
60
+ {
61
+ "name": "node",
62
+ "version": "22.14",
63
+ "origin": "repo-config",
64
+ "source_file": "../../../AGENTS.md"
65
+ },
66
+ {
67
+ "name": "node",
68
+ "version": "lts/jod",
69
+ "origin": "repo-config",
70
+ "source_file": "../../../.nvmrc"
71
+ },
72
+ {
73
+ "name": "node",
74
+ "version": "18.x",
75
+ "origin": "repo-config",
76
+ "source_file": "../../../package.json"
77
+ },
78
+ {
79
+ "name": "yarn",
80
+ "version": "3.4.1",
81
+ "origin": "repo-config",
82
+ "source_file": "../../../package.json"
83
+ },
84
+ {
85
+ "name": "babel",
86
+ "version": "^7.17.10",
87
+ "origin": "repo-config",
88
+ "source_file": "package.json"
89
+ },
90
+ {
91
+ "name": "eslint",
92
+ "version": "^8.24.0",
93
+ "origin": "repo-config",
94
+ "source_file": "package.json"
95
+ },
96
+ {
97
+ "name": "prettier",
98
+ "version": "^2.7.1",
99
+ "origin": "repo-config",
100
+ "source_file": "package.json"
101
+ }
102
+ ],
103
+ "quality_gates": {
104
+ "code_coverage": {
105
+ "origin": "none",
106
+ "declared_by": "rarajes2@cisco.com via the bootstrap questionnaire (generator check: package.json defines no test:unit or coverage script, the package has no test/unit directory, and jest.config.js re-exports @webex/jest-config-legacy, which sets no coverageThreshold)"
107
+ }
108
+ },
109
+ "coverage_status_definitions": {
110
+ "specced": ">=80% public surface specced, drift <5% - spec is authoritative",
111
+ "partial": "40-80% specced - spec is a hint, cross-check code",
112
+ "untracked": "<40% specced - code is the source of truth"
113
+ },
114
+ "spec_source_policy": {
115
+ "mode": "keep-separate",
116
+ "migrated_source_disposition": "retain",
117
+ "disposition_decided_by": "rarajes2@cisco.com",
118
+ "disposition_decided_at": "2026-11-12T17:25:00Z",
119
+ "decided_by": "rarajes2@cisco.com",
120
+ "decided_at": "2026-11-12T17:25:00Z",
121
+ "decision_record": "docs/adr/0001-retain-product-readme.md"
122
+ },
123
+ "spec_sources": [
124
+ {
125
+ "path": "README.md",
126
+ "scope": "repo",
127
+ "role": "reference-only",
128
+ "canonical": false,
129
+ "use_by_agents": "context-only",
130
+ "post_migration_action": "retain",
131
+ "deletion_status": "not-applicable",
132
+ "notes": "npm page, kept unchanged under keep-separate. It repeats its Install and Usage sections, and its one example calls webex.team-memberships.get(id) with a hyphenated arrow parameter, which is not valid JavaScript; the plugin is registered as teamMemberships. It documents nothing about create, list, update, or remove. See docs/adr/0001-retain-product-readme.md."
133
+ }
134
+ ],
135
+ "modules": [
136
+ {
137
+ "path": "src",
138
+ "canonical_spec": "src/docs/README.md",
139
+ "coverage_status": "Partial",
140
+ "coverage_evidence": "Field coverage 100% (13/13) assessed 2026-11-12 by the generator; critical field coverage 7/7. Independent validation passed 2026-11-12 under validator runtime 01a1d0de-3a7e-7e50-a7bb-141639802749 with 0 Blocking, Important, Medium, or Minor findings. The package has no unit tests: package.json defines no test:unit script and there is no test/unit directory, so MOD-001 to MOD-006 and INV-001 to INV-004 have no running unit-test evidence. The integration spec test/integration/spec/team-memberships.js holds 8 live-service cases, but no package script runs it: test:browser bundles nothing (isbot parse error, no case run, exit 0) and test:integration does not exist. build:src, build, and test:style have previously exited 0. No characterization baseline exists; the module remains Partial pending a unit suite, a characterization baseline, and promotion review.",
141
+ "last_assessed": "2026-11-12",
142
+ "contracts": {
143
+ "provides": [
144
+ "team-memberships-public-sdk"
145
+ ],
146
+ "requires": [
147
+ "hydra-team-memberships-http",
148
+ "webex-core-plugin-host",
149
+ "webex-core-page"
150
+ ]
151
+ },
152
+ "section_profile": {
153
+ "has_tiers": false,
154
+ "has_ui": false,
155
+ "crosses_service_boundaries": true,
156
+ "holds_client_state": false,
157
+ "enforces_domain_rules": true,
158
+ "is_concurrent_async": true,
159
+ "owns_persistence": false,
160
+ "stateful_transitions": false,
161
+ "exposes_wire_protocol": true,
162
+ "ui_multi_screen": false,
163
+ "large_data_model": false,
164
+ "returns_caller_errors": true,
165
+ "module_specific_conventions": true,
166
+ "published_package": true,
167
+ "embedded_in_host": false,
168
+ "has_design_tradeoff": true,
169
+ "resolved_by": "claude-code (code evidence; bootstrap questionnaire)",
170
+ "resolved_at": "2026-11-12T17:30:00Z",
171
+ "has_submodules": false,
172
+ "has_submodules_computed_by": "scripts/module_tree.py",
173
+ "has_submodules_computed_at": "2026-11-12T17:30:00Z"
174
+ }
175
+ }
176
+ ],
177
+ "contract_catalog": {
178
+ "index_path": "docs/architecture.md",
179
+ "definitions": {
180
+ "team-memberships-public-sdk": {
181
+ "kind": "sdk",
182
+ "publication": "published",
183
+ "source_kind": "repository-path",
184
+ "source": "package.json",
185
+ "summary": "Published npm package (public plugin). main is dist/index.js and devMain is src/index.js; no type declarations are published. Importing it registers TeamMemberships as public plugin 'teamMemberships' with no config; the first registration of the name wins. The entry exports only the default TeamMemberships class. webex.teamMemberships exposes create, get, list, update, and remove; specified in src/docs/README.md."
186
+ },
187
+ "hydra-team-memberships-http": {
188
+ "kind": "http",
189
+ "publication": "internal",
190
+ "source_kind": "external",
191
+ "source": "Webex REST API team/memberships resource (catalog service name hydra, reached through service: 'hydra' in src/team-memberships.js; route definitions are not in this repository)",
192
+ "summary": "POST /team/memberships with the caller's membership body; GET /team/memberships/<id> with no query; GET /team/memberships with the caller's options as the query answering a paged {items} with Link headers; PUT /team/memberships/<id> with the whole membership body; DELETE /team/memberships/<id> answering 204. A membership carries id, teamId, personId, personEmail, isModerator, and created."
193
+ },
194
+ "webex-core-plugin-host": {
195
+ "kind": "sdk",
196
+ "publication": "published",
197
+ "source_kind": "external",
198
+ "source": "@webex/webex-core (workspace package; module spec consulted: packages/@webex/webex-core/src/docs/README.md MOD-013, MOD-014, MOD-027, MOD-028, MOD-043, MOD-048)",
199
+ "summary": "registerPlugin keys a public plugin by its raw name (teamMemberships, first registration wins) and adds webex.<name> to later instances; WebexPlugin supplies webex and request, and request is the one entry for plugin HTTP traffic, resolving service hydra through the catalog and turning failure statuses into WebexHttpError, whose message names the method, service, and resource."
200
+ },
201
+ "webex-core-page": {
202
+ "kind": "sdk",
203
+ "publication": "published",
204
+ "source_kind": "external",
205
+ "source": "@webex/webex-core Page (module spec consulted: packages/@webex/webex-core/src/docs/README.md MOD-054)",
206
+ "summary": "new Page(res, webex) stores the body items and parsed Link headers; next and previous request the linked URL and resolve a new Page; iteration yields items in order."
207
+ }
208
+ }
209
+ },
210
+ "spec_policy": {
211
+ "require_what_and_why": true,
212
+ "require_provenance": true,
213
+ "protected_specs": [
214
+ "src/docs/README.md"
215
+ ]
216
+ },
217
+ "validation": {
218
+ "generator_runtime": "claude-code",
219
+ "generator_model": "claude-opus-5-5",
220
+ "generator_runtime_source": "host-metadata",
221
+ "source_commit": "46f5268b3a42650fd59b45795b7a6bc193b210b0",
222
+ "minimum_independence": "different-runtime",
223
+ "blocking_severities": [
224
+ "Blocking"
225
+ ],
226
+ "validator_runtime": "01a1d0de-3a7e-7e50-a7bb-141639802749",
227
+ "validator_runtime_source": "invocation-input",
228
+ "runtime_fallback_tier": "different-runtime"
229
+ },
230
+ "layout": {
231
+ "sdd_root": ".sdd",
232
+ "docs_root": "docs",
233
+ "agent_entry_path": "AGENTS.md",
234
+ "standing_docs_root": "docs",
235
+ "spec_index_path": "docs/specs/README.md",
236
+ "module_docs_strategy": "source-local",
237
+ "module_docs_relative_path": "docs/README.md",
238
+ "module_docs_decision": {
239
+ "basis": "repo-standards-default",
240
+ "reason": "No module-local documentation existed. The source-local default gives src/docs/README.md. test:style runs eslint ./src/**/*.*, and the shared @webex/eslint-config-legacy ignore patterns exclude docs/** and *.md; build:src processes -js -ts only, so Markdown under src/ does not enter dist/.",
241
+ "decided_by": "rarajes2@cisco.com (bootstrap questionnaire)",
242
+ "decided_at": "2026-11-12T17:30:00Z"
243
+ },
244
+ "repo_context_decision": {
245
+ "path": ".repo-context.json",
246
+ "schema_path": "schemas/repo-context.schema.json",
247
+ "action": "create",
248
+ "schema_action": "create",
249
+ "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 the repository-root .sdd/templates/repo-standards/schemas/repo-context.schema.json.",
250
+ "decided_by": "rarajes2@cisco.com (bootstrap questionnaire)",
251
+ "decided_at": "2026-11-12T17:30:00Z"
252
+ },
253
+ "artifact_decisions": [
254
+ {
255
+ "path": "docs/service.md",
256
+ "action": "omit",
257
+ "reason": "Library package, not a deployable service. package.json has no start script, container, or deployment descriptor.",
258
+ "decided_by": "claude-code (code evidence)",
259
+ "decided_at": "2026-11-12T17:30:00Z"
260
+ },
261
+ {
262
+ "path": "mkdocs.yml",
263
+ "action": "omit",
264
+ "reason": "No package-level documentation site exists. Documentation publishing stays with the workspace.",
265
+ "decided_by": "claude-code (code evidence)",
266
+ "decided_at": "2026-11-12T17:30:00Z"
267
+ },
268
+ {
269
+ "path": "api-specs/openapi.yaml",
270
+ "action": "omit",
271
+ "reason": "The package serves no HTTP routes. It is a client of the Webex REST API team/memberships resource; its published surface is the npm export described by team-memberships-public-sdk.",
272
+ "decided_by": "claude-code (code evidence)",
273
+ "decided_at": "2026-11-12T17:30:00Z"
274
+ },
275
+ {
276
+ "path": "SECURITY.md",
277
+ "action": "omit",
278
+ "reason": "No package-level security policy exists. The workspace owns security policy, and a per-package copy would duplicate it; security architecture is described in docs/architecture.md.",
279
+ "decided_by": "claude-code (code evidence)",
280
+ "decided_at": "2026-11-12T17:30:00Z"
281
+ },
282
+ {
283
+ "path": "CONTRIBUTING.md",
284
+ "action": "omit",
285
+ "reason": "Contribution instructions are owned at the workspace root CONTRIBUTING.md.",
286
+ "decided_by": "claude-code (code evidence)",
287
+ "decided_at": "2026-11-12T17:30:00Z"
288
+ },
289
+ {
290
+ "path": "CHANGELOG.md",
291
+ "action": "omit",
292
+ "reason": "Changelog generation is owned at the workspace root. This package has no changelog file.",
293
+ "decided_by": "claude-code (code evidence)",
294
+ "decided_at": "2026-11-12T17:30:00Z"
295
+ },
296
+ {
297
+ "path": "CTO_CHECKLIST.yml",
298
+ "action": "omit",
299
+ "reason": "The CTO readiness checklist applies to deployable services. This package is a library.",
300
+ "decided_by": "claude-code (code evidence)",
301
+ "decided_at": "2026-11-12T17:30:00Z"
302
+ },
303
+ {
304
+ "path": "schemas/cto-checklist.schema.json",
305
+ "action": "omit",
306
+ "reason": "Omitted together with CTO_CHECKLIST.yml.",
307
+ "decided_by": "claude-code (code evidence)",
308
+ "decided_at": "2026-11-12T17:30:00Z"
309
+ }
310
+ ],
311
+ "template_roots": {
312
+ "canonical": ".sdd/templates/repo-standards"
313
+ },
314
+ "contract_index_path": "docs/architecture.md",
315
+ "repo_skills_root": ".sdd/skills",
316
+ "monorepo_package": {
317
+ "package_path": "packages/@webex/plugin-team-memberships",
318
+ "root_manifest_path": "../../../.sdd/manifest.json",
319
+ "templates_root_path": "../../../.sdd/templates/repo-standards"
320
+ }
321
+ },
322
+ "tooling": {
323
+ "sdlc_skills": {
324
+ "source_ref": "repo-annotation@2.3.1"
325
+ }
326
+ },
327
+ "coverage_ratchet": {
328
+ "enabled": true,
329
+ "waivers": []
330
+ },
331
+ "substrate": {
332
+ "source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
333
+ "consumed": [
334
+ "@webex/eslint-config-legacy via .eslintrc.js",
335
+ "@webex/babel-config-legacy via babel.config.js",
336
+ "@webex/jest-config-legacy via jest.config.js (no unit spec uses it)",
337
+ "@webex/legacy-tools build and test runner via package.json",
338
+ "package README.md (context only)",
339
+ "Repo Standards templates at the monorepo root .sdd/templates/repo-standards, referred to through layout.monorepo_package.templates_root_path (this package holds no templates)"
340
+ ],
341
+ "compliance_tier": "baseline"
342
+ },
343
+ "section_profiles": {
344
+ "repo": {
345
+ "owns_datastore": false,
346
+ "holds_client_state": false,
347
+ "components_interact": true,
348
+ "domain_data_across_components": true,
349
+ "caches_data": false,
350
+ "observability_convention": false,
351
+ "deploys_to_infra": false,
352
+ "shared_base_libs": true,
353
+ "is_monorepo": false,
354
+ "multi_platform": false,
355
+ "published_package": true,
356
+ "embedded_in_host": false,
357
+ "cross_repo_deps_material": true,
358
+ "security_arch_warranted": true,
359
+ "exposes_commands_or_artifacts": true
360
+ },
361
+ "resolved_by": "claude-code (code evidence; bootstrap questionnaire)",
362
+ "resolved_at": "2026-11-12T17:30:00Z"
363
+ }
364
+ }
package/AGENTS.md ADDED
@@ -0,0 +1,207 @@
1
+ <!-- sdd-generated-metadata
2
+ doc_kind: agent-entry
3
+ generated_from: agents@0.3.0
4
+ generated_by: claude-code
5
+ approved_by: rarajes2@cisco.com
6
+ updated_at: 2026-11-12T17:50:02Z
7
+ validation_status: pass
8
+ -->
9
+
10
+ # AI Agent Instructions
11
+
12
+ Package-scoped SDD entry for `@webex/plugin-team-memberships`, the public `teamMemberships` plugin of
13
+ the SDK (it adds people to Webex teams and reads, lists, updates, and removes their team memberships).
14
+ This file orients agents. The monorepo root `AGENTS.md` governs 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, method names, or request paths. Verify them from this
22
+ package's source.
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) (Team Memberships plugin);
34
+ and
35
+ - [`docs/adr/index.md`](docs/adr/index.md) plus applicable concrete ADRs.
36
+
37
+ Follow `.sdd/manifest.json` for each contract's publication state and canonical source. This package
38
+ publishes a public SDK surface, so its contract artifact is `package.json` plus the `src/index.js`
39
+ entry. It serves no HTTP, so no OpenAPI applies.
40
+
41
+ ## 1. Commands (Run First)
42
+
43
+ Use only documented commands. Do not invent alternatives when a command is missing. Run `yarn` and
44
+ `yarn prebuild:modules` at the workspace root, and the package scripts below from this package
45
+ directory, `packages/@webex/plugin-team-memberships`, where `package.json` defines them. From the
46
+ workspace root, `yarn workspace @webex/plugin-team-memberships <script>` runs the same script.
47
+
48
+ | Task | Command |
49
+ | ---------------------- | ------- |
50
+ | Install dependencies | `yarn` (workspace root; the deploy workflow runs the same command); on a fresh checkout run `yarn prebuild:modules` once, because `yarn` does not build `@webex/legacy-tools` or sibling `dist/` |
51
+ | Start dev environment | N/A — library package with no start script in `package.json` |
52
+ | Run tests | N/A — the package has no unit tests and no `test:unit` script (see below) |
53
+ | Run linters | `yarn test:style` |
54
+ | Build/release artifact | `yarn build:src` (JavaScript and source maps to `dist/`) |
55
+ | Format code | N/A — no format script; `prettier` is a devDependency used through eslint |
56
+
57
+ `yarn build` runs `yarn build:src` and produces the same output; the package emits no type
58
+ declarations.
59
+
60
+ Do not use the aggregate `test` script: after lint it calls `test:unit`, which this package does not
61
+ define, and exits 1. `yarn test:browser` runs `test/integration/spec` through karma but verifies
62
+ nothing today; see [Getting started](docs/getting-started.md#tests) for its state.
63
+
64
+ If a required command is unknown, stop and ask for the exact command.
65
+
66
+ ## 2. Agent Persona and Scope
67
+
68
+ You are the Webex JS SDK engineering assistant for `@webex/plugin-team-memberships`.
69
+
70
+ Primary outcomes:
71
+
72
+ - Deliver production-safe changes with build and lint passing, and unit tests for what you change.
73
+ - Preserve existing behavior unless a change request explicitly requires a behavior change.
74
+ - Keep docs and configuration aligned with code changes.
75
+
76
+ Definition of done:
77
+
78
+ 1. Requested change is implemented.
79
+ 2. Build and lint pass locally, and any unit cases you added pass.
80
+ 3. Updated docs cover new behavior, including the owning module spec.
81
+ 4. PR summary includes risks and rollback notes.
82
+
83
+ ## 3. Repository Knowledge
84
+
85
+ ### Tech Stack
86
+
87
+ | Area | Tooling | Version |
88
+ | ---------------- | ------- | ------- |
89
+ | Language runtime | node; JavaScript sources | 22.14 (workspace root `AGENTS.md`; `.nvmrc` `lts/jod`); package `engines` accepts `>=18`; the workspace root `package.json` `engines.node` reads `18.x` |
90
+ | Build tool | yarn workspaces and `@webex/legacy-tools` over babel | yarn `3.4.1` (root `packageManager`), `@babel/core` `^7.17.10` |
91
+ | Test framework | None runs: no unit spec; the integration spec uses mocha-style `describe` with sinon, `@webex/test-helper-chai`, and `@webex/test-helper-test-users` under karma | — |
92
+ | Lint/format | eslint via `@webex/eslint-config-legacy`, prettier | eslint `^8.24.0`, prettier `^2.7.1` |
93
+
94
+ ### Project Map
95
+
96
+ - `src/index.js`: registers public plugin `teamMemberships` and exports `TeamMemberships` (default
97
+ only).
98
+ - `src/team-memberships.js`: `TeamMemberships` — `create`, `get`, `list`, `update`, and `remove` — and
99
+ the `TeamMembershipObject` typedef.
100
+ - `test/integration/spec/team-memberships.js`: live-service cases that no script runs today.
101
+ - `process`: package-root module exporting `{browser: true}`; not imported by `src/`.
102
+ - `dist/`: generated build output. Never edit by hand.
103
+ - `README.md`: retained npm page, context only; its Usage example is not valid JavaScript; see
104
+ [ADR-0001](docs/adr/0001-retain-product-readme.md).
105
+ - Spec for every file under `src/`: `src/docs/README.md`.
106
+
107
+ ### Critical Constraints
108
+
109
+ - The plugin is `webex.teamMemberships`; `webex` and `webex-node` register it by import, and the
110
+ `webex` integration spec checks the property (`MOD-001` in the module spec).
111
+ - Every request goes to service `hydra`, resource `team/memberships`, through `this.request`
112
+ (`INV-001`).
113
+ - `get`, `update`, and `remove` take a membership object or its id (`INV-002`); `remove` resolves
114
+ `undefined` on 204 (`INV-003`).
115
+ - The caller's object is sent unchanged and the service's answer returned unchanged (`INV-004`).
116
+
117
+ ## 4. Testing Workflow
118
+
119
+ Run checks in this order, from the package directory:
120
+
121
+ 1. `yarn build:src`
122
+ 2. `yarn test:style`
123
+
124
+ Run `yarn prebuild:modules` once on a fresh checkout so `webex-legacy-tools` and the sibling packages'
125
+ `dist/` exist.
126
+
127
+ Testing rules:
128
+
129
+ - The package has no unit tests. When you change behavior, add a `test/unit/spec` file and the
130
+ matching `test:unit` script (`webex-legacy-tools test --unit --runner jest`, as sibling legacy
131
+ packages define it) in the same change; the integration spec does not run, so it does not count as
132
+ coverage.
133
+ - Use `@webex/test-helper-mock-webex` with a sinon stub for `webex.request`, and assert with
134
+ `@webex/test-helper-chai`.
135
+ - Use `assert.calledOnceWithExactly` for the request options, and parametrize when more than three
136
+ cases are alike, such as the object-or-id argument of `get`, `update`, and `remove`.
137
+ - Cover failure paths and edge cases, not only happy paths, such as the 204 branch and a missing
138
+ argument.
139
+ - Do not remove tests to make CI pass.
140
+
141
+ No coverage gate applies to this package; do not infer one.
142
+
143
+ ## 5. Code Style and Patterns
144
+
145
+ Coding expectations:
146
+
147
+ - Follow repository style rules and static analysis output. The local `.eslintrc.js` sets
148
+ `root: true` and extends the legacy config.
149
+ - Prefer small functions over large procedural blocks.
150
+ - Make error handling explicit.
151
+ - Keep public interfaces stable unless a breaking change is requested.
152
+
153
+ Pattern example:
154
+
155
+ ```text
156
+ Preferred:
157
+ - Send requests with this.request({service: 'hydra', resource: 'team/memberships/...'}).
158
+ - Resolve the id with membership.id || membership in methods that take a membership or an id.
159
+ - Return a webex-core Page from list.
160
+
161
+ Avoid:
162
+ - Building full Hydra URLs by hand instead of naming the service.
163
+ - Rewriting or validating the caller's membership object without a change request.
164
+ - Copying the README usage example, which uses a name the plugin is not registered under.
165
+ ```
166
+
167
+ ## 6. Git Workflow
168
+
169
+ - Branch naming: no package convention is defined; follow the workspace `CONTRIBUTING.md`.
170
+ - Commit format: conventional commits (`feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`), which
171
+ the workspace `CONTRIBUTING.md` requires for pull requests.
172
+ - Keep commits focused and reversible.
173
+ - Rebase on the target branch before opening a pull request.
174
+
175
+ PR checklist:
176
+
177
+ - What changed and why.
178
+ - Tests run and results.
179
+ - Risk and impact on applications that call `webex.teamMemberships`, and on the `webex` and
180
+ `webex-node` bundles.
181
+ - Rollback approach.
182
+
183
+ ## 7. Boundaries and Escalation
184
+
185
+ ### Always
186
+
187
+ - Prefer existing patterns over introducing new architecture.
188
+ - Keep changes minimal for the requested scope.
189
+ - Call out assumptions and unknowns explicitly.
190
+ - Update the owning module spec in the same change that alters observable behavior.
191
+
192
+ ### Ask First
193
+
194
+ - Adding or removing dependencies or peer dependencies.
195
+ - Renaming or removing a method or the registered plugin name.
196
+ - Changing a request path, the id rule, or the 204 handling.
197
+ - Fixing the recorded missing-argument throw or the string body of `update`, since callers may rely on
198
+ the current behavior.
199
+
200
+ ### Never
201
+
202
+ - Edit `dist/` by hand.
203
+ - Commit secrets, tokens, or credentials, including in test fixtures.
204
+ - Log person emails, person ids, or team ids through `webex.logger`.
205
+ - Add a `.sdd/templates` directory, a copy of the templates, or a link to them in this package. The
206
+ templates live once at the monorepo root, `../../../.sdd/templates/repo-standards`, and
207
+ `.sdd/manifest.json` refers to them through `layout.monorepo_package`.
@@ -213,7 +213,7 @@ var TeamMemberships = _webexCore.WebexPlugin.extend({
213
213
  return res.body;
214
214
  });
215
215
  },
216
- version: "3.13.0-next.3"
216
+ version: "3.13.0-next.5"
217
217
  });
218
218
  var _default = exports.default = TeamMemberships;
219
219
  //# sourceMappingURL=team-memberships.js.map
@@ -0,0 +1,99 @@
1
+ ---
2
+ type: ADR
3
+ title: ADR-0001 - Retain the product README
4
+ description: SDD onboarding keeps README.md as product documentation and routes it only as context.
5
+ tags: [adr]
6
+ timestamp: 2026-11-12T17:25: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-code
13
+ approved_by: rarajes2@cisco.com
14
+ updated_at: 2026-11-12T17:50:02Z
15
+ validation_status: pass
16
+ -->
17
+
18
+ # ADR-0001 - Retain the product README
19
+
20
+ | Field | Value |
21
+ | ------------- | ----- |
22
+ | Status | Accepted |
23
+ | Decision date | 2026-11-12 |
24
+ | Deciders | rarajes2@cisco.com (bootstrap questionnaire) |
25
+ | Supersedes | N/A |
26
+ | Superseded by | N/A |
27
+
28
+ ## Context
29
+
30
+ Onboarding found one existing document, `README.md`. It is the npm page: a one-line description
31
+ ("Team Membership plugin for the Cisco Webex JS SDK."), install commands, a pointer to the developer
32
+ portal and API docs, and a Usage block. No other intent, design, or AI-authored spec exists in this
33
+ package.
34
+
35
+ The README covers little, repeats itself, and its one example does not run:
36
+
37
+ | README content | Code |
38
+ | -------------- | ---- |
39
+ | The Install and Usage sections each appear twice | — |
40
+ | Usage calls `webex.team-memberships.get(id)` and names the arrow parameter `team-membership` | The plugin is registered as `teamMemberships` (`src/index.js`). The hyphenated member reads as a subtraction, and a hyphenated parameter name is a syntax error, so the block is not valid JavaScript |
41
+ | Nothing about `create`, `list`, `update`, or `remove` | All five methods are in `src/team-memberships.js` |
42
+
43
+ ## Decision
44
+
45
+ Keep `README.md` unchanged. Do not migrate it into the module specification. Record
46
+ `spec_source_policy.mode` as `keep-separate` with `migrated_source_disposition` `retain`, and route
47
+ `README.md` in `spec_sources` as `reference-only` and `context-only`.
48
+
49
+ The canonical behavior is `src/` plus `test/`. The module specification follows code.
50
+
51
+ ## Why
52
+
53
+ The README is the npm-facing page. Fixing or filling it in is a product-doc change, not a requirement
54
+ of making the package SDD-ready, and the other onboarded packages in this workspace kept their READMEs
55
+ the same way. It makes no behavioral claim the code does not already settle: its only example names a
56
+ method, `get`, that the module specification describes from code, so nothing is lost by not migrating
57
+ it.
58
+
59
+ ## Alternatives considered
60
+
61
+ | Alternative | Why it was not selected |
62
+ | ----------- | ----------------------- |
63
+ | Migrate the README into `src/docs/README.md` and delete it | It holds no behavior the specification lacks; deletion was not requested |
64
+ | Reconcile the README with the module specification in place | Reconciling would only carry a broken example; the developer chose `keep-separate` |
65
+ | Rewrite the README during onboarding | Onboarding writes the SDD tree only and does not edit `README.md` |
66
+
67
+ ## Consequences
68
+
69
+ **Positive:**
70
+
71
+ - The npm page stays stable for consumers.
72
+ - The module specification is the single behavioral reference.
73
+
74
+ **Negative / tradeoffs:**
75
+
76
+ - Agents must not copy the README example; the plugin is `webex.teamMemberships`.
77
+ - The repeated sections and the broken example remain until a maintainer makes a separate product-doc
78
+ change.
79
+
80
+ ## Constraint on future changes
81
+
82
+ Do not delete `README.md` as part of spec maintenance. If its usage text changes, keep the module
83
+ specification aligned with code rather than with the README.
84
+
85
+ ## Follow-up
86
+
87
+ - [ ] A maintainer may fix the Usage example to `webex.teamMemberships.get(id)`, remove the repeated
88
+ sections, and add examples for the other methods in a separate product-doc change.
89
+
90
+ ## Revisit when
91
+
92
+ - A maintainer rewrites the README to document the five methods.
93
+
94
+ ## References
95
+
96
+ - `README.md`
97
+ - `src/index.js`
98
+ - `src/team-memberships.js`
99
+ - `.sdd/manifest.json` `spec_source_policy`