@danielsimonjr/memory-mcp 12.5.2 → 12.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/README.md +158 -14
  2. package/dist/core/EntityManager.d.ts +263 -0
  3. package/dist/core/EntityManager.d.ts.map +1 -0
  4. package/dist/core/EntityManager.js +478 -0
  5. package/dist/core/GraphStorage.d.ts +344 -0
  6. package/dist/core/GraphStorage.d.ts.map +1 -0
  7. package/dist/core/GraphStorage.js +708 -0
  8. package/dist/core/GraphTraversal.d.ts +136 -0
  9. package/dist/core/GraphTraversal.d.ts.map +1 -0
  10. package/dist/core/GraphTraversal.js +556 -0
  11. package/dist/core/HierarchyManager.d.ts +111 -0
  12. package/dist/core/HierarchyManager.d.ts.map +1 -0
  13. package/dist/core/HierarchyManager.js +224 -0
  14. package/dist/core/ManagerContext.d.ts +72 -0
  15. package/dist/core/ManagerContext.d.ts.map +1 -0
  16. package/dist/core/ManagerContext.js +118 -0
  17. package/dist/core/ObservationManager.d.ts +85 -0
  18. package/dist/core/ObservationManager.d.ts.map +1 -0
  19. package/dist/core/ObservationManager.js +123 -0
  20. package/dist/core/RelationManager.d.ts +131 -0
  21. package/dist/core/RelationManager.d.ts.map +1 -0
  22. package/dist/core/RelationManager.js +210 -0
  23. package/dist/core/SQLiteStorage.d.ts +354 -0
  24. package/dist/core/SQLiteStorage.d.ts.map +1 -0
  25. package/dist/core/SQLiteStorage.js +917 -0
  26. package/dist/core/StorageFactory.d.ts +45 -0
  27. package/dist/core/StorageFactory.d.ts.map +1 -0
  28. package/dist/core/StorageFactory.js +64 -0
  29. package/dist/core/TransactionManager.d.ts +259 -0
  30. package/dist/core/TransactionManager.d.ts.map +1 -0
  31. package/dist/core/TransactionManager.js +392 -0
  32. package/dist/core/index.d.ts +16 -0
  33. package/dist/core/index.d.ts.map +1 -0
  34. package/dist/core/index.js +17 -0
  35. package/dist/features/AnalyticsManager.d.ts +44 -0
  36. package/dist/features/AnalyticsManager.d.ts.map +1 -0
  37. package/dist/features/AnalyticsManager.js +223 -0
  38. package/dist/features/ArchiveManager.d.ts +121 -0
  39. package/dist/features/ArchiveManager.d.ts.map +1 -0
  40. package/dist/features/ArchiveManager.js +240 -0
  41. package/dist/features/CompressionManager.d.ts +109 -0
  42. package/dist/features/CompressionManager.d.ts.map +1 -0
  43. package/dist/features/CompressionManager.js +404 -0
  44. package/dist/features/IOManager.d.ts +221 -0
  45. package/dist/features/IOManager.d.ts.map +1 -0
  46. package/dist/features/IOManager.js +997 -0
  47. package/dist/features/StreamingExporter.d.ts +105 -0
  48. package/dist/features/StreamingExporter.d.ts.map +1 -0
  49. package/dist/features/StreamingExporter.js +150 -0
  50. package/dist/features/TagManager.d.ts +147 -0
  51. package/dist/features/TagManager.d.ts.map +1 -0
  52. package/dist/features/TagManager.js +210 -0
  53. package/dist/features/index.d.ts +12 -0
  54. package/dist/features/index.d.ts.map +1 -0
  55. package/dist/features/index.js +11 -0
  56. package/dist/index.js +8 -2
  57. package/dist/search/BasicSearch.d.ts +51 -0
  58. package/dist/search/BasicSearch.d.ts.map +1 -0
  59. package/dist/search/BasicSearch.js +137 -0
  60. package/dist/search/BooleanSearch.d.ts +98 -0
  61. package/dist/search/BooleanSearch.d.ts.map +1 -0
  62. package/dist/search/BooleanSearch.js +430 -0
  63. package/dist/search/EmbeddingService.d.ts +178 -0
  64. package/dist/search/EmbeddingService.d.ts.map +1 -0
  65. package/dist/search/EmbeddingService.js +358 -0
  66. package/dist/search/FuzzySearch.d.ts +118 -0
  67. package/dist/search/FuzzySearch.d.ts.map +1 -0
  68. package/dist/search/FuzzySearch.js +312 -0
  69. package/dist/search/RankedSearch.d.ts +71 -0
  70. package/dist/search/RankedSearch.d.ts.map +1 -0
  71. package/dist/search/RankedSearch.js +238 -0
  72. package/dist/search/SavedSearchManager.d.ts +79 -0
  73. package/dist/search/SavedSearchManager.d.ts.map +1 -0
  74. package/dist/search/SavedSearchManager.js +145 -0
  75. package/dist/search/SearchFilterChain.d.ts +120 -0
  76. package/dist/search/SearchFilterChain.d.ts.map +1 -0
  77. package/dist/search/SearchFilterChain.js +185 -0
  78. package/dist/search/SearchManager.d.ts +285 -0
  79. package/dist/search/SearchManager.d.ts.map +1 -0
  80. package/dist/search/SearchManager.js +338 -0
  81. package/dist/search/SearchSuggestions.d.ts +27 -0
  82. package/dist/search/SearchSuggestions.d.ts.map +1 -0
  83. package/dist/search/SearchSuggestions.js +57 -0
  84. package/dist/search/SemanticSearch.d.ts +146 -0
  85. package/dist/search/SemanticSearch.d.ts.map +1 -0
  86. package/dist/search/SemanticSearch.js +313 -0
  87. package/dist/search/TFIDFIndexManager.d.ts +63 -0
  88. package/dist/search/TFIDFIndexManager.d.ts.map +1 -0
  89. package/dist/search/TFIDFIndexManager.js +215 -0
  90. package/dist/search/VectorStore.d.ts +235 -0
  91. package/dist/search/VectorStore.d.ts.map +1 -0
  92. package/dist/search/VectorStore.js +311 -0
  93. package/dist/search/index.d.ts +18 -0
  94. package/dist/search/index.d.ts.map +1 -0
  95. package/dist/search/index.js +21 -0
  96. package/dist/server/MCPServer.d.ts.map +1 -1
  97. package/dist/server/toolDefinitions.d.ts +1 -1
  98. package/dist/server/toolDefinitions.d.ts.map +1 -1
  99. package/dist/server/toolDefinitions.js +254 -2
  100. package/dist/server/toolHandlers.d.ts.map +1 -1
  101. package/dist/server/toolHandlers.js +241 -25
  102. package/dist/types/index.d.ts +13 -0
  103. package/dist/types/index.d.ts.map +1 -0
  104. package/dist/types/index.js +12 -0
  105. package/dist/types/types.d.ts +1234 -0
  106. package/dist/types/types.d.ts.map +1 -0
  107. package/dist/types/types.js +9 -0
  108. package/dist/utils/compressedCache.d.ts +192 -0
  109. package/dist/utils/compressedCache.d.ts.map +1 -0
  110. package/dist/utils/compressedCache.js +309 -0
  111. package/dist/utils/compressionUtil.d.ts +214 -0
  112. package/dist/utils/compressionUtil.d.ts.map +1 -0
  113. package/dist/utils/compressionUtil.js +247 -0
  114. package/dist/utils/constants.d.ts +245 -0
  115. package/dist/utils/constants.d.ts.map +1 -0
  116. package/dist/utils/constants.js +252 -0
  117. package/dist/utils/entityUtils.d.ts +321 -0
  118. package/dist/utils/entityUtils.d.ts.map +1 -0
  119. package/dist/utils/entityUtils.js +538 -0
  120. package/dist/utils/errors.d.ts +77 -0
  121. package/dist/utils/errors.d.ts.map +1 -0
  122. package/dist/utils/errors.js +121 -0
  123. package/dist/utils/formatters.d.ts +145 -0
  124. package/dist/utils/formatters.d.ts.map +1 -0
  125. package/dist/utils/formatters.js +132 -0
  126. package/dist/utils/index.d.ts +22 -0
  127. package/dist/utils/index.d.ts.map +1 -0
  128. package/dist/utils/index.js +75 -0
  129. package/dist/utils/indexes.d.ts +270 -0
  130. package/dist/utils/indexes.d.ts.map +1 -0
  131. package/dist/utils/indexes.js +526 -0
  132. package/dist/utils/logger.d.ts +24 -0
  133. package/dist/utils/logger.d.ts.map +1 -0
  134. package/dist/utils/logger.js +33 -0
  135. package/dist/utils/parallelUtils.d.ts +72 -0
  136. package/dist/utils/parallelUtils.d.ts.map +1 -0
  137. package/dist/utils/parallelUtils.js +169 -0
  138. package/dist/utils/schemas.d.ts +374 -0
  139. package/dist/utils/schemas.d.ts.map +1 -0
  140. package/dist/utils/schemas.js +484 -0
  141. package/dist/utils/searchAlgorithms.d.ts +99 -0
  142. package/dist/utils/searchAlgorithms.d.ts.map +1 -0
  143. package/dist/utils/searchAlgorithms.js +167 -0
  144. package/dist/utils/searchCache.d.ts +108 -0
  145. package/dist/utils/searchCache.d.ts.map +1 -0
  146. package/dist/utils/searchCache.js +209 -0
  147. package/dist/utils/taskScheduler.d.ts +290 -0
  148. package/dist/utils/taskScheduler.d.ts.map +1 -0
  149. package/dist/utils/taskScheduler.js +466 -0
  150. package/dist/workers/WorkerPool.d.ts +81 -0
  151. package/dist/workers/WorkerPool.d.ts.map +1 -0
  152. package/dist/workers/WorkerPool.js +121 -0
  153. package/dist/workers/index.d.ts +12 -0
  154. package/dist/workers/index.d.ts.map +1 -0
  155. package/dist/workers/index.js +9 -0
  156. package/dist/workers/levenshteinWorker.d.ts +60 -0
  157. package/dist/workers/levenshteinWorker.d.ts.map +1 -0
  158. package/dist/workers/levenshteinWorker.js +98 -0
  159. package/package.json +7 -7
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Basic Search
3
+ *
4
+ * Simple text-based search with tag, importance, and date filters with result caching.
5
+ *
6
+ * @module search/BasicSearch
7
+ */
8
+ import type { KnowledgeGraph } from '../types/index.js';
9
+ import type { GraphStorage } from '../core/GraphStorage.js';
10
+ /**
11
+ * Performs basic text search with optional filters and caching.
12
+ */
13
+ export declare class BasicSearch {
14
+ private storage;
15
+ private enableCache;
16
+ constructor(storage: GraphStorage, enableCache?: boolean);
17
+ /**
18
+ * Search nodes by text query with optional filters and pagination.
19
+ *
20
+ * Searches across entity names, types, and observations.
21
+ *
22
+ * @param query - Text to search for (case-insensitive)
23
+ * @param tags - Optional tags to filter by
24
+ * @param minImportance - Optional minimum importance (0-10)
25
+ * @param maxImportance - Optional maximum importance (0-10)
26
+ * @param offset - Number of results to skip (default: 0)
27
+ * @param limit - Maximum number of results (default: 50, max: 200)
28
+ * @returns Filtered knowledge graph with pagination applied
29
+ */
30
+ searchNodes(query: string, tags?: string[], minImportance?: number, maxImportance?: number, offset?: number, limit?: number): Promise<KnowledgeGraph>;
31
+ /**
32
+ * Open specific nodes by name.
33
+ *
34
+ * @param names - Array of entity names to retrieve
35
+ * @returns Knowledge graph with specified entities and their relations
36
+ */
37
+ openNodes(names: string[]): Promise<KnowledgeGraph>;
38
+ /**
39
+ * Search by date range with optional filters and pagination.
40
+ *
41
+ * @param startDate - Optional start date (ISO 8601)
42
+ * @param endDate - Optional end date (ISO 8601)
43
+ * @param entityType - Optional entity type filter
44
+ * @param tags - Optional tags filter
45
+ * @param offset - Number of results to skip (default: 0)
46
+ * @param limit - Maximum number of results (default: 50, max: 200)
47
+ * @returns Filtered knowledge graph with pagination applied
48
+ */
49
+ searchByDateRange(startDate?: string, endDate?: string, entityType?: string, tags?: string[], offset?: number, limit?: number): Promise<KnowledgeGraph>;
50
+ }
51
+ //# sourceMappingURL=BasicSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasicSearch.d.ts","sourceRoot":"","sources":["../../src/search/BasicSearch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAI5D;;GAEG;AACH,qBAAa,WAAW;IAEpB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,WAAW;gBADX,OAAO,EAAE,YAAY,EACrB,WAAW,GAAE,OAAc;IAGrC;;;;;;;;;;;;OAYG;IACG,WAAW,CACf,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,aAAa,CAAC,EAAE,MAAM,EACtB,aAAa,CAAC,EAAE,MAAM,EACtB,MAAM,GAAE,MAAU,EAClB,KAAK,GAAE,MAA8B,GACpC,OAAO,CAAC,cAAc,CAAC;IAwD1B;;;;;OAKG;IACG,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC;IAYzD;;;;;;;;;;OAUG;IACG,iBAAiB,CACrB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,MAAM,GAAE,MAAU,EAClB,KAAK,GAAE,MAA8B,GACpC,OAAO,CAAC,cAAc,CAAC;CAiD3B"}
@@ -0,0 +1,137 @@
1
+ /**
2
+ * Basic Search
3
+ *
4
+ * Simple text-based search with tag, importance, and date filters with result caching.
5
+ *
6
+ * @module search/BasicSearch
7
+ */
8
+ import { isWithinDateRange, SEARCH_LIMITS, searchCaches } from '../utils/index.js';
9
+ import { SearchFilterChain } from './SearchFilterChain.js';
10
+ /**
11
+ * Performs basic text search with optional filters and caching.
12
+ */
13
+ export class BasicSearch {
14
+ storage;
15
+ enableCache;
16
+ constructor(storage, enableCache = true) {
17
+ this.storage = storage;
18
+ this.enableCache = enableCache;
19
+ }
20
+ /**
21
+ * Search nodes by text query with optional filters and pagination.
22
+ *
23
+ * Searches across entity names, types, and observations.
24
+ *
25
+ * @param query - Text to search for (case-insensitive)
26
+ * @param tags - Optional tags to filter by
27
+ * @param minImportance - Optional minimum importance (0-10)
28
+ * @param maxImportance - Optional maximum importance (0-10)
29
+ * @param offset - Number of results to skip (default: 0)
30
+ * @param limit - Maximum number of results (default: 50, max: 200)
31
+ * @returns Filtered knowledge graph with pagination applied
32
+ */
33
+ async searchNodes(query, tags, minImportance, maxImportance, offset = 0, limit = SEARCH_LIMITS.DEFAULT) {
34
+ // Check cache first
35
+ if (this.enableCache) {
36
+ const cacheKey = { query, tags, minImportance, maxImportance, offset, limit };
37
+ const cached = searchCaches.basic.get(cacheKey);
38
+ if (cached) {
39
+ return cached;
40
+ }
41
+ }
42
+ const graph = await this.storage.loadGraph();
43
+ const queryLower = query.toLowerCase();
44
+ // First filter by text match (search-specific)
45
+ // OPTIMIZED: Uses pre-computed lowercase cache to avoid repeated toLowerCase() calls
46
+ const textMatched = graph.entities.filter(e => {
47
+ const lowercased = this.storage.getLowercased(e.name);
48
+ if (lowercased) {
49
+ return (lowercased.name.includes(queryLower) ||
50
+ lowercased.entityType.includes(queryLower) ||
51
+ lowercased.observations.some(o => o.includes(queryLower)));
52
+ }
53
+ // Fallback for entities not in cache (shouldn't happen in normal use)
54
+ return (e.name.toLowerCase().includes(queryLower) ||
55
+ e.entityType.toLowerCase().includes(queryLower) ||
56
+ e.observations.some(o => o.toLowerCase().includes(queryLower)));
57
+ });
58
+ // Apply tag and importance filters using SearchFilterChain
59
+ const filters = { tags, minImportance, maxImportance };
60
+ const filteredEntities = SearchFilterChain.applyFilters(textMatched, filters);
61
+ // Apply pagination using SearchFilterChain
62
+ const pagination = SearchFilterChain.validatePagination(offset, limit);
63
+ const paginatedEntities = SearchFilterChain.paginate(filteredEntities, pagination);
64
+ const filteredEntityNames = new Set(paginatedEntities.map(e => e.name));
65
+ const filteredRelations = graph.relations.filter(r => filteredEntityNames.has(r.from) && filteredEntityNames.has(r.to));
66
+ const result = { entities: paginatedEntities, relations: filteredRelations };
67
+ // Cache the result
68
+ if (this.enableCache) {
69
+ const cacheKey = { query, tags, minImportance, maxImportance, offset, limit };
70
+ searchCaches.basic.set(cacheKey, result);
71
+ }
72
+ return result;
73
+ }
74
+ /**
75
+ * Open specific nodes by name.
76
+ *
77
+ * @param names - Array of entity names to retrieve
78
+ * @returns Knowledge graph with specified entities and their relations
79
+ */
80
+ async openNodes(names) {
81
+ const graph = await this.storage.loadGraph();
82
+ const filteredEntities = graph.entities.filter(e => names.includes(e.name));
83
+ const filteredEntityNames = new Set(filteredEntities.map(e => e.name));
84
+ const filteredRelations = graph.relations.filter(r => filteredEntityNames.has(r.from) && filteredEntityNames.has(r.to));
85
+ return { entities: filteredEntities, relations: filteredRelations };
86
+ }
87
+ /**
88
+ * Search by date range with optional filters and pagination.
89
+ *
90
+ * @param startDate - Optional start date (ISO 8601)
91
+ * @param endDate - Optional end date (ISO 8601)
92
+ * @param entityType - Optional entity type filter
93
+ * @param tags - Optional tags filter
94
+ * @param offset - Number of results to skip (default: 0)
95
+ * @param limit - Maximum number of results (default: 50, max: 200)
96
+ * @returns Filtered knowledge graph with pagination applied
97
+ */
98
+ async searchByDateRange(startDate, endDate, entityType, tags, offset = 0, limit = SEARCH_LIMITS.DEFAULT) {
99
+ // Check cache first
100
+ if (this.enableCache) {
101
+ const cacheKey = { method: 'dateRange', startDate, endDate, entityType, tags, offset, limit };
102
+ const cached = searchCaches.basic.get(cacheKey);
103
+ if (cached) {
104
+ return cached;
105
+ }
106
+ }
107
+ const graph = await this.storage.loadGraph();
108
+ // First filter by date range (search-specific - uses createdAt OR lastModified)
109
+ const dateFiltered = graph.entities.filter(e => {
110
+ const dateToCheck = e.createdAt || e.lastModified;
111
+ if (dateToCheck && !isWithinDateRange(dateToCheck, startDate, endDate)) {
112
+ return false;
113
+ }
114
+ return true;
115
+ });
116
+ // Apply entity type and tag filters using SearchFilterChain
117
+ const filters = { tags, entityType };
118
+ const filteredEntities = SearchFilterChain.applyFilters(dateFiltered, filters);
119
+ // Apply pagination using SearchFilterChain
120
+ const pagination = SearchFilterChain.validatePagination(offset, limit);
121
+ const paginatedEntities = SearchFilterChain.paginate(filteredEntities, pagination);
122
+ const filteredEntityNames = new Set(paginatedEntities.map(e => e.name));
123
+ const filteredRelations = graph.relations.filter(r => {
124
+ const dateToCheck = r.createdAt || r.lastModified;
125
+ const inDateRange = !dateToCheck || isWithinDateRange(dateToCheck, startDate, endDate);
126
+ const involvesFilteredEntities = filteredEntityNames.has(r.from) && filteredEntityNames.has(r.to);
127
+ return inDateRange && involvesFilteredEntities;
128
+ });
129
+ const result = { entities: paginatedEntities, relations: filteredRelations };
130
+ // Cache the result
131
+ if (this.enableCache) {
132
+ const cacheKey = { method: 'dateRange', startDate, endDate, entityType, tags, offset, limit };
133
+ searchCaches.basic.set(cacheKey, result);
134
+ }
135
+ return result;
136
+ }
137
+ }
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Boolean Search
3
+ *
4
+ * Advanced search with boolean operators (AND, OR, NOT) and field-specific queries.
5
+ *
6
+ * @module search/BooleanSearch
7
+ */
8
+ import type { KnowledgeGraph } from '../types/index.js';
9
+ import type { GraphStorage } from '../core/GraphStorage.js';
10
+ /**
11
+ * Performs boolean search with query parsing and AST evaluation.
12
+ */
13
+ export declare class BooleanSearch {
14
+ private storage;
15
+ /**
16
+ * Phase 4 Sprint 4: AST cache to avoid re-parsing queries.
17
+ * Maps query string -> parsed AST.
18
+ */
19
+ private astCache;
20
+ /**
21
+ * Phase 4 Sprint 4: Result cache for boolean search.
22
+ * Maps cache key -> cached results.
23
+ */
24
+ private resultCache;
25
+ constructor(storage: GraphStorage);
26
+ /**
27
+ * Phase 4 Sprint 4: Generate cache key for boolean search.
28
+ */
29
+ private generateCacheKey;
30
+ /**
31
+ * Phase 4 Sprint 4: Clear all caches.
32
+ */
33
+ clearCache(): void;
34
+ /**
35
+ * Phase 4 Sprint 4: Cleanup old cache entries.
36
+ */
37
+ private cleanupResultCache;
38
+ /**
39
+ * Phase 4 Sprint 4: Get or parse AST for a query.
40
+ */
41
+ private getOrParseAST;
42
+ /**
43
+ * Boolean search with support for AND, OR, NOT operators, field-specific queries, and pagination.
44
+ *
45
+ * Phase 4 Sprint 4: Implements AST caching and result caching for repeated queries.
46
+ *
47
+ * Query syntax examples:
48
+ * - "alice AND programming" - Both terms must match
49
+ * - "type:person OR type:organization" - Either type matches
50
+ * - "NOT archived" - Exclude archived items
51
+ * - "name:alice AND (observation:coding OR observation:teaching)"
52
+ *
53
+ * @param query - Boolean query string
54
+ * @param tags - Optional tags filter
55
+ * @param minImportance - Optional minimum importance
56
+ * @param maxImportance - Optional maximum importance
57
+ * @param offset - Number of results to skip (default: 0)
58
+ * @param limit - Maximum number of results (default: 50, max: 200)
59
+ * @returns Filtered knowledge graph matching the boolean query with pagination applied
60
+ */
61
+ booleanSearch(query: string, tags?: string[], minImportance?: number, maxImportance?: number, offset?: number, limit?: number): Promise<KnowledgeGraph>;
62
+ /**
63
+ * Tokenize a boolean query into tokens.
64
+ *
65
+ * Handles quoted strings, parentheses, and operators.
66
+ */
67
+ private tokenizeBooleanQuery;
68
+ /**
69
+ * Parse a boolean search query into an AST.
70
+ *
71
+ * Supports: AND, OR, NOT, parentheses, field-specific queries (field:value)
72
+ */
73
+ private parseBooleanQuery;
74
+ /**
75
+ * Evaluate a boolean query AST against an entity.
76
+ */
77
+ private evaluateBooleanQuery;
78
+ /**
79
+ * Check if a search term is simple (no regex or wildcards).
80
+ * Simple terms can use the O(1) observation index.
81
+ */
82
+ private isSimpleTerm;
83
+ /**
84
+ * Check if entity matches a search term in any text field.
85
+ * OPTIMIZED: Uses pre-computed lowercase data when available.
86
+ */
87
+ private entityMatchesTerm;
88
+ /**
89
+ * Validate query complexity to prevent resource exhaustion.
90
+ * Checks nesting depth, term count, and operator count against configured limits.
91
+ */
92
+ private validateQueryComplexity;
93
+ /**
94
+ * Calculate query complexity metrics.
95
+ */
96
+ private calculateQueryComplexity;
97
+ }
98
+ //# sourceMappingURL=BooleanSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BooleanSearch.d.ts","sourceRoot":"","sources":["../../src/search/BooleanSearch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAA4B,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAkC5D;;GAEG;AACH,qBAAa,aAAa;IAaZ,OAAO,CAAC,OAAO;IAZ3B;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAA4C;IAE5D;;;OAGG;IACH,OAAO,CAAC,WAAW,CAA6C;gBAE5C,OAAO,EAAE,YAAY;IAEzC;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAkBxB;;OAEG;IACH,UAAU,IAAI,IAAI;IAKlB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAwB1B;;OAEG;IACH,OAAO,CAAC,aAAa;IAqBrB;;;;;;;;;;;;;;;;;;OAkBG;IACG,aAAa,CACjB,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,aAAa,CAAC,EAAE,MAAM,EACtB,aAAa,CAAC,EAAE,MAAM,EACtB,MAAM,GAAE,MAAU,EAClB,KAAK,GAAE,MAA8B,GACpC,OAAO,CAAC,cAAc,CAAC;IA2E1B;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IA+C5B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAuFzB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IA2D5B;;;OAGG;IACH,OAAO,CAAC,YAAY;IAKpB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAoBzB;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IA2B/B;;OAEG;IACH,OAAO,CAAC,wBAAwB;CA8BjC"}