2025-04-16 19:35:09 +00:00
|
|
|
/**
|
|
|
|
|
* Chat module export
|
|
|
|
|
*/
|
2025-04-16 19:36:10 +00:00
|
|
|
import restChatService from './rest_chat_service.js';
|
|
|
|
|
import sessionsStore from './sessions_store.js';
|
|
|
|
|
import { ContextHandler } from './handlers/context_handler.js';
|
|
|
|
|
import { ToolHandler } from './handlers/tool_handler.js';
|
|
|
|
|
import { StreamHandler } from './handlers/stream_handler.js';
|
2025-04-16 19:35:09 +00:00
|
|
|
import * as messageFormatter from './utils/message-formatter.js';
|
|
|
|
|
import type { ChatSession, ChatMessage, NoteSource } from './interfaces/session.js';
|
2025-04-16 19:36:10 +00:00
|
|
|
import type { LLMStreamMessage } from './interfaces/ws_messages.js';
|
2025-04-16 19:35:09 +00:00
|
|
|
|
|
|
|
|
// Export components
|
|
|
|
|
export {
|
|
|
|
|
restChatService as default,
|
|
|
|
|
sessionsStore,
|
|
|
|
|
ContextHandler,
|
|
|
|
|
ToolHandler,
|
|
|
|
|
StreamHandler,
|
|
|
|
|
messageFormatter
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Export types
|
|
|
|
|
export type {
|
|
|
|
|
ChatSession,
|
|
|
|
|
ChatMessage,
|
|
|
|
|
NoteSource,
|
|
|
|
|
LLMStreamMessage
|
|
|
|
|
};
|