@webex/plugin-teams 3.13.0-next.5 → 3.13.0-next.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.repo-context.json +21 -23
- package/.sdd/manifest.json +8 -16
- package/AGENTS.md +12 -15
- package/dist/teams.js +1 -1
- package/docs/architecture.md +3 -3
- package/docs/getting-started.md +11 -19
- package/docs/specs/README.md +1 -1
- package/package.json +10 -10
package/.repo-context.json
CHANGED
|
@@ -7,13 +7,11 @@
|
|
|
7
7
|
},
|
|
8
8
|
"commands": {
|
|
9
9
|
"install": "yarn",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"browser-test": "yarn test:browser:broken",
|
|
16
|
-
"deploy": "yarn deploy:npm"
|
|
10
|
+
"compile": "yarn workspace @webex/plugin-teams build",
|
|
11
|
+
"build": "yarn workspace @webex/plugin-teams build:src",
|
|
12
|
+
"lint": "yarn workspace @webex/plugin-teams test:style",
|
|
13
|
+
"browser-test": "yarn workspace @webex/plugin-teams test:browser:broken",
|
|
14
|
+
"deploy": "yarn workspace @webex/plugin-teams deploy:npm"
|
|
17
15
|
},
|
|
18
16
|
"public_interfaces": [
|
|
19
17
|
{
|
|
@@ -67,10 +65,10 @@
|
|
|
67
65
|
"dist"
|
|
68
66
|
],
|
|
69
67
|
"refresh_with": [
|
|
70
|
-
"yarn build:src"
|
|
68
|
+
"yarn workspace @webex/plugin-teams build:src"
|
|
71
69
|
],
|
|
72
70
|
"validate_with": [
|
|
73
|
-
"yarn test:style"
|
|
71
|
+
"yarn workspace @webex/plugin-teams test:style"
|
|
74
72
|
]
|
|
75
73
|
},
|
|
76
74
|
{
|
|
@@ -91,7 +89,7 @@
|
|
|
91
89
|
{
|
|
92
90
|
"path": "dist",
|
|
93
91
|
"generated_from": "src",
|
|
94
|
-
"refresh_with": "yarn build:src"
|
|
92
|
+
"refresh_with": "yarn workspace @webex/plugin-teams build:src"
|
|
95
93
|
},
|
|
96
94
|
{
|
|
97
95
|
"path": "../../../.sdd/templates/repo-standards/template-map.json",
|
|
@@ -105,8 +103,8 @@
|
|
|
105
103
|
"src/**"
|
|
106
104
|
],
|
|
107
105
|
"minimum": [
|
|
108
|
-
"yarn build:src",
|
|
109
|
-
"yarn test:style"
|
|
106
|
+
"yarn workspace @webex/plugin-teams build:src",
|
|
107
|
+
"yarn workspace @webex/plugin-teams test:style"
|
|
110
108
|
],
|
|
111
109
|
"recommended": [
|
|
112
110
|
"add a test/unit/spec case and a test:unit script for the changed behavior; the package has no unit tests"
|
|
@@ -117,8 +115,8 @@
|
|
|
117
115
|
"src/teams.js"
|
|
118
116
|
],
|
|
119
117
|
"minimum": [
|
|
120
|
-
"yarn build:src",
|
|
121
|
-
"yarn test:style"
|
|
118
|
+
"yarn workspace @webex/plugin-teams build:src",
|
|
119
|
+
"yarn workspace @webex/plugin-teams test:style"
|
|
122
120
|
],
|
|
123
121
|
"recommended": [
|
|
124
122
|
"pin the four request options and the resolved values, including get resolving body.items and list resolving a Page, with unit cases before changing them"
|
|
@@ -129,8 +127,8 @@
|
|
|
129
127
|
"src/index.js"
|
|
130
128
|
],
|
|
131
129
|
"minimum": [
|
|
132
|
-
"yarn build:src",
|
|
133
|
-
"yarn test:style"
|
|
130
|
+
"yarn workspace @webex/plugin-teams build:src",
|
|
131
|
+
"yarn workspace @webex/plugin-teams test:style"
|
|
134
132
|
],
|
|
135
133
|
"recommended": [
|
|
136
134
|
"check the bundles that register the plugin (webex, webex-node) when the registered name changes"
|
|
@@ -148,10 +146,10 @@
|
|
|
148
146
|
"callers that page through list"
|
|
149
147
|
],
|
|
150
148
|
"refresh_with": [
|
|
151
|
-
"yarn build:src"
|
|
149
|
+
"yarn workspace @webex/plugin-teams build:src"
|
|
152
150
|
],
|
|
153
151
|
"validate_with": [
|
|
154
|
-
"yarn test:style"
|
|
152
|
+
"yarn workspace @webex/plugin-teams test:style"
|
|
155
153
|
],
|
|
156
154
|
"avoid_direct_edits": [
|
|
157
155
|
"dist"
|
|
@@ -166,10 +164,10 @@
|
|
|
166
164
|
"the registered plugin name"
|
|
167
165
|
],
|
|
168
166
|
"refresh_with": [
|
|
169
|
-
"yarn build:src"
|
|
167
|
+
"yarn workspace @webex/plugin-teams build:src"
|
|
170
168
|
],
|
|
171
169
|
"validate_with": [
|
|
172
|
-
"yarn test:style"
|
|
170
|
+
"yarn workspace @webex/plugin-teams test:style"
|
|
173
171
|
],
|
|
174
172
|
"avoid_direct_edits": [
|
|
175
173
|
"dist"
|
|
@@ -281,7 +279,7 @@
|
|
|
281
279
|
"dist"
|
|
282
280
|
],
|
|
283
281
|
"generated_from": "src",
|
|
284
|
-
"refresh_with": "yarn build:src",
|
|
282
|
+
"refresh_with": "yarn workspace @webex/plugin-teams build:src",
|
|
285
283
|
"notes": "JavaScript and source maps from webex-legacy-tools; no type declarations. Do not edit by hand."
|
|
286
284
|
},
|
|
287
285
|
{
|
|
@@ -297,13 +295,13 @@
|
|
|
297
295
|
"validation_entrypoints": [
|
|
298
296
|
{
|
|
299
297
|
"name": "compile",
|
|
300
|
-
"command": "yarn build",
|
|
298
|
+
"command": "yarn workspace @webex/plugin-teams build",
|
|
301
299
|
"scope": "src",
|
|
302
300
|
"notes": "Runs build:src."
|
|
303
301
|
},
|
|
304
302
|
{
|
|
305
303
|
"name": "lint",
|
|
306
|
-
"command": "yarn test:style",
|
|
304
|
+
"command": "yarn workspace @webex/plugin-teams test:style",
|
|
307
305
|
"scope": "src",
|
|
308
306
|
"notes": "eslint via the local .eslintrc.js; docs/** and *.md are ignored."
|
|
309
307
|
}
|
package/.sdd/manifest.json
CHANGED
|
@@ -15,37 +15,29 @@
|
|
|
15
15
|
"source_file": "../../../.github/workflows/deploy.yml",
|
|
16
16
|
"role": "install"
|
|
17
17
|
},
|
|
18
|
-
"prebuild": {
|
|
19
|
-
"command": "yarn prebuild:modules",
|
|
20
|
-
"source_file": "../../../CONTRIBUTING.md",
|
|
21
|
-
"role": "other"
|
|
22
|
-
},
|
|
23
18
|
"compile": {
|
|
24
|
-
"command": "yarn build",
|
|
19
|
+
"command": "yarn workspace @webex/plugin-teams build",
|
|
25
20
|
"source_file": "package.json",
|
|
26
|
-
"role": "compile"
|
|
27
|
-
"verified_at": "2026-11-12T17:30:39Z"
|
|
21
|
+
"role": "compile"
|
|
28
22
|
},
|
|
29
23
|
"build": {
|
|
30
|
-
"command": "yarn build:src",
|
|
24
|
+
"command": "yarn workspace @webex/plugin-teams build:src",
|
|
31
25
|
"source_file": "package.json",
|
|
32
|
-
"role": "package"
|
|
33
|
-
"verified_at": "2026-11-12T17:30:38Z"
|
|
26
|
+
"role": "package"
|
|
34
27
|
},
|
|
35
28
|
"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
29
|
"lint": {
|
|
37
|
-
"command": "yarn test:style",
|
|
30
|
+
"command": "yarn workspace @webex/plugin-teams test:style",
|
|
38
31
|
"source_file": "package.json",
|
|
39
|
-
"role": "lint"
|
|
40
|
-
"verified_at": "2026-11-12T17:30:41Z"
|
|
32
|
+
"role": "lint"
|
|
41
33
|
},
|
|
42
34
|
"browser-test": {
|
|
43
|
-
"command": "yarn test:browser:broken",
|
|
35
|
+
"command": "yarn workspace @webex/plugin-teams test:browser:broken",
|
|
44
36
|
"source_file": "package.json",
|
|
45
37
|
"role": "other"
|
|
46
38
|
},
|
|
47
39
|
"deploy": {
|
|
48
|
-
"command": "yarn deploy:npm",
|
|
40
|
+
"command": "yarn workspace @webex/plugin-teams deploy:npm",
|
|
49
41
|
"source_file": "package.json",
|
|
50
42
|
"role": "deploy"
|
|
51
43
|
}
|
package/AGENTS.md
CHANGED
|
@@ -39,25 +39,25 @@ entry. It serves no HTTP, so no OpenAPI applies.
|
|
|
39
39
|
|
|
40
40
|
## 1. Commands (Run First)
|
|
41
41
|
|
|
42
|
-
Use only documented commands. Do not invent alternatives when a command is missing. Run
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
`
|
|
42
|
+
Use only documented commands. Do not invent alternatives when a command is missing. Run every command
|
|
43
|
+
below from the workspace root. The package scripts run through
|
|
44
|
+
`yarn workspace @webex/plugin-teams <script>`; `package.json` in
|
|
45
|
+
`packages/@webex/plugin-teams` defines them.
|
|
46
46
|
|
|
47
47
|
| Task | Command |
|
|
48
48
|
| ---------------------- | ------- |
|
|
49
|
-
| Install dependencies | `yarn` (workspace root; the deploy workflow runs the same command)
|
|
49
|
+
| Install dependencies | `yarn` (workspace root; the deploy workflow runs the same command). Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the workspace root; see [Prebuilding](../../../CONTRIBUTING.md#prebuilding) |
|
|
50
50
|
| Start dev environment | N/A — library package with no start script in `package.json` |
|
|
51
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/`) |
|
|
52
|
+
| Run linters | `yarn workspace @webex/plugin-teams test:style` |
|
|
53
|
+
| Build/release artifact | `yarn workspace @webex/plugin-teams build:src` (JavaScript and source maps to `dist/`) |
|
|
54
54
|
| Format code | N/A — no format script; `prettier` is a devDependency used through eslint |
|
|
55
55
|
|
|
56
|
-
`yarn build` runs `
|
|
56
|
+
`yarn workspace @webex/plugin-teams build` runs `build:src` and produces the same output; the package emits no type
|
|
57
57
|
declarations.
|
|
58
58
|
|
|
59
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
|
|
60
|
+
define, and exits 1. `yarn workspace @webex/plugin-teams test:browser:broken` runs `test/integration/spec` through karma but verifies
|
|
61
61
|
nothing today; see [Getting started](docs/getting-started.md#tests) for its state.
|
|
62
62
|
|
|
63
63
|
If a required command is unknown, stop and ask for the exact command.
|
|
@@ -113,13 +113,10 @@ Definition of done:
|
|
|
113
113
|
|
|
114
114
|
## 4. Testing Workflow
|
|
115
115
|
|
|
116
|
-
Run checks in this order, from the
|
|
116
|
+
Run checks in this order, from the workspace root:
|
|
117
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.
|
|
118
|
+
1. `yarn workspace @webex/plugin-teams build:src`
|
|
119
|
+
2. `yarn workspace @webex/plugin-teams test:style`
|
|
123
120
|
|
|
124
121
|
Testing rules:
|
|
125
122
|
|
package/dist/teams.js
CHANGED
package/docs/architecture.md
CHANGED
|
@@ -173,9 +173,9 @@ flowchart LR
|
|
|
173
173
|
|
|
174
174
|
| Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
|
|
175
175
|
| ------------------- | ----- | ------ | --------------------- | ---------------------- |
|
|
176
|
-
| `yarn build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
|
|
177
|
-
| `yarn build` | Package scripts | `src` | Runs `build:src` | Same output |
|
|
178
|
-
| `yarn test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
|
|
176
|
+
| `yarn workspace @webex/plugin-teams build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
|
|
177
|
+
| `yarn workspace @webex/plugin-teams build` | Package scripts | `src` | Runs `build:src` | Same output |
|
|
178
|
+
| `yarn workspace @webex/plugin-teams test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
|
|
179
179
|
|
|
180
180
|
## Cross-repository topology
|
|
181
181
|
|
package/docs/getting-started.md
CHANGED
|
@@ -16,9 +16,9 @@ validation_status: pass-with-warnings
|
|
|
16
16
|
# Getting started
|
|
17
17
|
|
|
18
18
|
Onboarding for **@webex/plugin-teams**, a package inside the `webex-js-sdk` Yarn workspace.
|
|
19
|
-
Run
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
Run every command from the workspace root. The package scripts run through
|
|
20
|
+
`yarn workspace @webex/plugin-teams <script>`; `package.json` in
|
|
21
|
+
`packages/@webex/plugin-teams` defines them.
|
|
22
22
|
|
|
23
23
|
## Prerequisites
|
|
24
24
|
|
|
@@ -36,21 +36,13 @@ yarn
|
|
|
36
36
|
|
|
37
37
|
The workspace `deploy.yml` workflow installs with the same command.
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
packages' `dist/`:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
yarn prebuild:modules
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
It runs `yarn`, then builds the tools, the legacy tools, `@webex/webex-core`, and every package, in
|
|
48
|
-
that order (root `package.json`; see the workspace `CONTRIBUTING.md` "Prebuilding").
|
|
39
|
+
Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the workspace root; see
|
|
40
|
+
[Prebuilding](../../../../CONTRIBUTING.md#prebuilding).
|
|
49
41
|
|
|
50
42
|
## Build
|
|
51
43
|
|
|
52
44
|
```bash
|
|
53
|
-
yarn build:src
|
|
45
|
+
yarn workspace @webex/plugin-teams build:src
|
|
54
46
|
```
|
|
55
47
|
|
|
56
48
|
`build:src` writes JavaScript and source maps for the two source files to `dist/` through
|
|
@@ -58,7 +50,7 @@ yarn build:src
|
|
|
58
50
|
emits no type declarations.
|
|
59
51
|
|
|
60
52
|
```bash
|
|
61
|
-
yarn build
|
|
53
|
+
yarn workspace @webex/plugin-teams build
|
|
62
54
|
```
|
|
63
55
|
|
|
64
56
|
## Run
|
|
@@ -69,7 +61,7 @@ N/A — this is a library with no start script. Importing `@webex/plugin-teams`
|
|
|
69
61
|
## Tests
|
|
70
62
|
|
|
71
63
|
```bash
|
|
72
|
-
yarn test:style
|
|
64
|
+
yarn workspace @webex/plugin-teams test:style
|
|
73
65
|
```
|
|
74
66
|
|
|
75
67
|
| Tier | Command | Test location | Framework | External dependencies |
|
|
@@ -87,7 +79,7 @@ This package has no unit tests: `package.json` defines no `test:unit` script and
|
|
|
87
79
|
`test/unit` directory. Add both together when you add the first unit case; sibling legacy packages
|
|
88
80
|
define `test:unit` as `webex-legacy-tools test --unit --runner jest`.
|
|
89
81
|
|
|
90
|
-
`yarn test:browser:broken` (manifest command `browser-test`) runs `webex-legacy-tools test
|
|
82
|
+
`yarn workspace @webex/plugin-teams test:browser:broken` (manifest command `browser-test`) runs `webex-legacy-tools test
|
|
91
83
|
--integration --runner karma` over `test/integration/spec/teams.js`, whose 9 cases (2 skipped) create a
|
|
92
84
|
test user and call the live services. On 2026-11-12 under Node 22.14 the karma bundle failed to parse
|
|
93
85
|
`isbot` (an ES module in the workspace `node_modules`), so the run reported a bundle error in Chrome
|
|
@@ -113,8 +105,8 @@ not a manifest command; run the commands above instead.
|
|
|
113
105
|
|
|
114
106
|
## First-run verification
|
|
115
107
|
|
|
116
|
-
1. Run `yarn build:src` and check that it reports `Built plugin-teams: 2 files`.
|
|
117
|
-
2. Run `yarn test:style`.
|
|
108
|
+
1. Run `yarn workspace @webex/plugin-teams build:src` and check that it reports `Built plugin-teams: 2 files`.
|
|
109
|
+
2. Run `yarn workspace @webex/plugin-teams test:style`.
|
|
118
110
|
|
|
119
111
|
Expected result: both commands exit zero. `test:style` prints no warning for `src/teams.js` or
|
|
120
112
|
`src/index.js`, only "File ignored" for `src/docs/README.md`.
|
package/docs/specs/README.md
CHANGED
|
@@ -53,7 +53,7 @@ baseline and promotion past Partial remain pending.
|
|
|
53
53
|
|
|
54
54
|
| Change affects | Load and update | Verification route |
|
|
55
55
|
| -------------- | --------------- | ------------------ |
|
|
56
|
-
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn build:src` and `test:style`, and the module spec |
|
|
56
|
+
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn workspace @webex/plugin-teams build:src` and `test:style`, and the module spec |
|
|
57
57
|
| A stable code, package, or component boundary | `src/docs/README.md` | Build and lint |
|
|
58
58
|
| A public method, request path, the team object, or the registration | The owning architecture section, `src/docs/README.md`, and the native definition in `src/teams.js`, `src/index.js`, or `package.json` | Build and lint; add a `test/unit/spec` case and a `test:unit` script for the changed path, since the package has no unit tests and the integration spec is not run |
|
|
59
59
|
|
package/package.json
CHANGED
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
25
25
|
"@webex/jest-config-legacy": "0.0.0",
|
|
26
26
|
"@webex/legacy-tools": "0.0.0",
|
|
27
|
-
"@webex/test-helper-chai": "3.13.0-next.
|
|
28
|
-
"@webex/test-helper-mocha": "3.13.0-next.
|
|
29
|
-
"@webex/test-helper-mock-webex": "3.13.0-next.
|
|
30
|
-
"@webex/test-helper-test-users": "3.13.0-next.
|
|
27
|
+
"@webex/test-helper-chai": "3.13.0-next.3",
|
|
28
|
+
"@webex/test-helper-mocha": "3.13.0-next.3",
|
|
29
|
+
"@webex/test-helper-mock-webex": "3.13.0-next.3",
|
|
30
|
+
"@webex/test-helper-test-users": "3.13.0-next.3",
|
|
31
31
|
"eslint": "^8.24.0",
|
|
32
32
|
"prettier": "^2.7.1",
|
|
33
33
|
"sinon": "^9.2.4"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@webex/internal-plugin-device": "3.13.0-next.
|
|
37
|
-
"@webex/webex-core": "3.13.0-next.
|
|
36
|
+
"@webex/internal-plugin-device": "3.13.0-next.7",
|
|
37
|
+
"@webex/webex-core": "3.13.0-next.7",
|
|
38
38
|
"lodash": "^4.17.21"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@webex/plugin-logger": "3.13.0-next.
|
|
42
|
-
"@webex/plugin-memberships": "3.13.0-next.
|
|
43
|
-
"@webex/plugin-rooms": "3.13.0-next.
|
|
41
|
+
"@webex/plugin-logger": "3.13.0-next.7",
|
|
42
|
+
"@webex/plugin-memberships": "3.13.0-next.11",
|
|
43
|
+
"@webex/plugin-rooms": "3.13.0-next.11"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "yarn build:src",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"test:browser:broken": "webex-legacy-tools test --integration --runner karma",
|
|
51
51
|
"test:style": "eslint ./src/**/*.*"
|
|
52
52
|
},
|
|
53
|
-
"version": "3.13.0-next.
|
|
53
|
+
"version": "3.13.0-next.7"
|
|
54
54
|
}
|