c53f699714
- go plugin backends ship as release tarballs (per-platform binaries, checksums) that kandev installs from url/upload or filesystem sideload+sync, then spawns and supervises via hashicorp/go-plugin (unix socket / loopback tcp+automtls) - strict typed grpc contract (kandev.plugin.v1): DeliverEvent/InvokeTool/HandleWebhook plus a capability-gated host service (state, secrets, emit); author sdk in pkg/pluginsdk; packaging cli in cmd/plugin-pack - native frontend bundles: window.registerKandevPlugin + registry/host loader with dynamic routes, nav items, slots and ws handlers; plugins settings page with install dialog, sync button and enable/disable/uninstall - gated behind the plugins feature flag (prod off, dev/e2e on); covered by unit and integration tests plus playwright e2e against a real packaged fixture plugin Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
18 lines
711 B
Go
18 lines
711 B
Go
// Command plugin-fixture is an SDK-based kandev plugin backend used by Go
|
|
// integration tests and Playwright e2e tests: it proves the gRPC plugin
|
|
// contract (docs/plans/plugins/GRPC-CONTRACT.md) end to end without
|
|
// depending on internal/plugins, since it only imports the public
|
|
// pkg/pluginsdk surface — exactly what a third-party plugin author would.
|
|
//
|
|
// Its companion package directory, fixture-package/, holds the manifest and
|
|
// UI bundle a test packages this binary with (see
|
|
// docs/plans/plugins/GRPC-CONTRACT.md §6 and `make e2e-plugin-package` in
|
|
// apps/backend/Makefile).
|
|
package main
|
|
|
|
import "github.com/kandev/kandev/pkg/pluginsdk"
|
|
|
|
func main() {
|
|
pluginsdk.Serve(newFixturePlugin())
|
|
}
|