Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
import { describe, expect, it } from 'vitest';
import { normalizeTerminalHttpUrl } from './terminal-url';
describe('normalizeTerminalHttpUrl', () => {
it('trims unmatched trailing parentheses from terminal URLs', () => {
expect(normalizeTerminalHttpUrl('http://localhost:3000/)')).toBe('http://localhost:3000/');
expect(normalizeTerminalHttpUrl('http://localhost:3000/foo(bar))')).toBe(
'http://localhost:3000/foo(bar)'
);
});
it('preserves balanced parentheses inside terminal URLs', () => {
expect(normalizeTerminalHttpUrl('http://localhost:3000/foo(bar)')).toBe(
'http://localhost:3000/foo(bar)'
);
});
});