import type { UnknownPlimiPlugin } from "./plugin-types";
import { getPluginById, getAllPlugins } from "./plugin-registry";

// In V1, loading is static since we bundle the plugins.
// In the future, this file will handle lazy loading of external plugins.
export async function loadPlugin(id: string): Promise<UnknownPlimiPlugin | undefined> {
  return getPluginById(id);
}

export async function loadAllPlugins(): Promise<UnknownPlimiPlugin[]> {
  return getAllPlugins();
}
