inital commit

This commit is contained in:
KingKDot
2026-03-05 00:04:26 -06:00
commit f8515a2883
269 changed files with 47081 additions and 0 deletions
@@ -0,0 +1,9 @@
import path from "path";
export function sanitizePluginId(name: string): string {
const cleaned = path.basename(name).replace(/[^A-Za-z0-9._-]/g, "");
if (!cleaned) {
throw new Error("Invalid plugin id");
}
return cleaned;
}