Files
paseo/plugin-examples/sidebar-views/index.client.tsx
T
Mohamed Boudra c4e5a0e739 feat(plugin): observe terminals across connected hosts
Share host-wide terminal observations across plugin surfaces and gate them on terminalCollection. Keep directory observations compatible, and carry creation time in worker v6 state so v5 terminals can drain with an unknown timestamp.
2026-11-06 09:22:19 +01:00

19 lines
940 B
TypeScript

import type { PluginClientContext } from "@getpaseo/plugin/client";
import { Workspaces } from "./client/workspaces";
import { Agents } from "./client/agents";
import { Nested } from "./client/nested";
import { Terminals } from "./client/terminals";
import { Labels } from "./client/labels";
export default function contribute(client: PluginClientContext) {
const cleanups = [
client.addSidebarView({ id: "terminals", title: "Example terminals", Component: Terminals }),
client.addSidebarView({ id: "workspaces", title: "Example workspaces", Component: Workspaces }),
client.addSidebarView({ id: "agents", title: "Example agents", Component: Agents }),
client.addSidebarView({ id: "nested", title: "Example nested agents", Component: Nested }),
client.addSidebarView({ id: "labels", title: "Example label folders", Component: Labels }),
];
return () => {
for (const cleanup of cleanups) void cleanup();
};
}