Skip to content

Build your personal knowledge base with Trilium Notes

refactor(server): more unaccessible types

Elian Doran6414dd71aba1
diff --git a/apps/server/src/becca/similarity.ts b/apps/server/src/becca/similarity.ts
index 5b031df35c..8f4bdf0ff4 100644
--- a/apps/server/src/becca/similarity.ts
+++ b/apps/server/src/becca/similarity.ts
@@ -36,7 +36,7 @@ interface DateLimits {
maxDate: string;
}
-interface SimilarNote {
+export interface SimilarNote {
score: number;
notePath: string[];
noteId: string;
diff --git a/apps/server/src/services/llm/context_extractors/index.ts b/apps/server/src/services/llm/context_extractors/index.ts
index bbb0861ead..f6cd07b28f 100644
--- a/apps/server/src/services/llm/context_extractors/index.ts
+++ b/apps/server/src/services/llm/context_extractors/index.ts
@@ -26,7 +26,7 @@ import type {
*
* Manages and provides access to all available agent tools.
*/
-class AgentToolsManager {
+export class AgentToolsManager {
private vectorSearchTool: VectorSearchTool | null = null;
private noteNavigatorTool: NoteNavigatorTool | null = null;
private queryDecompositionTool: QueryDecompositionTool | null = null;
diff --git a/apps/server/src/services/llm/index_service.ts b/apps/server/src/services/llm/index_service.ts
index 7006a13b15..18eb17b79f 100644
--- a/apps/server/src/services/llm/index_service.ts
+++ b/apps/server/src/services/llm/index_service.ts
@@ -16,14 +16,12 @@ import vectorStore from "./embeddings/index.js";
import providerManager from "./providers/providers.js";
import { ContextExtractor } from "./context/index.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 sqlInit from "../sql_init.js";
import { CONTEXT_PROMPTS } from './constants/llm_prompt_constants.js';
import { SEARCH_CONSTANTS } from './constants/search_constants.js';
-class IndexService {
+export class IndexService {
private initialized = false;
private indexingInProgress = false;
private contextExtractor = new ContextExtractor();