mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	refactor(server): more unaccessible types
This commit is contained in:
		
							parent
							
								
									7aaa94d01b
								
							
						
					
					
						commit
						6414dd71ab
					
				@ -36,7 +36,7 @@ interface DateLimits {
 | 
			
		||||
    maxDate: string;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
interface SimilarNote {
 | 
			
		||||
export interface SimilarNote {
 | 
			
		||||
    score: number;
 | 
			
		||||
    notePath: string[];
 | 
			
		||||
    noteId: string;
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
@ -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();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user