π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { describe, expect, it } from 'vitest';
import { defaultChannelTitle } from './channelTitle';
const format = {
more: (names: string, rest: number, total: number) => `${names} +${rest}/${total}`,
separator: 'γ',
};
describe('defaultChannelTitle', () => {
it('lists up to three members in selection order', () => {
expect(defaultChannelTitle(['ι¦ε¦', 'Codex', 'Pi'], format, 100)).toBe('ι¦ε¦γCodexγPi');
expect(defaultChannelTitle(['Codex'], format, 100)).toBe('Codex');
});
it('summarizes the rest instead of listing every member', () => {
expect(defaultChannelTitle(['A', 'B', 'C', 'D', 'E'], format, 100)).toBe('AγBγC +2/5');
});
it('skips blank names and stays within the length limit without splitting characters', () => {
expect(defaultChannelTitle([' ', 'A'], format, 100)).toBe('A');
expect(defaultChannelTitle([], format, 100)).toBe('');
expect(defaultChannelTitle(['πππ'], format, 5)).toBe('ππ');
});
});