feat: plugins only see their own host settings in the browser

This commit is contained in:
LukeGus committed 2026-09-29 13:38:11 -05:00
1 parent 50d43e29fb
commit fb9c168b6b
17 files changed
+488 -52

No files matched your search

@@ -11,8 +11,12 @@ import {
DialogFooter,
} from "@termix/plugin-sdk/ui";
import { Select2 } from "@termix/plugin-sdk/ui";
import { discoverProxmoxGuestsStream, importProxmoxHosts } from "./proxmox-api";
import { listHosts, type PluginHostRecord } from "@termix/plugin-sdk/frontend";
import {
discoverProxmoxGuestsStream,
importProxmoxHosts,
listHosts,
} from "./proxmox-api";
import type { PluginHostRecord } from "@termix/plugin-sdk/frontend";
import type { ProxmoxGuest } from "./types";
import { resolveProxmoxImportAuth } from "./proxmox-import-auth";
@@ -13,6 +13,10 @@ function app(): TermixApp {
return current;
}
export function listHosts(): ReturnType<TermixApp["listHosts"]> {
return app().listHosts();
}
/**
* Runs a guest discovery over the server-sent event stream and reports
* progress. Returns a function that stops listening.