@checkstack/notification-backend 1.0.1 → 1.0.3

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