Skip to content

🤯 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.

575 B
Raw Blame
import { describe, expect, it } from 'vitest';

import { getVisibleProfileToolIds } from './profileToolVisibility';

describe('getVisibleProfileToolIds', () => {
  it('excludes runtime-managed builtins and agent connectors', () => {
    const result = getVisibleProfileToolIds(
      ['lobe-web-browsing', 'agent-connector', 'workspace-plugin'],
      {
        agentConnectorIdentifiers: new Set(['agent-connector']),
        nonConfigurableBuiltinToolIdentifiers: new Set(['lobe-web-browsing']),
      },
    );

    expect(result).toEqual(['workspace-plugin']);
  });
});