import { describe, expect, it } from 'vitest';
import { Command } from 'commander';
import { registerInteractionCommand } from './interaction.js';

describe('generic interaction CLI', (): void => {
  it('registers every required interaction verb without an instance-specific command name', () => {
    const program = new Command();
    const command = registerInteractionCommand(program);
    expect(command.name()).toBe('interaction');
    expect(command.commands.map((item) => item.name()).sort()).toEqual([
      'attach',
      'chat',
      'enroll',
      'health',
      'recover',
      'send',
      'sessions',
      'status',
      'stop',
      'tree',
    ]);
  });
});
