@checkstack/integration-webhook-backend 0.0.28 → 0.0.30

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/CHANGELOG.md CHANGED
@@ -1,5 +1,121 @@
1
1
  # @checkstack/integration-webhook-backend
2
2
 
3
+ ## 0.0.30
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [42abfff]
8
+ - @checkstack/common@0.9.0
9
+ - @checkstack/backend-api@0.15.1
10
+ - @checkstack/integration-backend@0.1.25
11
+ - @checkstack/integration-common@0.3.2
12
+
13
+ ## 0.0.29
14
+
15
+ ### Patch Changes
16
+
17
+ - 50e5f5f: Runtime plugin system: install + uninstall plugins from npm, GitHub releases
18
+ (including private GitHub Enterprise instances), or tarball uploads at
19
+ runtime, with multi-package bundles, dependency-derived compatibility checks,
20
+ multi-instance coordination via a Postgres artifact store, and
21
+ single-coordinator destructive cleanup.
22
+
23
+ Highlights:
24
+
25
+ - New `PluginSource` discriminated union and `PluginInstaller` /
26
+ `PluginInstallerRegistry` interfaces in `@checkstack/backend-api`. The
27
+ GitHub variant accepts an optional `apiBaseUrl` so deployments backed by
28
+ GitHub Enterprise can install from `https://ghe.example.com/api/v3`
29
+ instead of `api.github.com`.
30
+ - New `installPackageMetadataSchema` (Zod) in `@checkstack/common` validates
31
+ every plugin's `package.json` at install time. Required fields: `name`,
32
+ `version`, `description`, `author`, `license`, `checkstack.type`,
33
+ `checkstack.pluginId`. Optional: `checkstack.bundle`,
34
+ `checkstack.usageInstructions`, `checkstack.allowInstallScripts`.
35
+ - New `pluginManagerContract` in `@checkstack/pluginmanager-common` with
36
+ `list`, `previewInstall`, `install`, `previewUninstall`, `uninstall`, and
37
+ `events` procedures.
38
+ - New `@checkstack/pluginmanager-frontend` admin UI: installed-plugins list
39
+ with per-row uninstall (typed-confirmation modal, schema/configs/cascade
40
+ toggles), install page with NPM / Tarball Upload / GitHub Release tabs
41
+ (Catalog tab disabled — coming soon), and an events page surfacing the
42
+ install/uninstall audit log.
43
+ - New `bunx @checkstack/scripts plugin-pack` CLI for plugin authors —
44
+ per-package mode produces an npm-shaped tarball; `--bundle` mode produces
45
+ an outer tarball containing every sibling declared in
46
+ `package.json#checkstack.bundle`. Published to npm so external authors
47
+ can `bunx` it directly without a workspace checkout.
48
+ - Compatibility derived from `package.json#dependencies` ranges
49
+ (`semver.satisfies` against the platform's loaded `@checkstack/*`
50
+ versions) — no separate `compatibility` field.
51
+ - Multi-instance: originator persists artifacts + `plugins` rows + broadcasts
52
+ install/uninstall; receiving instances do in-process register/unregister
53
+ only. Destructive ops (drop schema, delete plugin_configs, delete
54
+ artifacts, delete `plugins` rows) run exactly once on the originator.
55
+ - Fresh-instance bootstrap: `loadPlugins()` hydrates any
56
+ `is_uninstallable=true` plugin missing from `node_modules` from the
57
+ artifact store before normal Phase 1 register.
58
+ - New schema: `plugin_artifacts` (tarball storage), `plugin_install_events`
59
+ (audit/error log). `plugins` extended with `version`, `metadata`,
60
+ `source`, `bundle_id`, `is_primary`. Local plugin sync now writes
61
+ `version` from each plugin's `package.json` so the admin UI shows real
62
+ versions instead of `—`.
63
+ - Tarball-upload endpoint (`POST /api/pluginmanager/upload-tarball`) for
64
+ the install UI; access-gated by `pluginmanager.plugin.manage`.
65
+ - Plugin Manager menu link added to the user menu (main grid, alongside
66
+ Profile / Notification Settings / etc.).
67
+
68
+ Cross-cutting changes:
69
+
70
+ - Backend request/response logging now flows through `rootLogger` (winston)
71
+ instead of `hono/logger`. 5xx responses include the response body inline
72
+ so swallowed early-return errors are visible in the log.
73
+ - The `/api/:pluginId/*` dispatcher now logs which core service is missing
74
+ or which `pluginId` had no metadata when it 500s.
75
+ - New `registerCorePluginMetadata` on `PluginManager` for core routers
76
+ (like the plugin manager itself) that need their metadata visible to the
77
+ RPC dispatcher without going through the full plugin lifecycle.
78
+ - ESLint: `unicorn/no-null` is now disabled globally. Drizzle distinguishes
79
+ between `null` (writes a real SQL NULL) and `undefined` (skip the column
80
+ on insert), so treating them as interchangeable produced latent bugs at
81
+ the persistence boundary. The bulk of the patch-bumped packages above
82
+ reflect lint-fix touches that landed when this rule was relaxed.
83
+ - Workspace-wide license normalization to `Elastic-2.0` (matches
84
+ `LICENSE.md`). Every `package.json` in the workspace now declares the
85
+ same SPDX identifier; the patch bumps capture this.
86
+
87
+ Plugin packages (every `plugins/*`): added a `pack` npm script
88
+ (`bunx @checkstack/scripts plugin-pack`), mirrored each plugin's
89
+ `pluginId` from `plugin-metadata.ts` into `package.json#checkstack.pluginId`
90
+ so install-time validation passes, stubbed any missing required metadata
91
+ fields (`description`, `author`, `license`), and added
92
+ `checkstack.bundle` to multi-package plugin primaries (telegram, rcon, ssh,
93
+ jira, queue-bullmq, queue-memory, cache-memory).
94
+
95
+ Breaking changes:
96
+
97
+ - The legacy single-method `PluginInstaller` interface (`install(packageName)`)
98
+ is removed. Callers must use `coreServices.pluginInstallerRegistry`.
99
+ - The old `pluginAdminContract` and `createPluginAdminRouter` are removed.
100
+ Replaced by `pluginManagerContract` in `@checkstack/pluginmanager-common`
101
+ and `createPluginManagerRouter` in `core/backend`.
102
+ - `@checkstack/test-utils-backend` no longer exports
103
+ `createMockPluginInstaller` / `MockPluginInstaller` (the legacy interface
104
+ it shimmed is gone).
105
+
106
+ Note: bumps are limited to `minor` (for packages with new public API
107
+ surface) and `patch` (for downstream consumers, license normalization,
108
+ and lint fixes). No `major` bumps despite the `PluginInstaller` removal —
109
+ the legacy interface had no third-party consumers in the wild before this
110
+ runtime plugin system landed, and the contract surface is the same shape
111
+ modulo the rename.
112
+
113
+ - Updated dependencies [50e5f5f]
114
+ - @checkstack/backend-api@0.15.0
115
+ - @checkstack/common@0.8.0
116
+ - @checkstack/integration-common@0.3.1
117
+ - @checkstack/integration-backend@0.1.24
118
+
3
119
  ## 0.0.28
