Open-source, local-first AI agent for real work.
TypeScript agent-toolsai-agentbyokcoding-agentcross-platformdesktop-appdeveloper-toolselectronharnessknowledge-basellmwikilocal-firstmcpplugin-systemprivacy-firstskillstypescriptvettaworkflow-automation
export function joinContentPath(root: string, ...parts: string[]): string {
const separator = root.includes("\\") && !root.includes("/") ? "\\" : "/";
let result = root.replace(/[/\\]+$/, "");
for (const part of parts) {
const clean = part.replace(/^[/\\]+/, "").replace(/[/\\]+/g, separator);
result = `${result}${separator}${clean}`;
}
return result;
}