mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
chore(monorepo/server): move server-side source code
This commit is contained in:
29
apps/server/src/services/llm/chat/index.ts
Normal file
29
apps/server/src/services/llm/chat/index.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Chat module export
|
||||
*/
|
||||
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';
|
||||
import * as messageFormatter from './utils/message_formatter.js';
|
||||
import type { ChatSession, ChatMessage, NoteSource } from '../interfaces/chat_session.js';
|
||||
import type { LLMStreamMessage } from '../interfaces/chat_ws_messages.js';
|
||||
|
||||
// Export components
|
||||
export {
|
||||
restChatService as default,
|
||||
sessionsStore,
|
||||
ContextHandler,
|
||||
ToolHandler,
|
||||
StreamHandler,
|
||||
messageFormatter
|
||||
};
|
||||
|
||||
// Export types
|
||||
export type {
|
||||
ChatSession,
|
||||
ChatMessage,
|
||||
NoteSource,
|
||||
LLMStreamMessage
|
||||
};
|
||||
Reference in New Issue
Block a user