feat(companion): add known event name typing and listing
This commit is contained in:
@@ -224,6 +224,18 @@ describe('CompanionRuntimeClient', () => {
|
||||
expect(typingHandler).toHaveBeenCalledWith({ active: true });
|
||||
});
|
||||
|
||||
it('lists known companion event names', () => {
|
||||
const client = new CompanionRuntimeClient({
|
||||
url: 'ws://127.0.0.1:1',
|
||||
});
|
||||
|
||||
expect(client.listKnownEventNames()).toEqual([
|
||||
'agent.stream',
|
||||
'agent.typing',
|
||||
'context_warning',
|
||||
]);
|
||||
});
|
||||
|
||||
it('supports subscribeContextWarning helper', () => {
|
||||
const client = new CompanionRuntimeClient({
|
||||
url: 'ws://127.0.0.1:1',
|
||||
|
||||
Reference in New Issue
Block a user