refactor!: rebrand bterminal to agor (agents-orchestrator)

Rename Cargo crates (bterminal-core→agor-core, bterminal-relay→agor-relay),
env vars (BTERMINAL_*→AGOR_*), config paths (~/.config/agor), CSS custom
properties, plugin API object, package names, and all documentation.

BREAKING CHANGE: config/data paths changed from bterminal to agor.
This commit is contained in:
Hibryda 2026-03-17 01:12:25 +01:00
parent ef3548a569
commit a63e6711ac
52 changed files with 3889 additions and 169 deletions

View file

@ -9,9 +9,9 @@ import { tmpdir } from 'node:os';
export interface TestFixture {
/** Root temp directory for this test run */
rootDir: string;
/** BTERMINAL_TEST_DATA_DIR — isolated data dir */
/** AGOR_TEST_DATA_DIR — isolated data dir */
dataDir: string;
/** BTERMINAL_TEST_CONFIG_DIR — isolated config dir */
/** AGOR_TEST_CONFIG_DIR — isolated config dir */
configDir: string;
/** Path to a minimal git repo for agent testing */
projectDir: string;
@ -25,7 +25,7 @@ export interface TestFixture {
* - Temp config dir with a minimal groups.json
* - A simple git repo with one file for agent testing
*/
export function createTestFixture(name = 'bterminal-e2e'): TestFixture {
export function createTestFixture(name = 'agor-e2e'): TestFixture {
const rootDir = join(tmpdir(), `${name}-${Date.now()}`);
const dataDir = join(rootDir, 'data');
const configDir = join(rootDir, 'config');
@ -38,9 +38,9 @@ export function createTestFixture(name = 'bterminal-e2e'): TestFixture {
// Create a minimal git repo for agent testing
execSync('git init', { cwd: projectDir, stdio: 'ignore' });
execSync('git config user.email "test@bterminal.dev"', { cwd: projectDir, stdio: 'ignore' });
execSync('git config user.name "BTerminal Test"', { cwd: projectDir, stdio: 'ignore' });
writeFileSync(join(projectDir, 'README.md'), '# Test Project\n\nA simple test project for BTerminal E2E tests.\n');
execSync('git config user.email "test@agor.dev"', { cwd: projectDir, stdio: 'ignore' });
execSync('git config user.name "Agor Test"', { cwd: projectDir, stdio: 'ignore' });
writeFileSync(join(projectDir, 'README.md'), '# Test Project\n\nA simple test project for Agor E2E tests.\n');
writeFileSync(join(projectDir, 'hello.py'), 'def greet(name: str) -> str:\n return f"Hello, {name}!"\n');
execSync('git add -A && git commit -m "initial commit"', { cwd: projectDir, stdio: 'ignore' });
@ -75,9 +75,9 @@ export function createTestFixture(name = 'bterminal-e2e'): TestFixture {
);
const env: Record<string, string> = {
BTERMINAL_TEST: '1',
BTERMINAL_TEST_DATA_DIR: dataDir,
BTERMINAL_TEST_CONFIG_DIR: configDir,
AGOR_TEST: '1',
AGOR_TEST_DATA_DIR: dataDir,
AGOR_TEST_CONFIG_DIR: configDir,
};
return { rootDir, dataDir, configDir, projectDir, env };
@ -96,15 +96,15 @@ export function destroyTestFixture(fixture: TestFixture): void {
* Create a groups.json with multiple projects for multi-project testing.
*/
export function createMultiProjectFixture(projectCount = 3): TestFixture {
const fixture = createTestFixture('bterminal-multi');
const fixture = createTestFixture('agor-multi');
const projects = [];
for (let i = 0; i < projectCount; i++) {
const projDir = join(fixture.rootDir, `project-${i}`);
mkdirSync(projDir, { recursive: true });
execSync('git init', { cwd: projDir, stdio: 'ignore' });
execSync('git config user.email "test@bterminal.dev"', { cwd: projDir, stdio: 'ignore' });
execSync('git config user.name "BTerminal Test"', { cwd: projDir, stdio: 'ignore' });
execSync('git config user.email "test@agor.dev"', { cwd: projDir, stdio: 'ignore' });
execSync('git config user.name "Agor Test"', { cwd: projDir, stdio: 'ignore' });
writeFileSync(join(projDir, 'README.md'), `# Project ${i}\n`);
execSync('git add -A && git commit -m "init"', { cwd: projDir, stdio: 'ignore' });