mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
refactor(server): more unaccessible types
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user