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

586 B
Raw Blame
import { describe, expect, it } from 'vitest';
import { browserCommand } from '../src/oauth/browser.js';

describe('OAuth browser launcher', () => {
  it('preserves the complete OAuth query string on Windows without cmd.exe', () => {
    const url = 'https://auth.cognitum.one/oauth/authorize?response_type=code&client_id=meta-proxy&state=test';
    const launch = browserCommand(url, 'win32');

    expect(launch.cmd).toBe('rundll32.exe');
    expect(launch.args).toEqual(['url.dll,FileProtocolHandler', url]);
    expect(launch.args[1]).toContain('&client_id=meta-proxy&');
  });
});