Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
// @vitest-environment node
import { describe, it, expect, vi } from 'vitest';
// RunsTab pulls in the API barrel transitively; stub it so importing the
// module for the pure-helper test doesn't drag real HTTP wrappers into scope.
vi.mock('../../../services/api', () => ({}));
import { runLogProcessName } from './RunsTab';
describe('runLogProcessName', () => {
it('maps cos-agent runs to the portos-cos process', () => {
expect(runLogProcessName('cos-agent')).toBe('portos-cos');
});
it('maps devtools and unknown sources to the main portos-server process', () => {
expect(runLogProcessName('devtools')).toBe('portos-server');
expect(runLogProcessName(undefined)).toBe('portos-server');
});
});