






















@@ -235,43 +235,6 @@ export function resolveRelativeBundledPluginPublicModuleId(params: {
235235return relativePath.startsWith(".") ? relativePath : `./${relativePath}`;
236236}
237237238-export function resolveRelativeExtensionPublicModuleId(params: {
239-fromModuleUrl: string;
240-dirName: string;
241-artifactBasename: string;
242-}): string {
243-const fromFilePath = fileURLToPath(params.fromModuleUrl);
244-const targetPath = resolveVitestSourceModulePath(
245-path.resolve(OPENCLAW_PACKAGE_ROOT, "extensions", params.dirName, params.artifactBasename),
246-);
247-const relativePath = path
248-.relative(path.dirname(fromFilePath), targetPath)
249-.replaceAll(path.sep, "/");
250-return relativePath.startsWith(".") ? relativePath : `./${relativePath}`;
251-}
252-253-export function resolveRelativeWorkspacePackagePublicModuleId(params: {
254-fromModuleUrl: string;
255-packageName: string;
256-artifactBasename: string;
257-}): string {
258-const fromFilePath = fileURLToPath(params.fromModuleUrl);
259-const targetPath = resolveVitestSourceModulePath(
260-path.resolve(
261-resolveWorkspacePackageDir(params.packageName),
262-normalizeBundledPluginArtifactSubpath(params.artifactBasename),
263-),
264-);
265-const relativePath = path
266-.relative(path.dirname(fromFilePath), targetPath)
267-.replaceAll(path.sep, "/");
268-const normalizedRelativePath = relativePath.startsWith(".") ? relativePath : `./${relativePath}`;
269-if (path.resolve(path.dirname(fromFilePath), normalizedRelativePath) !== targetPath) {
270-return pathToFileURL(targetPath).href;
271-}
272-return normalizedRelativePath;
273-}
274-275238export function resolveWorkspacePackagePublicModuleUrl(params: {
276239packageName: string;
277240artifactBasename: string;
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。