@checkstack/signal-frontend 0.1.0 → 0.1.2

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