mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-07 07:58:36 +00:00
22 lines
725 B
TypeScript
22 lines
725 B
TypeScript
// Manual facade. Keep loader boundary explicit.
|
|
import type { RuntimeEnv } from "../runtime.js";
|
|
import { loadBundledPluginPublicSurfaceModuleSync } from "./facade-loader.js";
|
|
|
|
type FacadeModule = {
|
|
githubCopilotLoginCommand: (
|
|
opts: { profileId?: string; yes?: boolean },
|
|
runtime: RuntimeEnv,
|
|
) => Promise<void>;
|
|
};
|
|
|
|
function loadFacadeModule(): FacadeModule {
|
|
return loadBundledPluginPublicSurfaceModuleSync<FacadeModule>({
|
|
dirName: "github-copilot",
|
|
artifactBasename: "api.js",
|
|
});
|
|
}
|
|
export const githubCopilotLoginCommand: FacadeModule["githubCopilotLoginCommand"] = ((...args) =>
|
|
loadFacadeModule()["githubCopilotLoginCommand"](
|
|
...args,
|
|
)) as FacadeModule["githubCopilotLoginCommand"];
|