@webex/plugin-webhooks 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 +11 -15
- package/dist/webhooks.js +1 -1
- package/docs/architecture.md +3 -3
- package/docs/getting-started.md +9 -20
- package/docs/specs/README.md +1 -1
- package/package.json +9 -9
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",
|
|
16
|
-
"deploy": "yarn deploy:npm"
|
|
10
|
+
"compile": "yarn workspace @webex/plugin-webhooks build",
|
|
11
|
+
"build": "yarn workspace @webex/plugin-webhooks build:src",
|
|
12
|
+
"lint": "yarn workspace @webex/plugin-webhooks test:style",
|
|
13
|
+
"browser-test": "yarn workspace @webex/plugin-webhooks test:browser",
|
|
14
|
+
"deploy": "yarn workspace @webex/plugin-webhooks deploy:npm"
|
|
17
15
|
},
|
|
18
16
|
"public_interfaces": [
|
|
19
17
|
{
|
|
@@ -68,10 +66,10 @@
|
|
|
68
66
|
"dist"
|
|
69
67
|
],
|
|
70
68
|
"refresh_with": [
|
|
71
|
-
"yarn build:src"
|
|
69
|
+
"yarn workspace @webex/plugin-webhooks build:src"
|
|
72
70
|
],
|
|
73
71
|
"validate_with": [
|
|
74
|
-
"yarn test:style"
|
|
72
|
+
"yarn workspace @webex/plugin-webhooks test:style"
|
|
75
73
|
]
|
|
76
74
|
},
|
|
77
75
|
{
|
|
@@ -92,7 +90,7 @@
|
|
|
92
90
|
{
|
|
93
91
|
"path": "dist",
|
|
94
92
|
"generated_from": "src",
|
|
95
|
-
"refresh_with": "yarn build:src"
|
|
93
|
+
"refresh_with": "yarn workspace @webex/plugin-webhooks build:src"
|
|
96
94
|
},
|
|
97
95
|
{
|
|
98
96
|
"path": "../../../.sdd/templates/repo-standards/template-map.json",
|
|
@@ -106,8 +104,8 @@
|
|
|
106
104
|
"src/**"
|
|
107
105
|
],
|
|
108
106
|
"minimum": [
|
|
109
|
-
"yarn build:src",
|
|
110
|
-
"yarn test:style"
|
|
107
|
+
"yarn workspace @webex/plugin-webhooks build:src",
|
|
108
|
+
"yarn workspace @webex/plugin-webhooks test:style"
|
|
111
109
|
],
|
|
112
110
|
"recommended": [
|
|
113
111
|
"add a test/unit/spec case and a test:unit script for the changed behavior; the package has no unit tests"
|
|
@@ -118,8 +116,8 @@
|
|
|
118
116
|
"src/webhooks.js"
|
|
119
117
|
],
|
|
120
118
|
"minimum": [
|
|
121
|
-
"yarn build:src",
|
|
122
|
-
"yarn test:style"
|
|
119
|
+
"yarn workspace @webex/plugin-webhooks build:src",
|
|
120
|
+
"yarn workspace @webex/plugin-webhooks test:style"
|
|
123
121
|
],
|
|
124
122
|
"recommended": [
|
|
125
123
|
"pin the five request options and the resolved values, including get resolving body.items, list resolving a Page, and remove resolving undefined on a 204, with unit cases before changing them"
|
|
@@ -130,8 +128,8 @@
|
|
|
130
128
|
"src/index.js"
|
|
131
129
|
],
|
|
132
130
|
"minimum": [
|
|
133
|
-
"yarn build:src",
|
|
134
|
-
"yarn test:style"
|
|
131
|
+
"yarn workspace @webex/plugin-webhooks build:src",
|
|
132
|
+
"yarn workspace @webex/plugin-webhooks test:style"
|
|
135
133
|
],
|
|
136
134
|
"recommended": [
|
|
137
135
|
"check the bundles that register the plugin (webex, webex-node) when the registered name changes"
|
|
@@ -150,10 +148,10 @@
|
|
|
150
148
|
"callers that test remove for an undefined result"
|
|
151
149
|
],
|
|
152
150
|
"refresh_with": [
|
|
153
|
-
"yarn build:src"
|
|
151
|
+
"yarn workspace @webex/plugin-webhooks build:src"
|
|
154
152
|
],
|
|
155
153
|
"validate_with": [
|
|
156
|
-
"yarn test:style"
|
|
154
|
+
"yarn workspace @webex/plugin-webhooks test:style"
|
|
157
155
|
],
|
|
158
156
|
"avoid_direct_edits": [
|
|
159
157
|
"dist"
|
|
@@ -168,10 +166,10 @@
|
|
|
168
166
|
"the registered plugin name"
|
|
169
167
|
],
|
|
170
168
|
"refresh_with": [
|
|
171
|
-
"yarn build:src"
|
|
169
|
+
"yarn workspace @webex/plugin-webhooks build:src"
|
|
172
170
|
],
|
|
173
171
|
"validate_with": [
|
|
174
|
-
"yarn test:style"
|
|
172
|
+
"yarn workspace @webex/plugin-webhooks test:style"
|
|
175
173
|
],
|
|
176
174
|
"avoid_direct_edits": [
|
|
177
175
|
"dist"
|
|
@@ -287,7 +285,7 @@
|
|
|
287
285
|
"dist"
|
|
288
286
|
],
|
|
289
287
|
"generated_from": "src",
|
|
290
|
-
"refresh_with": "yarn build:src",
|
|
288
|
+
"refresh_with": "yarn workspace @webex/plugin-webhooks build:src",
|
|
291
289
|
"notes": "JavaScript and source maps from webex-legacy-tools; no type declarations. Do not edit by hand."
|
|
292
290
|
},
|
|
293
291
|
{
|
|
@@ -303,13 +301,13 @@
|
|
|
303
301
|
"validation_entrypoints": [
|
|
304
302
|
{
|
|
305
303
|
"name": "compile",
|
|
306
|
-
"command": "yarn build",
|
|
304
|
+
"command": "yarn workspace @webex/plugin-webhooks build",
|
|
307
305
|
"scope": "src",
|
|
308
306
|
"notes": "Runs build:src."
|
|
309
307
|
},
|
|
310
308
|
{
|
|
311
309
|
"name": "lint",
|
|
312
|
-
"command": "yarn test:style",
|
|
310
|
+
"command": "yarn workspace @webex/plugin-webhooks test:style",
|
|
313
311
|
"scope": "src",
|
|
314
312
|
"notes": "eslint via the local .eslintrc.js; docs/** and *.md are ignored."
|
|
315
313
|
}
|
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-webhooks build",
|
|
25
20
|
"source_file": "package.json",
|
|
26
|
-
"role": "compile"
|
|
27
|
-
"verified_at": "2026-11-13T02:22:00Z"
|
|
21
|
+
"role": "compile"
|
|
28
22
|
},
|
|
29
23
|
"build": {
|
|
30
|
-
"command": "yarn build:src",
|
|
24
|
+
"command": "yarn workspace @webex/plugin-webhooks build:src",
|
|
31
25
|
"source_file": "package.json",
|
|
32
|
-
"role": "package"
|
|
33
|
-
"verified_at": "2026-11-13T02:21:59Z"
|
|
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/webhooks.js, is wrapped in describe.skip and runs only under test:browser, 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-webhooks test:style",
|
|
38
31
|
"source_file": "package.json",
|
|
39
|
-
"role": "lint"
|
|
40
|
-
"verified_at": "2026-11-13T02:22:02Z"
|
|
32
|
+
"role": "lint"
|
|
41
33
|
},
|
|
42
34
|
"browser-test": {
|
|
43
|
-
"command": "yarn test:browser",
|
|
35
|
+
"command": "yarn workspace @webex/plugin-webhooks test:browser",
|
|
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-webhooks deploy:npm",
|
|
49
41
|
"source_file": "package.json",
|
|
50
42
|
"role": "deploy"
|
|
51
43
|
}
|
package/AGENTS.md
CHANGED
|
@@ -39,25 +39,24 @@ entry. It serves no HTTP and receives no webhook deliveries, so no OpenAPI appli
|
|
|
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 `yarn` and
|
|
43
|
-
`yarn
|
|
44
|
-
|
|
45
|
-
root, `yarn workspace @webex/plugin-webhooks <script>` runs the same script.
|
|
42
|
+
Use only documented commands. Do not invent alternatives when a command is missing. Run `yarn` and the package scripts below from the workspace root, as
|
|
43
|
+
`yarn workspace @webex/plugin-webhooks <script>`. Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling
|
|
44
|
+
`dist/`) is owned by the workspace root; see [Prebuilding](../../../CONTRIBUTING.md#prebuilding).
|
|
46
45
|
|
|
47
46
|
| Task | Command |
|
|
48
47
|
| ---------------------- | ------- |
|
|
49
|
-
| Install dependencies | `yarn` (workspace root; the deploy workflow runs the same command)
|
|
48
|
+
| Install dependencies | `yarn` (workspace root; the deploy workflow runs the same command) |
|
|
50
49
|
| Start dev environment | N/A — library package with no start script in `package.json` |
|
|
51
50
|
| 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/`) |
|
|
51
|
+
| Run linters | `yarn workspace @webex/plugin-webhooks test:style` |
|
|
52
|
+
| Build/release artifact | `yarn workspace @webex/plugin-webhooks build:src` (JavaScript and source maps to `dist/`) |
|
|
54
53
|
| Format code | N/A — no format script; `prettier` is a devDependency used through eslint |
|
|
55
54
|
|
|
56
|
-
`yarn build` runs `
|
|
55
|
+
`yarn workspace @webex/plugin-webhooks build` runs the `build:src` script and produces the same output; the package emits no type
|
|
57
56
|
declarations.
|
|
58
57
|
|
|
59
58
|
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` runs `test/integration/spec` through karma but verifies
|
|
59
|
+
define, and exits 1. `yarn workspace @webex/plugin-webhooks test:browser` runs `test/integration/spec` through karma but verifies
|
|
61
60
|
nothing today; see [Getting started](docs/getting-started.md#tests) for its state.
|
|
62
61
|
|
|
63
62
|
If a required command is unknown, stop and ask for the exact command.
|
|
@@ -117,13 +116,10 @@ Definition of done:
|
|
|
117
116
|
|
|
118
117
|
## 4. Testing Workflow
|
|
119
118
|
|
|
120
|
-
Run checks in this order, from the
|
|
119
|
+
Run checks in this order, from the workspace root:
|
|
121
120
|
|
|
122
|
-
1. `yarn build:src`
|
|
123
|
-
2. `yarn test:style`
|
|
124
|
-
|
|
125
|
-
Run `yarn prebuild:modules` once on a fresh checkout so `webex-legacy-tools` and the sibling packages'
|
|
126
|
-
`dist/` exist.
|
|
121
|
+
1. `yarn workspace @webex/plugin-webhooks build:src`
|
|
122
|
+
2. `yarn workspace @webex/plugin-webhooks test:style`
|
|
127
123
|
|
|
128
124
|
Testing rules:
|
|
129
125
|
|
package/dist/webhooks.js
CHANGED
package/docs/architecture.md
CHANGED
|
@@ -176,9 +176,9 @@ flowchart LR
|
|
|
176
176
|
|
|
177
177
|
| Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
|
|
178
178
|
| ------------------- | ----- | ------ | --------------------- | ---------------------- |
|
|
179
|
-
| `yarn build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
|
|
180
|
-
| `yarn build` | Package scripts | `src` | Runs `build:src` | Same output |
|
|
181
|
-
| `yarn test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
|
|
179
|
+
| `yarn workspace @webex/plugin-webhooks build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
|
|
180
|
+
| `yarn workspace @webex/plugin-webhooks build` | Package scripts | `src` | Runs `build:src` | Same output |
|
|
181
|
+
| `yarn workspace @webex/plugin-webhooks test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
|
|
182
182
|
|
|
183
183
|
## Cross-repository topology
|
|
184
184
|
|
package/docs/getting-started.md
CHANGED
|
@@ -16,9 +16,7 @@ validation_status: pass
|
|
|
16
16
|
# Getting started
|
|
17
17
|
|
|
18
18
|
Onboarding for **@webex/plugin-webhooks**, a package inside the `webex-js-sdk` Yarn workspace.
|
|
19
|
-
Run `yarn` and
|
|
20
|
-
package directory, `packages/@webex/plugin-webhooks`, where `package.json` defines them.
|
|
21
|
-
From the workspace root, `yarn workspace @webex/plugin-webhooks <script>` runs the same script.
|
|
19
|
+
Run `yarn` and the package scripts from the workspace root, as `yarn workspace @webex/plugin-webhooks <script>`.
|
|
22
20
|
|
|
23
21
|
## Prerequisites
|
|
24
22
|
|
|
@@ -36,29 +34,20 @@ yarn
|
|
|
36
34
|
|
|
37
35
|
The workspace `deploy.yml` workflow installs with the same command.
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
`@webex/legacy-tools`, whose `webex-legacy-tools` binary runs this package's build, or the sibling
|
|
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").
|
|
37
|
+
Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the workspace root; see [Prebuilding](../../../../CONTRIBUTING.md#prebuilding).
|
|
49
38
|
|
|
50
39
|
## Build
|
|
51
40
|
|
|
52
41
|
```bash
|
|
53
|
-
yarn build:src
|
|
42
|
+
yarn workspace @webex/plugin-webhooks build:src
|
|
54
43
|
```
|
|
55
44
|
|
|
56
45
|
`build:src` writes JavaScript and source maps for the two source files to `dist/` through
|
|
57
|
-
`webex-legacy-tools`. `dist/` is ignored by Git. The `build` script runs `
|
|
46
|
+
`webex-legacy-tools`. `dist/` is ignored by Git. The `build` script runs `build:src`; the package
|
|
58
47
|
emits no type declarations.
|
|
59
48
|
|
|
60
49
|
```bash
|
|
61
|
-
yarn build
|
|
50
|
+
yarn workspace @webex/plugin-webhooks build
|
|
62
51
|
```
|
|
63
52
|
|
|
64
53
|
## Run
|
|
@@ -70,7 +59,7 @@ application's own at the webhook's `targetUrl`; this package provides none.
|
|
|
70
59
|
## Tests
|
|
71
60
|
|
|
72
61
|
```bash
|
|
73
|
-
yarn test:style
|
|
62
|
+
yarn workspace @webex/plugin-webhooks test:style
|
|
74
63
|
```
|
|
75
64
|
|
|
76
65
|
| Tier | Command | Test location | Framework | External dependencies |
|
|
@@ -88,7 +77,7 @@ This package has no unit tests: `package.json` defines no `test:unit` script and
|
|
|
88
77
|
`test/unit` directory. Add both together when you add the first unit case; sibling legacy packages
|
|
89
78
|
define `test:unit` as `webex-legacy-tools test --unit --runner jest`.
|
|
90
79
|
|
|
91
|
-
`yarn test:browser` (manifest command `browser-test`) runs `webex-legacy-tools test --integration
|
|
80
|
+
`yarn workspace @webex/plugin-webhooks test:browser` (manifest command `browser-test`) runs `webex-legacy-tools test --integration
|
|
92
81
|
--runner karma` over `test/integration/spec/webhooks.js`, whose 7 cases create a test user, a room,
|
|
93
82
|
and webhooks against the live services. The whole suite is wrapped in `describe.skip`, so it would run
|
|
94
83
|
no case even if it bundled. On 2026-11-13 under Node 22.14 the karma bundle failed to parse `isbot`
|
|
@@ -115,8 +104,8 @@ command; run the commands above instead.
|
|
|
115
104
|
|
|
116
105
|
## First-run verification
|
|
117
106
|
|
|
118
|
-
1. Run `yarn build:src` and check that it reports `Built plugin-webhooks: 2 files`.
|
|
119
|
-
2. Run `yarn test:style`.
|
|
107
|
+
1. Run `yarn workspace @webex/plugin-webhooks build:src` and check that it reports `Built plugin-webhooks: 2 files`.
|
|
108
|
+
2. Run `yarn workspace @webex/plugin-webhooks test:style`.
|
|
120
109
|
|
|
121
110
|
Expected result: both commands exit zero. `test:style` prints no warning for `src/webhooks.js` or
|
|
122
111
|
`src/index.js`, only "File ignored" for `src/docs/README.md`.
|
package/docs/specs/README.md
CHANGED
|
@@ -52,7 +52,7 @@ characterization baseline and promotion past Partial remain pending.
|
|
|
52
52
|
|
|
53
53
|
| Change affects | Load and update | Verification route |
|
|
54
54
|
| -------------- | --------------- | ------------------ |
|
|
55
|
-
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn build:src` and `test:style`, and the module spec |
|
|
55
|
+
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn workspace @webex/plugin-webhooks build:src` and `test:style`, and the module spec |
|
|
56
56
|
| A stable code, package, or component boundary | `src/docs/README.md` | Build and lint |
|
|
57
57
|
| A public method, request path, the webhook object, the 204 handling of `remove`, or the registration | The owning architecture section, `src/docs/README.md`, and the native definition in `src/webhooks.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 skipped |
|
|
58
58
|
|
package/package.json
CHANGED
|
@@ -24,21 +24,21 @@
|
|
|
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
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@webex/plugin-logger": "3.13.0-next.
|
|
41
|
-
"@webex/plugin-rooms": "3.13.0-next.
|
|
40
|
+
"@webex/plugin-logger": "3.13.0-next.7",
|
|
41
|
+
"@webex/plugin-rooms": "3.13.0-next.11"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "yarn build:src",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"test:browser": "webex-legacy-tools test --integration --runner karma",
|
|
49
49
|
"test:style": "eslint ./src/**/*.*"
|
|
50
50
|
},
|
|
51
|
-
"version": "3.13.0-next.
|
|
51
|
+
"version": "3.13.0-next.7"
|
|
52
52
|
}
|