feat: add auth extension points and one ssh connect pipeline

This commit is contained in:
LukeGus committed 2026-09-23 00:44:33 -05:00
1 parent d3c209af13
commit d774df8b41
159 files changed
+43243 -7451

No files matched your search

+17
View File
@@ -24,6 +24,7 @@ import { usePluginScope } from "./scope";
import { knownPluginIds } from "./plugin-store";
import { tabsApi, useShellHosts } from "./shell-bridge";
import { invokeAction } from "@/shell/action-registry";
import { useSshAuthProviders } from "@/hooks/useSshAuthProviders";
/**
* Core permission groups, mirroring RESERVED_PERMISSION_PREFIXES in the SDK
@@ -243,6 +244,22 @@ export const pluginHostBridge: PluginHostBridge = {
useTabs: () => tabsApi,
invokeAction: (id, ...args) => invokeAction(id, ...args),
useSshAuthTypes: () => {
const { providers, loaded } = useSshAuthProviders();
return {
loaded,
types: providers
.filter((option) => option.available)
.map((option) => ({
type: option.type,
labelKey: option.editorTitleKey ?? option.labelKey,
pluginId: option.pluginId,
credentialType: option.credentialType,
supportsBackground: option.supportsBackground,
})),
};
},
};
/** Installs the bridge. Idempotent. */