feat(tess): add generic interaction CLI (#731)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/publish Pipeline was successful

This commit was merged in pull request #731.
This commit is contained in:
2026-07-13 05:52:41 +00:00
parent 99a2d0fc9d
commit 8246ee0137
8 changed files with 646 additions and 2 deletions

View 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',
]);
});
});