fix(tui): add /queue command support across tui and routing

This commit is contained in:
William Valentin
2026-02-16 12:19:21 -08:00
parent d9f7807ab2
commit fd7ad7bfb0
6 changed files with 382 additions and 0 deletions
+8
View File
@@ -87,6 +87,13 @@ describe('parseCommand', () => {
expect(parseCommand('/transfer telegram')).toEqual({ type: 'transfer', target: 'telegram' });
});
it('parses /queue commands', () => {
expect(parseCommand('/queue')).toEqual({ type: 'queue', action: 'show' });
expect(parseCommand('/queue show')).toEqual({ type: 'queue', action: 'show' });
expect(parseCommand('/queue reset')).toEqual({ type: 'queue', action: 'reset' });
expect(parseCommand('/queue set mode followup')).toEqual({ type: 'queue', action: 'set', args: 'mode followup' });
});
it('parses regular message', () => {
expect(parseCommand('Hello Flynn')).toEqual({ type: 'message', content: 'Hello Flynn' });
});
@@ -106,6 +113,7 @@ describe('getHelpText', () => {
expect(help).toContain('/compact');
expect(help).toContain('/usage');
expect(help).toContain('/verbose');
expect(help).toContain('/queue');
expect(help).toContain('/quit');
});
});