rename files with underscore

This commit is contained in:
perf3ct 2025-04-16 19:36:10 +00:00
parent 534396bce5
commit d149e21896
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
8 changed files with 16 additions and 16 deletions

View File

@ -4,7 +4,7 @@
import log from "../../../log.js";
import type { Response } from "express";
import type { StreamChunk } from "../../ai_interface.js";
import type { LLMStreamMessage } from "../interfaces/ws-messages.js";
import type { LLMStreamMessage } from "../interfaces/ws_messages.js";
import type { ChatSession } from "../interfaces/session.js";
/**
@ -50,7 +50,7 @@ export class StreamHandler {
try {
// Import the tool handler
const { ToolHandler } = await import('./tool-handler.js');
const { ToolHandler } = await import('./tool_handler.js');
// Generate the LLM completion with streaming enabled
const response = await service.generateChatCompletion(aiMessages, {
@ -198,7 +198,7 @@ export class StreamHandler {
service?: any
): Promise<void> {
// Import tool handler lazily to avoid circular dependencies
const { ToolHandler } = await import('./tool-handler.js');
const { ToolHandler } = await import('./tool_handler.js');
let messageContent = '';

View File

@ -3,7 +3,7 @@
*/
import log from "../../../log.js";
import type { Message } from "../../ai_interface.js";
import SessionsStore from "../sessions-store.js";
import SessionsStore from "../sessions_store.js";
/**
* Handles the execution of LLM tools

View File

@ -1,14 +1,14 @@
/**
* 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 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/session.js';
import type { LLMStreamMessage } from './interfaces/ws-messages.js';
import type { LLMStreamMessage } from './interfaces/ws_messages.js';
// Export components
export {

View File

@ -11,13 +11,13 @@ import options from "../../options.js";
import { SEARCH_CONSTANTS } from '../constants/search_constants.js';
// Import our refactored modules
import { ContextHandler } from "./handlers/context-handler.js";
import { ToolHandler } from "./handlers/tool-handler.js";
import { StreamHandler } from "./handlers/stream-handler.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 SessionsStore from "./sessions_store.js";
import * as MessageFormatter from "./utils/message-formatter.js";
import type { NoteSource } from "./interfaces/session.js";
import type { LLMStreamMessage } from "./interfaces/ws-messages.js";
import type { LLMStreamMessage } from "./interfaces/ws_messages.js";
/**
* Service to handle chat API interactions

View File

@ -5,6 +5,6 @@
* See chat/rest-chat-service.ts for the actual implementation.
*/
import restChatService from './chat/rest-chat-service.js';
import restChatService from './chat/rest_chat_service.js';
export * from './chat/interfaces/session.js';
export default restChatService;