openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
14 lines (13 loc) • 539 B
JavaScript
import { r as pluginCacheExistsSync } from "./plugin-cache-files-DLPF_Tw2.js";
import path from "node:path";
//#region src/plugins/root-artifact-path.ts
/** Resolves artifact paths in the caller's layout and filename preference order. */
function resolvePluginRootArtifactPath(rootDir, artifactPaths) {
for (const artifactPath of artifactPaths) {
const candidate = path.join(rootDir, artifactPath);
if (pluginCacheExistsSync(candidate)) return candidate;
}
return null;
}
//#endregion
export { resolvePluginRootArtifactPath as t };