refactor: trim unused extension helpers

This commit is contained in:
Peter Steinberger
2026-05-01 09:50:38 +01:00
parent ef186a06d9
commit c9828635a8
6 changed files with 1 additions and 87 deletions

View File

@@ -2,15 +2,6 @@ import fs from "node:fs/promises";
import path from "node:path";
import { lowercasePreservingWhitespace } from "openclaw/plugin-sdk/text-runtime";
export async function pathExists(filePath: string): Promise<boolean> {
try {
await fs.access(filePath);
return true;
} catch {
return false;
}
}
export async function resolveArtifactKey(absolutePath: string): Promise<string> {
const canonicalPath = await fs.realpath(absolutePath).catch(() => path.resolve(absolutePath));
return process.platform === "win32"