mirror of https://github.com/openclaw/openclaw.git
Extensions: load extension API via dynamic path (openclaw#36835 thanks @joshavant)
This commit is contained in:
parent
8a6dcf442b
commit
c1a3d0caae
|
|
@ -26,7 +26,8 @@ async function loadRunEmbeddedPiAgent(): Promise<RunEmbeddedPiAgentFn> {
|
|||
|
||||
// Bundled install (built)
|
||||
// NOTE: there is no src/ tree in a packaged install. Prefer a stable internal entrypoint.
|
||||
const mod = await import("../../../dist/extensionAPI.js");
|
||||
const distModulePath = "../../../dist/extensionAPI.js";
|
||||
const mod = await import(distModulePath);
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
const fn = (mod as any).runEmbeddedPiAgent;
|
||||
if (typeof fn !== "function") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue