refactor(server): more unaccessible types

This commit is contained in:
Elian Doran
2025-05-21 15:42:35 +03:00
parent 7aaa94d01b
commit 6414dd71ab
3 changed files with 3 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ interface DateLimits {
maxDate: string; maxDate: string;
} }
interface SimilarNote { export interface SimilarNote {
score: number; score: number;
notePath: string[]; notePath: string[];
noteId: string; noteId: string;

View File

@@ -26,7 +26,7 @@ import type {
* *
* Manages and provides access to all available agent tools. * Manages and provides access to all available agent tools.
*/ */
class AgentToolsManager { export class AgentToolsManager {
private vectorSearchTool: VectorSearchTool | null = null; private vectorSearchTool: VectorSearchTool | null = null;
private noteNavigatorTool: NoteNavigatorTool | null = null; private noteNavigatorTool: NoteNavigatorTool | null = null;
private queryDecompositionTool: QueryDecompositionTool | null = null; private queryDecompositionTool: QueryDecompositionTool | null = null;

View File

@@ -16,14 +16,12 @@ import vectorStore from "./embeddings/index.js";
import providerManager from "./providers/providers.js"; import providerManager from "./providers/providers.js";
import { ContextExtractor } from "./context/index.js"; import { ContextExtractor } from "./context/index.js";
import eventService from "../events.js"; import eventService from "../events.js";
import type { NoteEmbeddingContext } from "./embeddings/embeddings_interface.js";
import type { OptionDefinitions } from "@triliumnext/commons";
import sql from "../sql.js"; import sql from "../sql.js";
import sqlInit from "../sql_init.js"; import sqlInit from "../sql_init.js";
import { CONTEXT_PROMPTS } from './constants/llm_prompt_constants.js'; import { CONTEXT_PROMPTS } from './constants/llm_prompt_constants.js';
import { SEARCH_CONSTANTS } from './constants/search_constants.js'; import { SEARCH_CONSTANTS } from './constants/search_constants.js';
class IndexService { export class IndexService {
private initialized = false; private initialized = false;
private indexingInProgress = false; private indexingInProgress = false;
private contextExtractor = new ContextExtractor(); private contextExtractor = new ContextExtractor();