4
120
 
5
121
  ### Patch Changes
package/package.json CHANGED
@@ -1,27 +1,34 @@
1
1
  {
2
2
  "name": "@checkstack/integration-webhook-backend",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "checkstack": {
7
- "type": "backend"
7
+ "type": "backend",
8
+ "pluginId": "integration-webhook"
8
9
  },
9
10
  "scripts": {
10
11
  "typecheck": "tsgo -b",
11
12
  "lint": "bun run lint:code",
12
- "lint:code": "eslint . --max-warnings 0"
13
+ "lint:code": "eslint . --max-warnings 0",
14
+ "pack": "bunx @checkstack/scripts plugin-pack"
13
15
  },
14
16
  "dependencies": {
15
- "@checkstack/backend-api": "0.14.0",
16
- "@checkstack/integration-backend": "0.1.22",
17
- "@checkstack/integration-common": "0.3.0",
18
- "@checkstack/common": "0.7.0",
17
+ "@checkstack/backend-api": "0.15.0",
18
+ "@checkstack/integration-backend": "0.1.24",
19
+ "@checkstack/integration-common": "0.3.1",
20
+ "@checkstack/common": "0.8.0",
19
21
  "zod": "^4.2.1"
20
22
  },
21
23
  "devDependencies": {
22
24
  "@types/bun": "^1.0.0",
23
25
  "typescript": "^5.0.0",
24
- "@checkstack/tsconfig": "0.0.5",
25
- "@checkstack/scripts": "0.1.2"
26
- }
26
+ "@checkstack/tsconfig": "0.0.7",
27
+ "@checkstack/scripts": "0.3.0"
28
+ },
29
+ "description": "Checkstack integration-webhook-backend plugin",
30
+ "author": {
31
+ "name": "Checkstack contributors"
32
+ },
33
+ "license": "Elastic-2.0"
27
34
  }
package/src/provider.ts CHANGED
@@ -161,7 +161,7 @@ Configure your server to:
161
161
  severity: "warning",
162
162
  },
163
163
  },
164
- // eslint-disable-next-line unicorn/no-null
164
+
165
165
  null,
166
166
  2,
167
167
  ),