🌊 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
test(bridge): register Codex opt-in regression with Vitest
Rudy Celekli68080c1523bb
diff --git a/ruflo/tests/codex-mcp-backend-3509.test.mjs b/ruflo/tests/codex-mcp-backend-3509.test.mjsindex a8bc901728..79a4a97cc2 100644--- a/ruflo/tests/codex-mcp-backend-3509.test.mjs+++ b/ruflo/tests/codex-mcp-backend-3509.test.mjs@@ -4,16 +4,23 @@ import { chmodSync, existsSync, mkdtempSync, rmSync, writeFileSync } from 'node:import { tmpdir } from 'node:os';import { join } from 'node:path';import { fileURLToPath } from 'node:url';-import test from 'node:test';+import { afterEach, test } from 'vitest';const bridges = ['../src/mcp-bridge/index.js','../src/ruvocal/mcp-bridge/index.js',];+const processes = [];+const directories = [];+afterEach(() => {+ for (const child of processes.splice(0)) child.kill();+ for (const dir of directories.splice(0)) rmSync(dir, { recursive: true, force: true });+});for (const relativePath of bridges) {- test(`${relativePath}: removed Codex MCP mode does not delay other groups`, async t => {+ test(`${relativePath}: removed Codex MCP mode does not delay other groups`, async () => {const dir = mkdtempSync(join(tmpdir(), 'ruflo-codex-mcp-'));+ directories.push(dir);const marker = join(dir, 'npx-spawned');const fakeNpx = join(dir, 'npx');writeFileSync(fakeNpx, '#!/bin/sh\nprintf launched > "$RUFLO_CODEX_SPAWN_MARKER"\nexit 1\n');@@ -33,15 +40,11 @@ for (const relativePath of bridges) {},stdio: ['ignore', 'pipe', 'pipe'],});+ processes.push(child);let stdout = '';let stderr = '';child.stdout.on('data', chunk => { stdout += chunk; });child.stderr.on('data', chunk => { stderr += chunk; });- t.after(() => {- child.kill();- rmSync(dir, { recursive: true, force: true });- });-const deadline = Date.now() + 3000;while (Date.now() < deadline && !stderr.includes('Codex CLI has no MCP server mode')) {await new Promise(resolve => setTimeout(resolve, 25));