feat(tess): add generic interaction CLI (#731)
This commit was merged in pull request #731.
This commit is contained in:
22
packages/mosaic/src/commands/interaction.test.ts
Normal file
22
packages/mosaic/src/commands/interaction.test.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
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',
|
||||
'health',
|
||||
'recover',
|
||||
'send',
|
||||
'sessions',
|
||||
'status',
|
||||
'stop',
|
||||
'tree',
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user