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

fix(cli): alias @claude-flow/security/safe-git ahead of the bare-package vitest alias

ruv849082402794
diff --git a/v3/@claude-flow/cli/vitest.config.ts b/v3/@claude-flow/cli/vitest.config.ts
index 820c1df632..0c39e5596c 100644
--- a/v3/@claude-flow/cli/vitest.config.ts
+++ b/v3/@claude-flow/cli/vitest.config.ts
@@ -6,9 +6,19 @@ export default defineConfig({
conditions: ['node'],
// Exercise the workspace security source rather than a stale installed
// package during cross-package policy integration tests (ADR-324).
- alias: {
- '@claude-flow/security': fileURLToPath(new URL('../security/src/index.ts', import.meta.url)),
- },
+ // Subpath aliases must precede the bare package alias: Vite alias keys
+ // prefix-match, so '@claude-flow/security' alone would rewrite
+ // '@claude-flow/security/safe-git' to '.../src/index.ts/safe-git'.
+ alias: [
+ {
+ find: '@claude-flow/security/safe-git',
+ replacement: fileURLToPath(new URL('../security/src/safe-git.ts', import.meta.url)),
+ },
+ {
+ find: /^@claude-flow\/security$/,
+ replacement: fileURLToPath(new URL('../security/src/index.ts', import.meta.url)),
+ },
+ ],
},
plugins: [
{