@webex/plugin-teams 3.13.0-next.4 → 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,365 @@
1
+ {
2
+ "manifest_version": 1,
3
+ "repository": {
4
+ "name": "@webex/plugin-teams",
5
+ "purpose": "Public plugin registered as webex.teams that manages Webex teams through the Webex REST API teams resource (catalog service hydra): create POSTs a team, get takes a team object or id and resolves one team, list resolves a webex-core Page, and update PUTs the whole team object. Each call sends one request through webex.request and resolves what the service returns; the plugin checks no argument, emits no event, defines no delete, and caches or persists nothing.",
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:30:39Z"
28
+ },
29
+ "build": {
30
+ "command": "yarn build:src",
31
+ "source_file": "package.json",
32
+ "role": "package",
33
+ "verified_at": "2026-11-12T17:30:38Z"
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/teams.js, runs only under test:browser:broken, 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:30:41Z"
41
+ },
42
+ "browser-test": {
43
+ "command": "yarn test:browser:broken",
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": ">=16",
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:26:00Z",
119
+ "decided_by": "rarajes2@cisco.com",
120
+ "decided_at": "2026-11-12T17:26: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; its one example, webex.teams.get(id), matches the code. It documents nothing about create, list, or update, and names no scope. 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% (11/11) assessed 2026-11-12 by the generator; critical field coverage 6/6. The package has no unit tests: package.json defines no test:unit script and there is no test/unit directory, so none of MOD-001 to MOD-005 has running test evidence. The integration spec test/integration/spec/teams.js holds 9 live-service cases (2 skipped) for create, get, list with paging, update, and rooms created in a team, but no package script runs it: test:browser:broken bundles nothing (isbot parse error, no case run, exit 0) and test:integration does not exist. build:src, build, and test:style exit 0 (0 warnings, 0 errors before this spec existed). Independent validation passed with warnings on 2026-11-12 (0 Blocking, 0 Important, 0 Medium, 1 Minor) using validator runtime 01a1d0dc-f5ef-76b0-8766-2a81183f4462; API and behavior claims matched source, with automated test evidence still absent. 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
+ "teams-public-sdk"
145
+ ],
146
+ "requires": [
147
+ "hydra-teams-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": false,
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": false,
169
+ "resolved_by": "claude-code (code evidence; bootstrap questionnaire)",
170
+ "resolved_at": "2026-11-12T17:28:00Z",
171
+ "has_submodules": false,
172
+ "has_submodules_computed_by": "scripts/module_tree.py",
173
+ "has_submodules_computed_at": "2026-11-12T17:28:00Z"
174
+ }
175
+ }
176
+ ],
177
+ "contract_catalog": {
178
+ "index_path": "docs/architecture.md",
179
+ "definitions": {
180
+ "teams-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 Teams as public plugin 'teams' with no config; the first registration of the name wins. The entry exports only the default Teams class. webex.teams exposes create, get, list, and update and nothing else (no delete, no events); specified in src/docs/README.md."
186
+ },
187
+ "hydra-teams-http": {
188
+ "kind": "http",
189
+ "publication": "internal",
190
+ "source_kind": "external",
191
+ "source": "Webex REST API teams resource (catalog service name hydra, reached through service: 'hydra' in src/teams.js; route definitions are not in this repository)",
192
+ "summary": "POST /teams with a team body; GET /teams/<id> with optional query; GET /teams/ with the caller's query object answering a paged {items} with Link headers; PUT /teams/<id> with the whole team body. A team carries at least id (a Hydra id), name, and created (ISO date), per the JSDoc typedef and the isTeam assertion of @webex/test-helper-chai."
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-048, UC-004)",
199
+ "summary": "registerPlugin keys a public plugin by its raw name (teams, first registration wins) and adds webex.<name> to later instances; WebexPlugin supplies webex and request; a failed request rejects with a 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, MOD-055)",
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; hasNext and hasPrevious report the links; 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": "01a1d0dc-f5ef-76b0-8766-2a81183f4462",
227
+ "validator_run_id": "01a1d0dc-f5ef-76b0-8766-2a81183f4462",
228
+ "validator_runtime_source": "invocation-input",
229
+ "runtime_fallback_tier": "different-runtime"
230
+ },
231
+ "layout": {
232
+ "sdd_root": ".sdd",
233
+ "docs_root": "docs",
234
+ "agent_entry_path": "AGENTS.md",
235
+ "standing_docs_root": "docs",
236
+ "spec_index_path": "docs/specs/README.md",
237
+ "module_docs_strategy": "source-local",
238
+ "module_docs_relative_path": "docs/README.md",
239
+ "module_docs_decision": {
240
+ "basis": "repo-standards-default",
241
+ "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/.",
242
+ "decided_by": "rarajes2@cisco.com (bootstrap questionnaire)",
243
+ "decided_at": "2026-11-12T17:28:00Z"
244
+ },
245
+ "repo_context_decision": {
246
+ "path": ".repo-context.json",
247
+ "schema_path": "schemas/repo-context.schema.json",
248
+ "action": "create",
249
+ "schema_action": "create",
250
+ "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.",
251
+ "decided_by": "rarajes2@cisco.com (bootstrap questionnaire)",
252
+ "decided_at": "2026-11-12T17:28:00Z"
253
+ },
254
+ "artifact_decisions": [
255
+ {
256
+ "path": "docs/service.md",
257
+ "action": "omit",
258
+ "reason": "Library package, not a deployable service. package.json has no start script, container, or deployment descriptor.",
259
+ "decided_by": "claude-code (code evidence)",
260
+ "decided_at": "2026-11-12T17:28:00Z"
261
+ },
262
+ {
263
+ "path": "mkdocs.yml",
264
+ "action": "omit",
265
+ "reason": "No package-level documentation site exists. Documentation publishing stays with the workspace.",
266
+ "decided_by": "claude-code (code evidence)",
267
+ "decided_at": "2026-11-12T17:28:00Z"
268
+ },
269
+ {
270
+ "path": "api-specs/openapi.yaml",
271
+ "action": "omit",
272
+ "reason": "The package serves no HTTP routes. It is a client of the Webex REST API teams resource; its published surface is the npm export described by teams-public-sdk.",
273
+ "decided_by": "claude-code (code evidence)",
274
+ "decided_at": "2026-11-12T17:28:00Z"
275
+ },
276
+ {
277
+ "path": "SECURITY.md",
278
+ "action": "omit",
279
+ "reason": "No package-level security policy exists. The workspace owns security policy, and a per-package copy would duplicate it; security is described under Cross-cutting architecture in docs/architecture.md.",
280
+ "decided_by": "claude-code (code evidence)",
281
+ "decided_at": "2026-11-12T17:28:00Z"
282
+ },
283
+ {
284
+ "path": "CONTRIBUTING.md",
285
+ "action": "omit",
286
+ "reason": "Contribution instructions are owned at the workspace root CONTRIBUTING.md.",
287
+ "decided_by": "claude-code (code evidence)",
288
+ "decided_at": "2026-11-12T17:28:00Z"
289
+ },
290
+ {
291
+ "path": "CHANGELOG.md",
292
+ "action": "omit",
293
+ "reason": "Changelog generation is owned at the workspace root. This package has no changelog file.",
294
+ "decided_by": "claude-code (code evidence)",
295
+ "decided_at": "2026-11-12T17:28:00Z"
296
+ },
297
+ {
298
+ "path": "CTO_CHECKLIST.yml",
299
+ "action": "omit",
300
+ "reason": "The CTO readiness checklist applies to deployable services. This package is a library.",
301
+ "decided_by": "claude-code (code evidence)",
302
+ "decided_at": "2026-11-12T17:28:00Z"
303
+ },
304
+ {
305
+ "path": "schemas/cto-checklist.schema.json",
306
+ "action": "omit",
307
+ "reason": "Omitted together with CTO_CHECKLIST.yml.",
308
+ "decided_by": "claude-code (code evidence)",
309
+ "decided_at": "2026-11-12T17:28:00Z"
310
+ }
311
+ ],
312
+ "template_roots": {
313
+ "canonical": ".sdd/templates/repo-standards"
314
+ },
315
+ "contract_index_path": "docs/architecture.md",
316
+ "repo_skills_root": ".sdd/skills",
317
+ "monorepo_package": {
318
+ "package_path": "packages/@webex/plugin-teams",
319
+ "root_manifest_path": "../../../.sdd/manifest.json",
320
+ "templates_root_path": "../../../.sdd/templates/repo-standards"
321
+ }
322
+ },
323
+ "tooling": {
324
+ "sdlc_skills": {
325
+ "source_ref": "repo-annotation@2.3.1"
326
+ }
327
+ },
328
+ "coverage_ratchet": {
329
+ "enabled": true,
330
+ "waivers": []
331
+ },
332
+ "substrate": {
333
+ "source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
334
+ "consumed": [
335
+ "@webex/eslint-config-legacy via .eslintrc.js",
336
+ "@webex/babel-config-legacy via babel.config.js",
337
+ "@webex/jest-config-legacy via jest.config.js (no unit spec uses it)",
338
+ "@webex/legacy-tools build and test runner via package.json",
339
+ "package README.md (context only)",
340
+ "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)"
341
+ ],
342
+ "compliance_tier": "baseline"
343
+ },
344
+ "section_profiles": {
345
+ "repo": {
346
+ "owns_datastore": false,
347
+ "holds_client_state": false,
348
+ "components_interact": true,
349
+ "domain_data_across_components": true,
350
+ "caches_data": false,
351
+ "observability_convention": false,
352
+ "deploys_to_infra": false,
353
+ "shared_base_libs": true,
354
+ "is_monorepo": false,
355
+ "multi_platform": false,
356
+ "published_package": true,
357
+ "embedded_in_host": false,
358
+ "cross_repo_deps_material": true,
359
+ "security_arch_warranted": false,
360
+ "exposes_commands_or_artifacts": true
361
+ },
362
+ "resolved_by": "claude-code (code evidence; bootstrap questionnaire)",
363
+ "resolved_at": "2026-11-12T17:28:00Z"
364
+ }
365
+ }
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-code
5
+ approved_by: rarajes2@cisco.com
6
+ updated_at: 2026-11-12T17:50:28Z
7
+ validation_status: pass-with-warnings
8
+ -->
9
+
10
+ # AI Agent Instructions
11
+
12
+ Package-scoped SDD entry for `@webex/plugin-teams`, the public `teams` plugin of the SDK (it creates,
13
+ reads, lists, and updates Webex teams through the Webex REST API). This file orients agents. The
14
+ 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) (Teams 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 a public SDK surface, so its contract artifact is `package.json` plus the `src/index.js`
38
+ entry. It serves no HTTP, 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 `yarn` and
43
+ `yarn prebuild:modules` at the workspace root, and the package scripts below from this package
44
+ directory, `packages/@webex/plugin-teams`, where `package.json` defines them. From the workspace root,
45
+ `yarn workspace @webex/plugin-teams <script>` runs the same script.
46
+
47
+ | Task | Command |
48
+ | ---------------------- | ------- |
49
+ | 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/` |
50
+ | Start dev environment | N/A — library package with no start script in `package.json` |
51
+ | Run tests | N/A — the package has no unit tests and no `test:unit` script (see below) |
52
+ | Run linters | `yarn test:style` |
53
+ | Build/release artifact | `yarn build:src` (JavaScript and source maps to `dist/`) |
54
+ | Format code | N/A — no format script; `prettier` is a devDependency used through eslint |
55
+
56
+ `yarn build` runs `yarn build:src` and produces the same output; the package emits no type
57
+ declarations.
58
+
59
+ Do not use the aggregate `test` script: after lint it calls `test:unit`, which this package does not
60
+ define, and exits 1. `yarn test:browser:broken` runs `test/integration/spec` through karma but verifies
61
+ nothing today; see [Getting started](docs/getting-started.md#tests) for its state.
62
+
63
+ If a required command is unknown, stop and ask for the exact command.
64
+
65
+ ## 2. Agent Persona and Scope
66
+
67
+ You are the Webex JS SDK engineering assistant for `@webex/plugin-teams`.
68
+
69
+ Primary outcomes:
70
+
71
+ - Deliver production-safe changes with build and lint passing, and unit tests for what you change.
72
+ - Preserve existing behavior unless a change request explicitly requires a behavior change.
73
+ - Keep docs and configuration aligned with code changes.
74
+
75
+ Definition of done:
76
+
77
+ 1. Requested change is implemented.
78
+ 2. Build and lint pass locally, and any unit cases you added pass.
79
+ 3. Updated docs cover new behavior, including the owning module spec.
80
+ 4. PR summary includes risks and rollback notes.
81
+
82
+ ## 3. Repository Knowledge
83
+
84
+ ### Tech Stack
85
+
86
+ | Area | Tooling | Version |
87
+ | ---------------- | ------- | ------- |
88
+ | Language runtime | node; JavaScript sources | 22.14 (workspace root `AGENTS.md`; `.nvmrc` `lts/jod`); package `engines` accepts `>=16`; the workspace root `package.json` `engines.node` reads `18.x` |
89
+ | Build tool | yarn workspaces and `@webex/legacy-tools` over babel | yarn `3.4.1` (root `packageManager`), `@babel/core` `^7.17.10` |
90
+ | 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 | — |
91
+ | Lint/format | eslint via `@webex/eslint-config-legacy`, prettier | eslint `^8.24.0`, prettier `^2.7.1` |
92
+
93
+ ### Project Map
94
+
95
+ - `src/index.js`: registers public plugin `teams` and exports `Teams` (default only).
96
+ - `src/teams.js`: `Teams` — `create`, `get`, `list`, and `update`, and the `TeamObject` typedef.
97
+ - `test/integration/spec/teams.js`: live-service cases that no script runs today.
98
+ - `process`: package-root module exporting `{browser: true}`; not imported by `src/`.
99
+ - `dist/`: generated build output. Never edit by hand.
100
+ - `README.md`: retained npm page, context only; it shows only `get(id)`; see
101
+ [ADR-0001](docs/adr/0001-retain-product-readme.md).
102
+ - Spec for every file under `src/`: `src/docs/README.md`.
103
+
104
+ ### Critical Constraints
105
+
106
+ - The plugin is `webex.teams`; `webex` and `webex-node` register it by import, and applications call
107
+ it (`MOD-001` in the module spec).
108
+ - Every request goes to catalog service `hydra` through `this.request`: `POST teams`,
109
+ `GET teams/<id>`, `GET teams/`, and `PUT teams/<id>` (`MOD-002` to `MOD-005`).
110
+ - `get` accepts a team object or an id; `list` resolves a webex-core `Page`.
111
+ - The plugin passes the caller's object and options through unchanged and resolves what the service
112
+ returns; it has no delete method and emits no event.
113
+
114
+ ## 4. Testing Workflow
115
+
116
+ Run checks in this order, from the package directory:
117
+
118
+ 1. `yarn build:src`
119
+ 2. `yarn test:style`
120
+
121
+ Run `yarn prebuild:modules` once on a fresh checkout so `webex-legacy-tools` and the sibling packages'
122
+ `dist/` exist.
123
+
124
+ Testing rules:
125
+
126
+ - The package has no unit tests. When you change behavior, add a `test/unit/spec` file and the
127
+ matching `test:unit` script (`webex-legacy-tools test --unit --runner jest`, as sibling legacy
128
+ packages define it) in the same change; the integration spec does not run, so it does not count as
129
+ coverage.
130
+ - Use `@webex/test-helper-mock-webex` with a sinon stub for `webex.request`, and assert with
131
+ `@webex/test-helper-chai`.
132
+ - Use `assert.calledOnceWithExactly` for the request options, and parametrize when more than three
133
+ cases are alike, such as the four request shapes.
134
+ - Cover failure paths and edge cases, not only happy paths: a rejected request, a body with `items`,
135
+ `get` with an object and with an id, and a missing argument.
136
+ - Do not remove tests to make CI pass.
137
+
138
+ No coverage gate applies to this package; do not infer one.
139
+
140
+ ## 5. Code Style and Patterns
141
+
142
+ Coding expectations:
143
+
144
+ - Follow repository style rules and static analysis output. The local `.eslintrc.js` sets
145
+ `root: true` and extends the legacy config.
146
+ - Prefer small functions over large procedural blocks.
147
+ - Make error handling explicit; keep today's failure behavior (see Ask First) unless the change
148
+ request covers it.
149
+ - Keep public interfaces stable unless a breaking change is requested.
150
+
151
+ Pattern example:
152
+
153
+ ```text
154
+ Preferred:
155
+ - Send team requests with this.request({service: 'hydra', resource: 'teams/...'}).
156
+ - Accept a team object or an id where get does today.
157
+ - Resolve list results as new Page(res, this.webex).
158
+
159
+ Avoid:
160
+ - Building Hydra URLs by hand or calling the service outside this.request.
161
+ - Caching team records or reshaping the service response.
162
+ - Treating README.md as the full usage reference.
163
+ ```
164
+
165
+ ## 6. Git Workflow
166
+
167
+ - Branch naming: no package convention is defined; follow the workspace `CONTRIBUTING.md`.
168
+ - Commit format: conventional commits (`feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`), which
169
+ the workspace `CONTRIBUTING.md` requires for pull requests.
170
+ - Keep commits focused and reversible.
171
+ - Rebase on the target branch before opening a pull request.
172
+
173
+ PR checklist:
174
+
175
+ - What changed and why.
176
+ - Tests run and results.
177
+ - Risk and impact on applications that call `webex.teams`, and on the `webex` and `webex-node`
178
+ bundles.
179
+ - Rollback approach.
180
+
181
+ ## 7. Boundaries and Escalation
182
+
183
+ ### Always
184
+
185
+ - Prefer existing patterns over introducing new architecture.
186
+ - Keep changes minimal for the requested scope.
187
+ - Call out assumptions and unknowns explicitly.
188
+ - Update the owning module spec in the same change that alters observable behavior.
189
+
190
+ ### Ask First
191
+
192
+ - Adding or removing dependencies or peer dependencies.
193
+ - Renaming or removing a method or the registered plugin name.
194
+ - Adding a method, such as a delete, or an event.
195
+ - Changing a request path, the `items` handling of `get`, or the `Page` result of `list`.
196
+ - Adding argument checks that would turn today's synchronous `TypeError` or service error into a
197
+ different failure.
198
+
199
+ ### Never
200
+
201
+ - Edit `dist/` by hand.
202
+ - Commit secrets, tokens, or credentials, including in test fixtures.
203
+ - Log team names or team ids through `webex.logger`.
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 through `layout.monorepo_package`.
package/dist/teams.js CHANGED
@@ -156,7 +156,7 @@ var Teams = _webexCore.WebexPlugin.extend({
156
156
  return res.body;
157
157
  });
158
158
  },
159
- version: "3.13.0-next.4"
159
+ version: "3.13.0-next.5"
160
160
  });
161
161
  var _default = exports.default = Teams;
162
162
  //# sourceMappingURL=teams.js.map
@@ -0,0 +1,96 @@
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:26: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:28Z
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-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
+ ("Teams plugin for the Cisco Webex JS SDK."), install commands, a pointer to the developer portal, and
32
+ a Usage block. No other intent, design, or AI-authored spec exists in this package.
33
+
34
+ The README is accurate where it speaks, but it covers little and repeats itself:
35
+
36
+ | README content | Code |
37
+ | -------------- | ---- |
38
+ | The Install and Usage sections each appear twice | — |
39
+ | Usage shows `webex.teams.get(id)` resolving a team | Matches `get` in `src/teams.js` |
40
+ | Nothing about `create`, `list`, or `update`, or about scopes | All four methods are in `src/teams.js`; no scope is named in the 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 route
46
+ `README.md` in `spec_sources` as `reference-only` and `context-only`.
47
+
48
+ The canonical behavior is `src/` plus `test/`. The module specification follows code.
49
+
50
+ ## Why
51
+
52
+ The README is the npm-facing page. Filling it in is a product-doc change, not a requirement of making
53
+ the package SDD-ready, and the other onboarded packages in this workspace kept their READMEs the same
54
+ way. Its one behavioral claim, the `get(id)` example, is already in the module specification, so
55
+ nothing is lost by not migrating it.
56
+
57
+ ## Alternatives considered
58
+
59
+ | Alternative | Why it was not selected |
60
+ | ----------- | ----------------------- |
61
+ | Migrate the README into `src/docs/README.md` and delete it | Its behavior is already specified; deletion was not requested |
62
+ | Reconcile the README with the module specification in place | Reconciling would only carry one example; the developer chose `keep-separate` |
63
+ | Rewrite the README during onboarding | Onboarding writes the SDD tree only and does not edit `README.md` |
64
+
65
+ ## Consequences
66
+
67
+ **Positive:**
68
+
69
+ - The npm page stays stable for consumers.
70
+ - The module specification is the single behavioral reference.
71
+
72
+ **Negative / tradeoffs:**
73
+
74
+ - Agents must not treat `README.md` as complete; it shows only `get(id)`.
75
+ - The repeated Install and Usage sections remain until a maintainer makes a separate product-doc change.
76
+
77
+ ## Constraint on future changes
78
+
79
+ Do not delete `README.md` as part of spec maintenance. If its usage text changes, keep the module
80
+ specification aligned with code rather than with the README.
81
+
82
+ ## Follow-up
83
+
84
+ - [ ] A maintainer may remove the repeated sections and add examples for `create`, `list`, and
85
+ `update` in a separate product-doc change.
86
+
87
+ ## Revisit when
88
+
89
+ - A maintainer rewrites the README to document more than `get(id)`.
90
+
91
+ ## References
92
+
93
+ - `README.md`
94
+ - `src/index.js`
95
+ - `src/teams.js`
96
+ - `.sdd/manifest.json` `spec_source_policy`