Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

471 B
Raw Blame
/**
 * Claude Code's `~/.claude/projects/<slug>` encoding.
 *
 * #1927 fixed the Windows drive colon/backslash case, but the old
 * `[/\\:]` replacement still left `_`, `.`, spaces and non-ASCII characters
 * literal. Claude Code replaces *every* non-alphanumeric character with `-`,
 * so those paths never resolved and the Stop hook silently tracked nothing
 * (#4366).
 */
export function encodeProjectPath(cwd) {
  return String(cwd).replace(/[^a-zA-Z0-9]/g, '-');
}