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

test(cli): isolate provider selection from gateway environment

Rudy Celeklie0af029533a8
diff --git a/v3/@claude-flow/cli/__tests__/agent-provider-selection.test.ts b/v3/@claude-flow/cli/__tests__/agent-provider-selection.test.ts
index b4e1f78d12..b2fadf0cb0 100644
--- a/v3/@claude-flow/cli/__tests__/agent-provider-selection.test.ts
+++ b/v3/@claude-flow/cli/__tests__/agent-provider-selection.test.ts
@@ -13,7 +13,7 @@ describe('explicit execution provider boundaries', () => {
let fetchMock: ReturnType<typeof vi.fn>;
beforeEach(() => {
dir = mkdtempSync(join(tmpdir(), 'ruflo-provider-selection-'));
- for (const key of ['ANTHROPIC_API_KEY', 'OPENROUTER_API_KEY', 'OLLAMA_API_KEY', 'RUFLO_PROVIDER', 'OLLAMA_BASE_URL', 'OPENROUTER_BASE_URL']) vi.stubEnv(key, '');
+ for (const key of ['ANTHROPIC_API_KEY', 'ANTHROPIC_AUTH_TOKEN', 'ANTHROPIC_BASE_URL', 'OPENROUTER_API_KEY', 'OLLAMA_API_KEY', 'RUFLO_PROVIDER', 'OLLAMA_BASE_URL', 'OPENROUTER_BASE_URL']) vi.stubEnv(key, '');
vi.stubEnv('CLAUDE_FLOW_CWD', dir);
fetchMock = vi.fn().mockResolvedValue({ ok: true, json: async () => ({
id: 'response', model: 'test-model', content: [{type: 'text', text: 'done'}],