Files
paseo/plugin-examples/hosts/index.client.tsx
Mohamed Boudra 6ce6f4c961 Let plugins discover hosts and use host-targeted SDK clients (#4971)
* feat(plugins): expose hosts and host-targeted SDK clients

* test(plugins): verify exact cross-host observation cleanup

* fix(plugins): reacquire explicitly disposed host clients

* docs(plugins): clarify host client usage and lifecycle

* docs(plugins): use theme colors in host discovery example
2026-09-16 22:45:18 +02:00

9 lines
329 B
TypeScript

import type { PluginClientContext } from "@getpaseo/plugin/client";
import { Hosts } from "./client/hosts";
export default function contribute(client: PluginClientContext) {
client.addSurface("main", Hosts);
client.addSidebarItem({ id: "hosts", title: "Host agents", icon: "Server", surface: "main" });
return () => {};
}