@checkstack/about-frontend 0.2.14 → 0.2.16

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