codeseeker 1.4.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 (1380) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +388 -0
  3. package/bin/codeseeker.js +171 -0
  4. package/dist/cli/analyzers/change-analyzer.d.ts +7 -0
  5. package/dist/cli/analyzers/change-analyzer.d.ts.map +1 -0
  6. package/dist/cli/analyzers/change-analyzer.js +22 -0
  7. package/dist/cli/analyzers/change-analyzer.js.map +1 -0
  8. package/dist/cli/analyzers/configuration-analyzer.d.ts +7 -0
  9. package/dist/cli/analyzers/configuration-analyzer.d.ts.map +1 -0
  10. package/dist/cli/analyzers/configuration-analyzer.js +67 -0
  11. package/dist/cli/analyzers/configuration-analyzer.js.map +1 -0
  12. package/dist/cli/analyzers/documentation-analyzer.d.ts +7 -0
  13. package/dist/cli/analyzers/documentation-analyzer.d.ts.map +1 -0
  14. package/dist/cli/analyzers/documentation-analyzer.js +59 -0
  15. package/dist/cli/analyzers/documentation-analyzer.js.map +1 -0
  16. package/dist/cli/analyzers/project-structure-analyzer.d.ts +7 -0
  17. package/dist/cli/analyzers/project-structure-analyzer.d.ts.map +1 -0
  18. package/dist/cli/analyzers/project-structure-analyzer.js +68 -0
  19. package/dist/cli/analyzers/project-structure-analyzer.js.map +1 -0
  20. package/dist/cli/codemind-workflow-orchestrator.d.ts +19 -0
  21. package/dist/cli/codemind-workflow-orchestrator.d.ts.map +1 -0
  22. package/dist/cli/codemind-workflow-orchestrator.js +26 -0
  23. package/dist/cli/codemind-workflow-orchestrator.js.map +1 -0
  24. package/dist/cli/codeseeker-cli.d.ts +156 -0
  25. package/dist/cli/codeseeker-cli.d.ts.map +1 -0
  26. package/dist/cli/codeseeker-cli.js +937 -0
  27. package/dist/cli/codeseeker-cli.js.map +1 -0
  28. package/dist/cli/codeseeker-workflow-orchestrator.d.ts +19 -0
  29. package/dist/cli/codeseeker-workflow-orchestrator.d.ts.map +1 -0
  30. package/dist/cli/codeseeker-workflow-orchestrator.js +26 -0
  31. package/dist/cli/codeseeker-workflow-orchestrator.js.map +1 -0
  32. package/dist/cli/commands/base-command-handler.d.ts +31 -0
  33. package/dist/cli/commands/base-command-handler.d.ts.map +1 -0
  34. package/dist/cli/commands/base-command-handler.js +110 -0
  35. package/dist/cli/commands/base-command-handler.js.map +1 -0
  36. package/dist/cli/commands/command-context.d.ts +27 -0
  37. package/dist/cli/commands/command-context.d.ts.map +1 -0
  38. package/dist/cli/commands/command-context.js +8 -0
  39. package/dist/cli/commands/command-context.js.map +1 -0
  40. package/dist/cli/commands/command-router.d.ts +135 -0
  41. package/dist/cli/commands/command-router.d.ts.map +1 -0
  42. package/dist/cli/commands/command-router.js +497 -0
  43. package/dist/cli/commands/command-router.js.map +1 -0
  44. package/dist/cli/commands/handlers/analyze-command-handler.d.ts +99 -0
  45. package/dist/cli/commands/handlers/analyze-command-handler.d.ts.map +1 -0
  46. package/dist/cli/commands/handlers/analyze-command-handler.js +704 -0
  47. package/dist/cli/commands/handlers/analyze-command-handler.js.map +1 -0
  48. package/dist/cli/commands/handlers/dedup-command-handler.d.ts +10 -0
  49. package/dist/cli/commands/handlers/dedup-command-handler.d.ts.map +1 -0
  50. package/dist/cli/commands/handlers/dedup-command-handler.js +19 -0
  51. package/dist/cli/commands/handlers/dedup-command-handler.js.map +1 -0
  52. package/dist/cli/commands/handlers/docs-command-handler.d.ts +10 -0
  53. package/dist/cli/commands/handlers/docs-command-handler.d.ts.map +1 -0
  54. package/dist/cli/commands/handlers/docs-command-handler.js +19 -0
  55. package/dist/cli/commands/handlers/docs-command-handler.js.map +1 -0
  56. package/dist/cli/commands/handlers/infrastructure-setup-handler.d.ts +21 -0
  57. package/dist/cli/commands/handlers/infrastructure-setup-handler.d.ts.map +1 -0
  58. package/dist/cli/commands/handlers/infrastructure-setup-handler.js +71 -0
  59. package/dist/cli/commands/handlers/infrastructure-setup-handler.js.map +1 -0
  60. package/dist/cli/commands/handlers/install-command-handler.d.ts +80 -0
  61. package/dist/cli/commands/handlers/install-command-handler.d.ts.map +1 -0
  62. package/dist/cli/commands/handlers/install-command-handler.js +466 -0
  63. package/dist/cli/commands/handlers/install-command-handler.js.map +1 -0
  64. package/dist/cli/commands/handlers/instructions-command-handler.d.ts +10 -0
  65. package/dist/cli/commands/handlers/instructions-command-handler.d.ts.map +1 -0
  66. package/dist/cli/commands/handlers/instructions-command-handler.js +19 -0
  67. package/dist/cli/commands/handlers/instructions-command-handler.js.map +1 -0
  68. package/dist/cli/commands/handlers/project-command-handler.d.ts +42 -0
  69. package/dist/cli/commands/handlers/project-command-handler.d.ts.map +1 -0
  70. package/dist/cli/commands/handlers/project-command-handler.js +257 -0
  71. package/dist/cli/commands/handlers/project-command-handler.js.map +1 -0
  72. package/dist/cli/commands/handlers/search-command-handler.d.ts +50 -0
  73. package/dist/cli/commands/handlers/search-command-handler.d.ts.map +1 -0
  74. package/dist/cli/commands/handlers/search-command-handler.js +500 -0
  75. package/dist/cli/commands/handlers/search-command-handler.js.map +1 -0
  76. package/dist/cli/commands/handlers/setup-command-handler.d.ts +103 -0
  77. package/dist/cli/commands/handlers/setup-command-handler.d.ts.map +1 -0
  78. package/dist/cli/commands/handlers/setup-command-handler.js +1135 -0
  79. package/dist/cli/commands/handlers/setup-command-handler.js.map +1 -0
  80. package/dist/cli/commands/handlers/solid-command-handler.d.ts +10 -0
  81. package/dist/cli/commands/handlers/solid-command-handler.d.ts.map +1 -0
  82. package/dist/cli/commands/handlers/solid-command-handler.js +19 -0
  83. package/dist/cli/commands/handlers/solid-command-handler.js.map +1 -0
  84. package/dist/cli/commands/handlers/sync-command-handler.d.ts +10 -0
  85. package/dist/cli/commands/handlers/sync-command-handler.d.ts.map +1 -0
  86. package/dist/cli/commands/handlers/sync-command-handler.js +19 -0
  87. package/dist/cli/commands/handlers/sync-command-handler.js.map +1 -0
  88. package/dist/cli/commands/handlers/synonyms-command-handler.d.ts +23 -0
  89. package/dist/cli/commands/handlers/synonyms-command-handler.d.ts.map +1 -0
  90. package/dist/cli/commands/handlers/synonyms-command-handler.js +201 -0
  91. package/dist/cli/commands/handlers/synonyms-command-handler.js.map +1 -0
  92. package/dist/cli/commands/handlers/watcher-command-handler.d.ts +10 -0
  93. package/dist/cli/commands/handlers/watcher-command-handler.d.ts.map +1 -0
  94. package/dist/cli/commands/handlers/watcher-command-handler.js +19 -0
  95. package/dist/cli/commands/handlers/watcher-command-handler.js.map +1 -0
  96. package/dist/cli/commands/reconcile.d.ts +8 -0
  97. package/dist/cli/commands/reconcile.d.ts.map +1 -0
  98. package/dist/cli/commands/reconcile.js +220 -0
  99. package/dist/cli/commands/reconcile.js.map +1 -0
  100. package/dist/cli/commands/semantic-search.d.ts +8 -0
  101. package/dist/cli/commands/semantic-search.d.ts.map +1 -0
  102. package/dist/cli/commands/semantic-search.js +219 -0
  103. package/dist/cli/commands/semantic-search.js.map +1 -0
  104. package/dist/cli/commands/services/claude-intent-analyzer.d.ts +109 -0
  105. package/dist/cli/commands/services/claude-intent-analyzer.d.ts.map +1 -0
  106. package/dist/cli/commands/services/claude-intent-analyzer.js +405 -0
  107. package/dist/cli/commands/services/claude-intent-analyzer.js.map +1 -0
  108. package/dist/cli/commands/services/context-aware-clarification-service.d.ts +99 -0
  109. package/dist/cli/commands/services/context-aware-clarification-service.d.ts.map +1 -0
  110. package/dist/cli/commands/services/context-aware-clarification-service.js +414 -0
  111. package/dist/cli/commands/services/context-aware-clarification-service.js.map +1 -0
  112. package/dist/cli/commands/services/context-builder.d.ts +90 -0
  113. package/dist/cli/commands/services/context-builder.d.ts.map +1 -0
  114. package/dist/cli/commands/services/context-builder.js +330 -0
  115. package/dist/cli/commands/services/context-builder.js.map +1 -0
  116. package/dist/cli/commands/services/graph-analysis-service.d.ts +157 -0
  117. package/dist/cli/commands/services/graph-analysis-service.d.ts.map +1 -0
  118. package/dist/cli/commands/services/graph-analysis-service.js +722 -0
  119. package/dist/cli/commands/services/graph-analysis-service.js.map +1 -0
  120. package/dist/cli/commands/services/natural-language-processor.d.ts +41 -0
  121. package/dist/cli/commands/services/natural-language-processor.d.ts.map +1 -0
  122. package/dist/cli/commands/services/natural-language-processor.js +77 -0
  123. package/dist/cli/commands/services/natural-language-processor.js.map +1 -0
  124. package/dist/cli/commands/services/search-quality-metrics.d.ts +85 -0
  125. package/dist/cli/commands/services/search-quality-metrics.d.ts.map +1 -0
  126. package/dist/cli/commands/services/search-quality-metrics.js +214 -0
  127. package/dist/cli/commands/services/search-quality-metrics.js.map +1 -0
  128. package/dist/cli/commands/services/semantic-search-orchestrator.d.ts +85 -0
  129. package/dist/cli/commands/services/semantic-search-orchestrator.d.ts.map +1 -0
  130. package/dist/cli/commands/services/semantic-search-orchestrator.js +331 -0
  131. package/dist/cli/commands/services/semantic-search-orchestrator.js.map +1 -0
  132. package/dist/cli/commands/services/task-decomposition-service.d.ts +114 -0
  133. package/dist/cli/commands/services/task-decomposition-service.d.ts.map +1 -0
  134. package/dist/cli/commands/services/task-decomposition-service.js +364 -0
  135. package/dist/cli/commands/services/task-decomposition-service.js.map +1 -0
  136. package/dist/cli/commands/services/unified-query-analyzer.d.ts +75 -0
  137. package/dist/cli/commands/services/unified-query-analyzer.d.ts.map +1 -0
  138. package/dist/cli/commands/services/unified-query-analyzer.js +282 -0
  139. package/dist/cli/commands/services/unified-query-analyzer.js.map +1 -0
  140. package/dist/cli/commands/services/user-interaction-service.d.ts +326 -0
  141. package/dist/cli/commands/services/user-interaction-service.d.ts.map +1 -0
  142. package/dist/cli/commands/services/user-interaction-service.js +1987 -0
  143. package/dist/cli/commands/services/user-interaction-service.js.map +1 -0
  144. package/dist/cli/commands/services/workflow-orchestrator.d.ts +171 -0
  145. package/dist/cli/commands/services/workflow-orchestrator.d.ts.map +1 -0
  146. package/dist/cli/commands/services/workflow-orchestrator.js +660 -0
  147. package/dist/cli/commands/services/workflow-orchestrator.js.map +1 -0
  148. package/dist/cli/context-optimizer.d.ts +96 -0
  149. package/dist/cli/context-optimizer.d.ts.map +1 -0
  150. package/dist/cli/context-optimizer.js +582 -0
  151. package/dist/cli/context-optimizer.js.map +1 -0
  152. package/dist/cli/features/code-graph/graph-builder.d.ts +119 -0
  153. package/dist/cli/features/code-graph/graph-builder.d.ts.map +1 -0
  154. package/dist/cli/features/code-graph/graph-builder.js +532 -0
  155. package/dist/cli/features/code-graph/graph-builder.js.map +1 -0
  156. package/dist/cli/features/compilation/verifier.d.ts +69 -0
  157. package/dist/cli/features/compilation/verifier.d.ts.map +1 -0
  158. package/dist/cli/features/compilation/verifier.js +431 -0
  159. package/dist/cli/features/compilation/verifier.js.map +1 -0
  160. package/dist/cli/features/database/database-documentation-generator.d.ts +103 -0
  161. package/dist/cli/features/database/database-documentation-generator.d.ts.map +1 -0
  162. package/dist/cli/features/database/database-documentation-generator.js +386 -0
  163. package/dist/cli/features/database/database-documentation-generator.js.map +1 -0
  164. package/dist/cli/features/database/database-schema-tool.d.ts +160 -0
  165. package/dist/cli/features/database/database-schema-tool.d.ts.map +1 -0
  166. package/dist/cli/features/database/database-schema-tool.js +437 -0
  167. package/dist/cli/features/database/database-schema-tool.js.map +1 -0
  168. package/dist/cli/features/documentation/map-analyzer.d.ts +95 -0
  169. package/dist/cli/features/documentation/map-analyzer.d.ts.map +1 -0
  170. package/dist/cli/features/documentation/map-analyzer.js +320 -0
  171. package/dist/cli/features/documentation/map-analyzer.js.map +1 -0
  172. package/dist/cli/features/duplication/detector.d.ts +28 -0
  173. package/dist/cli/features/duplication/detector.d.ts.map +1 -0
  174. package/dist/cli/features/duplication/detector.js +228 -0
  175. package/dist/cli/features/duplication/detector.js.map +1 -0
  176. package/dist/cli/features/duplication/interfaces/index.d.ts +134 -0
  177. package/dist/cli/features/duplication/interfaces/index.d.ts.map +1 -0
  178. package/dist/cli/features/duplication/interfaces/index.js +31 -0
  179. package/dist/cli/features/duplication/interfaces/index.js.map +1 -0
  180. package/dist/cli/features/duplication/services/duplication-detection-service.d.ts +27 -0
  181. package/dist/cli/features/duplication/services/duplication-detection-service.d.ts.map +1 -0
  182. package/dist/cli/features/duplication/services/duplication-detection-service.js +316 -0
  183. package/dist/cli/features/duplication/services/duplication-detection-service.js.map +1 -0
  184. package/dist/cli/features/duplication/services/file-analysis-service.d.ts +24 -0
  185. package/dist/cli/features/duplication/services/file-analysis-service.d.ts.map +1 -0
  186. package/dist/cli/features/duplication/services/file-analysis-service.js +340 -0
  187. package/dist/cli/features/duplication/services/file-analysis-service.js.map +1 -0
  188. package/dist/cli/features/duplication/services/refactoring-advisor-service.d.ts +33 -0
  189. package/dist/cli/features/duplication/services/refactoring-advisor-service.d.ts.map +1 -0
  190. package/dist/cli/features/duplication/services/refactoring-advisor-service.js +378 -0
  191. package/dist/cli/features/duplication/services/refactoring-advisor-service.js.map +1 -0
  192. package/dist/cli/features/duplication/services/statistics-service.d.ts +24 -0
  193. package/dist/cli/features/duplication/services/statistics-service.d.ts.map +1 -0
  194. package/dist/cli/features/duplication/services/statistics-service.js +285 -0
  195. package/dist/cli/features/duplication/services/statistics-service.js.map +1 -0
  196. package/dist/cli/features/semantic-graph/semantic-graph-tool.d.ts +38 -0
  197. package/dist/cli/features/semantic-graph/semantic-graph-tool.d.ts.map +1 -0
  198. package/dist/cli/features/semantic-graph/semantic-graph-tool.js +340 -0
  199. package/dist/cli/features/semantic-graph/semantic-graph-tool.js.map +1 -0
  200. package/dist/cli/features/solid-principles/analyzer.d.ts +40 -0
  201. package/dist/cli/features/solid-principles/analyzer.d.ts.map +1 -0
  202. package/dist/cli/features/solid-principles/analyzer.js +163 -0
  203. package/dist/cli/features/solid-principles/analyzer.js.map +1 -0
  204. package/dist/cli/features/tree-navigation/navigator.d.ts +23 -0
  205. package/dist/cli/features/tree-navigation/navigator.d.ts.map +1 -0
  206. package/dist/cli/features/tree-navigation/navigator.js +94 -0
  207. package/dist/cli/features/tree-navigation/navigator.js.map +1 -0
  208. package/dist/cli/git/change-detector.d.ts +61 -0
  209. package/dist/cli/git/change-detector.d.ts.map +1 -0
  210. package/dist/cli/git/change-detector.js +380 -0
  211. package/dist/cli/git/change-detector.js.map +1 -0
  212. package/dist/cli/git/git-commit-utils.d.ts +12 -0
  213. package/dist/cli/git/git-commit-utils.d.ts.map +1 -0
  214. package/dist/cli/git/git-commit-utils.js +210 -0
  215. package/dist/cli/git/git-commit-utils.js.map +1 -0
  216. package/dist/cli/git/git-database-utils.d.ts +10 -0
  217. package/dist/cli/git/git-database-utils.d.ts.map +1 -0
  218. package/dist/cli/git/git-database-utils.js +105 -0
  219. package/dist/cli/git/git-database-utils.js.map +1 -0
  220. package/dist/cli/git/git-integration.d.ts +53 -0
  221. package/dist/cli/git/git-integration.d.ts.map +1 -0
  222. package/dist/cli/git/git-integration.js +152 -0
  223. package/dist/cli/git/git-integration.js.map +1 -0
  224. package/dist/cli/git/in-memory-git-store.d.ts +10 -0
  225. package/dist/cli/git/in-memory-git-store.d.ts.map +1 -0
  226. package/dist/cli/git/in-memory-git-store.js +35 -0
  227. package/dist/cli/git/in-memory-git-store.js.map +1 -0
  228. package/dist/cli/git/interfaces.d.ts +82 -0
  229. package/dist/cli/git/interfaces.d.ts.map +1 -0
  230. package/dist/cli/git/interfaces.js +7 -0
  231. package/dist/cli/git/interfaces.js.map +1 -0
  232. package/dist/cli/git/services/git-analysis-service.d.ts +21 -0
  233. package/dist/cli/git/services/git-analysis-service.d.ts.map +1 -0
  234. package/dist/cli/git/services/git-analysis-service.js +169 -0
  235. package/dist/cli/git/services/git-analysis-service.js.map +1 -0
  236. package/dist/cli/git/services/git-autocommit-service.d.ts +19 -0
  237. package/dist/cli/git/services/git-autocommit-service.d.ts.map +1 -0
  238. package/dist/cli/git/services/git-autocommit-service.js +205 -0
  239. package/dist/cli/git/services/git-autocommit-service.js.map +1 -0
  240. package/dist/cli/git/services/git-database-service.d.ts +23 -0
  241. package/dist/cli/git/services/git-database-service.d.ts.map +1 -0
  242. package/dist/cli/git/services/git-database-service.js +255 -0
  243. package/dist/cli/git/services/git-database-service.js.map +1 -0
  244. package/dist/cli/git/services/git-operations-service.d.ts +22 -0
  245. package/dist/cli/git/services/git-operations-service.d.ts.map +1 -0
  246. package/dist/cli/git/services/git-operations-service.js +237 -0
  247. package/dist/cli/git/services/git-operations-service.js.map +1 -0
  248. package/dist/cli/integration/context-builder.d.ts +8 -0
  249. package/dist/cli/integration/context-builder.d.ts.map +1 -0
  250. package/dist/cli/integration/context-builder.js +103 -0
  251. package/dist/cli/integration/context-builder.js.map +1 -0
  252. package/dist/cli/integration/knowledge-base-updater.d.ts +12 -0
  253. package/dist/cli/integration/knowledge-base-updater.d.ts.map +1 -0
  254. package/dist/cli/integration/knowledge-base-updater.js +156 -0
  255. package/dist/cli/integration/knowledge-base-updater.js.map +1 -0
  256. package/dist/cli/integration/result-improver.d.ts +7 -0
  257. package/dist/cli/integration/result-improver.d.ts.map +1 -0
  258. package/dist/cli/integration/result-improver.js +26 -0
  259. package/dist/cli/integration/result-improver.js.map +1 -0
  260. package/dist/cli/integration/result-integrator.d.ts +7 -0
  261. package/dist/cli/integration/result-integrator.d.ts.map +1 -0
  262. package/dist/cli/integration/result-integrator.js +31 -0
  263. package/dist/cli/integration/result-integrator.js.map +1 -0
  264. package/dist/cli/integration/task-decomposer.d.ts +10 -0
  265. package/dist/cli/integration/task-decomposer.d.ts.map +1 -0
  266. package/dist/cli/integration/task-decomposer.js +32 -0
  267. package/dist/cli/integration/task-decomposer.js.map +1 -0
  268. package/dist/cli/integration/task-executor.d.ts +12 -0
  269. package/dist/cli/integration/task-executor.d.ts.map +1 -0
  270. package/dist/cli/integration/task-executor.js +76 -0
  271. package/dist/cli/integration/task-executor.js.map +1 -0
  272. package/dist/cli/knowledge/analyzers/interfaces.d.ts +55 -0
  273. package/dist/cli/knowledge/analyzers/interfaces.d.ts.map +1 -0
  274. package/dist/cli/knowledge/analyzers/interfaces.js +8 -0
  275. package/dist/cli/knowledge/analyzers/interfaces.js.map +1 -0
  276. package/dist/cli/knowledge/analyzers/semantic-analyzer.d.ts +27 -0
  277. package/dist/cli/knowledge/analyzers/semantic-analyzer.d.ts.map +1 -0
  278. package/dist/cli/knowledge/analyzers/semantic-analyzer.js +227 -0
  279. package/dist/cli/knowledge/analyzers/semantic-analyzer.js.map +1 -0
  280. package/dist/cli/knowledge/analyzers/services/ast-analysis-service.d.ts +23 -0
  281. package/dist/cli/knowledge/analyzers/services/ast-analysis-service.d.ts.map +1 -0
  282. package/dist/cli/knowledge/analyzers/services/ast-analysis-service.js +137 -0
  283. package/dist/cli/knowledge/analyzers/services/ast-analysis-service.js.map +1 -0
  284. package/dist/cli/knowledge/analyzers/services/file-discovery-service.d.ts +15 -0
  285. package/dist/cli/knowledge/analyzers/services/file-discovery-service.d.ts.map +1 -0
  286. package/dist/cli/knowledge/analyzers/services/file-discovery-service.js +110 -0
  287. package/dist/cli/knowledge/analyzers/services/file-discovery-service.js.map +1 -0
  288. package/dist/cli/knowledge/analyzers/services/pattern-detection-service.d.ts +21 -0
  289. package/dist/cli/knowledge/analyzers/services/pattern-detection-service.d.ts.map +1 -0
  290. package/dist/cli/knowledge/analyzers/services/pattern-detection-service.js +190 -0
  291. package/dist/cli/knowledge/analyzers/services/pattern-detection-service.js.map +1 -0
  292. package/dist/cli/knowledge/graph/knowledge-graph.d.ts +109 -0
  293. package/dist/cli/knowledge/graph/knowledge-graph.d.ts.map +1 -0
  294. package/dist/cli/knowledge/graph/knowledge-graph.js +281 -0
  295. package/dist/cli/knowledge/graph/knowledge-graph.js.map +1 -0
  296. package/dist/cli/knowledge/graph/managers/graph-mutation-manager.d.ts +69 -0
  297. package/dist/cli/knowledge/graph/managers/graph-mutation-manager.d.ts.map +1 -0
  298. package/dist/cli/knowledge/graph/managers/graph-mutation-manager.js +445 -0
  299. package/dist/cli/knowledge/graph/managers/graph-mutation-manager.js.map +1 -0
  300. package/dist/cli/knowledge/graph/managers/graph-query-manager.d.ts +86 -0
  301. package/dist/cli/knowledge/graph/managers/graph-query-manager.d.ts.map +1 -0
  302. package/dist/cli/knowledge/graph/managers/graph-query-manager.js +306 -0
  303. package/dist/cli/knowledge/graph/managers/graph-query-manager.js.map +1 -0
  304. package/dist/cli/knowledge/graph/managers/graph-state-manager.d.ts +70 -0
  305. package/dist/cli/knowledge/graph/managers/graph-state-manager.d.ts.map +1 -0
  306. package/dist/cli/knowledge/graph/managers/graph-state-manager.js +249 -0
  307. package/dist/cli/knowledge/graph/managers/graph-state-manager.js.map +1 -0
  308. package/dist/cli/knowledge/graph/managers/graph-traversal-manager.d.ts +72 -0
  309. package/dist/cli/knowledge/graph/managers/graph-traversal-manager.d.ts.map +1 -0
  310. package/dist/cli/knowledge/graph/managers/graph-traversal-manager.js +414 -0
  311. package/dist/cli/knowledge/graph/managers/graph-traversal-manager.js.map +1 -0
  312. package/dist/cli/knowledge/graph/services/architectural-insight-detector.d.ts +43 -0
  313. package/dist/cli/knowledge/graph/services/architectural-insight-detector.d.ts.map +1 -0
  314. package/dist/cli/knowledge/graph/services/architectural-insight-detector.js +536 -0
  315. package/dist/cli/knowledge/graph/services/architectural-insight-detector.js.map +1 -0
  316. package/dist/cli/knowledge/graph/services/graph-analyzer.d.ts +24 -0
  317. package/dist/cli/knowledge/graph/services/graph-analyzer.d.ts.map +1 -0
  318. package/dist/cli/knowledge/graph/services/graph-analyzer.js +262 -0
  319. package/dist/cli/knowledge/graph/services/graph-analyzer.js.map +1 -0
  320. package/dist/cli/knowledge/graph/services/graph-database-service.d.ts +61 -0
  321. package/dist/cli/knowledge/graph/services/graph-database-service.d.ts.map +1 -0
  322. package/dist/cli/knowledge/graph/services/graph-database-service.js +593 -0
  323. package/dist/cli/knowledge/graph/services/graph-database-service.js.map +1 -0
  324. package/dist/cli/knowledge/graph/services/graph-utility-service.d.ts +41 -0
  325. package/dist/cli/knowledge/graph/services/graph-utility-service.d.ts.map +1 -0
  326. package/dist/cli/knowledge/graph/services/graph-utility-service.js +208 -0
  327. package/dist/cli/knowledge/graph/services/graph-utility-service.js.map +1 -0
  328. package/dist/cli/knowledge/graph/types.d.ts +272 -0
  329. package/dist/cli/knowledge/graph/types.d.ts.map +1 -0
  330. package/dist/cli/knowledge/graph/types.js +127 -0
  331. package/dist/cli/knowledge/graph/types.js.map +1 -0
  332. package/dist/cli/knowledge/repository/knowledge-repository.d.ts +121 -0
  333. package/dist/cli/knowledge/repository/knowledge-repository.d.ts.map +1 -0
  334. package/dist/cli/knowledge/repository/knowledge-repository.js +642 -0
  335. package/dist/cli/knowledge/repository/knowledge-repository.js.map +1 -0
  336. package/dist/cli/managers/claude-code-forwarder.d.ts +68 -0
  337. package/dist/cli/managers/claude-code-forwarder.d.ts.map +1 -0
  338. package/dist/cli/managers/claude-code-forwarder.js +214 -0
  339. package/dist/cli/managers/claude-code-forwarder.js.map +1 -0
  340. package/dist/cli/managers/command-processor.d.ts +75 -0
  341. package/dist/cli/managers/command-processor.d.ts.map +1 -0
  342. package/dist/cli/managers/command-processor.js +117 -0
  343. package/dist/cli/managers/command-processor.js.map +1 -0
  344. package/dist/cli/managers/database-manager.d.ts +147 -0
  345. package/dist/cli/managers/database-manager.d.ts.map +1 -0
  346. package/dist/cli/managers/database-manager.js +218 -0
  347. package/dist/cli/managers/database-manager.js.map +1 -0
  348. package/dist/cli/managers/interrupt-manager.d.ts +75 -0
  349. package/dist/cli/managers/interrupt-manager.d.ts.map +1 -0
  350. package/dist/cli/managers/interrupt-manager.js +197 -0
  351. package/dist/cli/managers/interrupt-manager.js.map +1 -0
  352. package/dist/cli/managers/project-manager.d.ts +82 -0
  353. package/dist/cli/managers/project-manager.d.ts.map +1 -0
  354. package/dist/cli/managers/project-manager.js +257 -0
  355. package/dist/cli/managers/project-manager.js.map +1 -0
  356. package/dist/cli/managers/user-interface.d.ts +74 -0
  357. package/dist/cli/managers/user-interface.d.ts.map +1 -0
  358. package/dist/cli/managers/user-interface.js +529 -0
  359. package/dist/cli/managers/user-interface.js.map +1 -0
  360. package/dist/cli/managers/workflow-orchestration-adapter.d.ts +24 -0
  361. package/dist/cli/managers/workflow-orchestration-adapter.d.ts.map +1 -0
  362. package/dist/cli/managers/workflow-orchestration-adapter.js +136 -0
  363. package/dist/cli/managers/workflow-orchestration-adapter.js.map +1 -0
  364. package/dist/cli/orchestration/cli-orchestrator.d.ts +92 -0
  365. package/dist/cli/orchestration/cli-orchestrator.d.ts.map +1 -0
  366. package/dist/cli/orchestration/cli-orchestrator.js +195 -0
  367. package/dist/cli/orchestration/cli-orchestrator.js.map +1 -0
  368. package/dist/cli/quality/compilation-checker.d.ts +13 -0
  369. package/dist/cli/quality/compilation-checker.d.ts.map +1 -0
  370. package/dist/cli/quality/compilation-checker.js +78 -0
  371. package/dist/cli/quality/compilation-checker.js.map +1 -0
  372. package/dist/cli/quality/interfaces/index.d.ts +104 -0
  373. package/dist/cli/quality/interfaces/index.d.ts.map +1 -0
  374. package/dist/cli/quality/interfaces/index.js +7 -0
  375. package/dist/cli/quality/interfaces/index.js.map +1 -0
  376. package/dist/cli/quality/interfaces.d.ts +79 -0
  377. package/dist/cli/quality/interfaces.d.ts.map +1 -0
  378. package/dist/cli/quality/interfaces.js +7 -0
  379. package/dist/cli/quality/interfaces.js.map +1 -0
  380. package/dist/cli/quality/quality-orchestrator.d.ts +19 -0
  381. package/dist/cli/quality/quality-orchestrator.d.ts.map +1 -0
  382. package/dist/cli/quality/quality-orchestrator.js +109 -0
  383. package/dist/cli/quality/quality-orchestrator.js.map +1 -0
  384. package/dist/cli/quality/services/architecture-service.d.ts +17 -0
  385. package/dist/cli/quality/services/architecture-service.d.ts.map +1 -0
  386. package/dist/cli/quality/services/architecture-service.js +267 -0
  387. package/dist/cli/quality/services/architecture-service.js.map +1 -0
  388. package/dist/cli/quality/services/compilation-service.d.ts +16 -0
  389. package/dist/cli/quality/services/compilation-service.d.ts.map +1 -0
  390. package/dist/cli/quality/services/compilation-service.js +177 -0
  391. package/dist/cli/quality/services/compilation-service.js.map +1 -0
  392. package/dist/cli/quality/services/quality-score-calculator.d.ts +12 -0
  393. package/dist/cli/quality/services/quality-score-calculator.d.ts.map +1 -0
  394. package/dist/cli/quality/services/quality-score-calculator.js +120 -0
  395. package/dist/cli/quality/services/quality-score-calculator.js.map +1 -0
  396. package/dist/cli/quality/services/security-service.d.ts +15 -0
  397. package/dist/cli/quality/services/security-service.d.ts.map +1 -0
  398. package/dist/cli/quality/services/security-service.js +214 -0
  399. package/dist/cli/quality/services/security-service.js.map +1 -0
  400. package/dist/cli/quality/services/testing-service.d.ts +19 -0
  401. package/dist/cli/quality/services/testing-service.d.ts.map +1 -0
  402. package/dist/cli/quality/services/testing-service.js +251 -0
  403. package/dist/cli/quality/services/testing-service.js.map +1 -0
  404. package/dist/cli/quality/test-runner.d.ts +15 -0
  405. package/dist/cli/quality/test-runner.d.ts.map +1 -0
  406. package/dist/cli/quality/test-runner.js +148 -0
  407. package/dist/cli/quality/test-runner.js.map +1 -0
  408. package/dist/cli/quality-checker.d.ts +41 -0
  409. package/dist/cli/quality-checker.d.ts.map +1 -0
  410. package/dist/cli/quality-checker.js +216 -0
  411. package/dist/cli/quality-checker.js.map +1 -0
  412. package/dist/cli/scripts/start-tool-api.d.ts +7 -0
  413. package/dist/cli/scripts/start-tool-api.d.ts.map +1 -0
  414. package/dist/cli/scripts/start-tool-api.js +44 -0
  415. package/dist/cli/scripts/start-tool-api.js.map +1 -0
  416. package/dist/cli/services/analysis/coding-patterns-analyzer.d.ts +78 -0
  417. package/dist/cli/services/analysis/coding-patterns-analyzer.d.ts.map +1 -0
  418. package/dist/cli/services/analysis/coding-patterns-analyzer.js +588 -0
  419. package/dist/cli/services/analysis/coding-patterns-analyzer.js.map +1 -0
  420. package/dist/cli/services/analysis/coding-standards-generator.d.ts +66 -0
  421. package/dist/cli/services/analysis/coding-standards-generator.d.ts.map +1 -0
  422. package/dist/cli/services/analysis/coding-standards-generator.js +223 -0
  423. package/dist/cli/services/analysis/coding-standards-generator.js.map +1 -0
  424. package/dist/cli/services/analysis/deduplication/code-consolidation-handler.d.ts +70 -0
  425. package/dist/cli/services/analysis/deduplication/code-consolidation-handler.d.ts.map +1 -0
  426. package/dist/cli/services/analysis/deduplication/code-consolidation-handler.js +326 -0
  427. package/dist/cli/services/analysis/deduplication/code-consolidation-handler.js.map +1 -0
  428. package/dist/cli/services/analysis/deduplication/dedup-detector.d.ts +77 -0
  429. package/dist/cli/services/analysis/deduplication/dedup-detector.d.ts.map +1 -0
  430. package/dist/cli/services/analysis/deduplication/dedup-detector.js +302 -0
  431. package/dist/cli/services/analysis/deduplication/dedup-detector.js.map +1 -0
  432. package/dist/cli/services/analysis/deduplication/deduplication-service.d.ts +107 -0
  433. package/dist/cli/services/analysis/deduplication/deduplication-service.d.ts.map +1 -0
  434. package/dist/cli/services/analysis/deduplication/deduplication-service.js +380 -0
  435. package/dist/cli/services/analysis/deduplication/deduplication-service.js.map +1 -0
  436. package/dist/cli/services/analysis/deduplication/duplicate-code-detector.d.ts +100 -0
  437. package/dist/cli/services/analysis/deduplication/duplicate-code-detector.d.ts.map +1 -0
  438. package/dist/cli/services/analysis/deduplication/duplicate-code-detector.js +406 -0
  439. package/dist/cli/services/analysis/deduplication/duplicate-code-detector.js.map +1 -0
  440. package/dist/cli/services/analysis/deduplication/hash-change-detector.d.ts +57 -0
  441. package/dist/cli/services/analysis/deduplication/hash-change-detector.d.ts.map +1 -0
  442. package/dist/cli/services/analysis/deduplication/hash-change-detector.js +185 -0
  443. package/dist/cli/services/analysis/deduplication/hash-change-detector.js.map +1 -0
  444. package/dist/cli/services/analysis/solid/solid-analyzer-service.d.ts +87 -0
  445. package/dist/cli/services/analysis/solid/solid-analyzer-service.d.ts.map +1 -0
  446. package/dist/cli/services/analysis/solid/solid-analyzer-service.js +426 -0
  447. package/dist/cli/services/analysis/solid/solid-analyzer-service.js.map +1 -0
  448. package/dist/cli/services/analysis/user-intentions/assumption-detector.d.ts +76 -0
  449. package/dist/cli/services/analysis/user-intentions/assumption-detector.d.ts.map +1 -0
  450. package/dist/cli/services/analysis/user-intentions/assumption-detector.js +394 -0
  451. package/dist/cli/services/analysis/user-intentions/assumption-detector.js.map +1 -0
  452. package/dist/cli/services/analysis/user-intentions/intent-analyzer.d.ts +41 -0
  453. package/dist/cli/services/analysis/user-intentions/intent-analyzer.d.ts.map +1 -0
  454. package/dist/cli/services/analysis/user-intentions/intent-analyzer.js +257 -0
  455. package/dist/cli/services/analysis/user-intentions/intent-analyzer.js.map +1 -0
  456. package/dist/cli/services/analysis/user-intentions/intention-clarification-service.d.ts +73 -0
  457. package/dist/cli/services/analysis/user-intentions/intention-clarification-service.d.ts.map +1 -0
  458. package/dist/cli/services/analysis/user-intentions/intention-clarification-service.js +246 -0
  459. package/dist/cli/services/analysis/user-intentions/intention-clarification-service.js.map +1 -0
  460. package/dist/cli/services/analysis/user-intentions/llm-intention-detector.d.ts +64 -0
  461. package/dist/cli/services/analysis/user-intentions/llm-intention-detector.d.ts.map +1 -0
  462. package/dist/cli/services/analysis/user-intentions/llm-intention-detector.js +269 -0
  463. package/dist/cli/services/analysis/user-intentions/llm-intention-detector.js.map +1 -0
  464. package/dist/cli/services/analysis/user-intentions/user-clarification-service.d.ts +52 -0
  465. package/dist/cli/services/analysis/user-intentions/user-clarification-service.d.ts.map +1 -0
  466. package/dist/cli/services/analysis/user-intentions/user-clarification-service.js +239 -0
  467. package/dist/cli/services/analysis/user-intentions/user-clarification-service.js.map +1 -0
  468. package/dist/cli/services/claude/claude-code-executor.d.ts +37 -0
  469. package/dist/cli/services/claude/claude-code-executor.d.ts.map +1 -0
  470. package/dist/cli/services/claude/claude-code-executor.js +190 -0
  471. package/dist/cli/services/claude/claude-code-executor.js.map +1 -0
  472. package/dist/cli/services/data/code-parsing/file-parser.d.ts +27 -0
  473. package/dist/cli/services/data/code-parsing/file-parser.d.ts.map +1 -0
  474. package/dist/cli/services/data/code-parsing/file-parser.js +336 -0
  475. package/dist/cli/services/data/code-parsing/file-parser.js.map +1 -0
  476. package/dist/cli/services/data/code-parsing/interfaces/index.d.ts +102 -0
  477. package/dist/cli/services/data/code-parsing/interfaces/index.d.ts.map +1 -0
  478. package/dist/cli/services/data/code-parsing/interfaces/index.js +7 -0
  479. package/dist/cli/services/data/code-parsing/interfaces/index.js.map +1 -0
  480. package/dist/cli/services/data/code-parsing/interfaces.d.ts +77 -0
  481. package/dist/cli/services/data/code-parsing/interfaces.d.ts.map +1 -0
  482. package/dist/cli/services/data/code-parsing/interfaces.js +7 -0
  483. package/dist/cli/services/data/code-parsing/interfaces.js.map +1 -0
  484. package/dist/cli/services/data/code-parsing/relationship-analyzer.d.ts +13 -0
  485. package/dist/cli/services/data/code-parsing/relationship-analyzer.d.ts.map +1 -0
  486. package/dist/cli/services/data/code-parsing/relationship-analyzer.js +118 -0
  487. package/dist/cli/services/data/code-parsing/relationship-analyzer.js.map +1 -0
  488. package/dist/cli/services/data/code-parsing/services/file-parsing-service.d.ts +21 -0
  489. package/dist/cli/services/data/code-parsing/services/file-parsing-service.d.ts.map +1 -0
  490. package/dist/cli/services/data/code-parsing/services/file-parsing-service.js +394 -0
  491. package/dist/cli/services/data/code-parsing/services/file-parsing-service.js.map +1 -0
  492. package/dist/cli/services/data/code-parsing/services/graph-population-service.d.ts +21 -0
  493. package/dist/cli/services/data/code-parsing/services/graph-population-service.d.ts.map +1 -0
  494. package/dist/cli/services/data/code-parsing/services/graph-population-service.js +426 -0
  495. package/dist/cli/services/data/code-parsing/services/graph-population-service.js.map +1 -0
  496. package/dist/cli/services/data/code-parsing/services/project-structure-service.d.ts +33 -0
  497. package/dist/cli/services/data/code-parsing/services/project-structure-service.d.ts.map +1 -0
  498. package/dist/cli/services/data/code-parsing/services/project-structure-service.js +310 -0
  499. package/dist/cli/services/data/code-parsing/services/project-structure-service.js.map +1 -0
  500. package/dist/cli/services/data/code-relationship-parser.d.ts +58 -0
  501. package/dist/cli/services/data/code-relationship-parser.d.ts.map +1 -0
  502. package/dist/cli/services/data/code-relationship-parser.js +204 -0
  503. package/dist/cli/services/data/code-relationship-parser.js.map +1 -0
  504. package/dist/cli/services/data/content-processing/content-processor.d.ts +141 -0
  505. package/dist/cli/services/data/content-processing/content-processor.d.ts.map +1 -0
  506. package/dist/cli/services/data/content-processing/content-processor.js +661 -0
  507. package/dist/cli/services/data/content-processing/content-processor.js.map +1 -0
  508. package/dist/cli/services/data/database/postgresql-initializer.d.ts +67 -0
  509. package/dist/cli/services/data/database/postgresql-initializer.d.ts.map +1 -0
  510. package/dist/cli/services/data/database/postgresql-initializer.js +612 -0
  511. package/dist/cli/services/data/database/postgresql-initializer.js.map +1 -0
  512. package/dist/cli/services/data/documentation-service.d.ts +123 -0
  513. package/dist/cli/services/data/documentation-service.d.ts.map +1 -0
  514. package/dist/cli/services/data/documentation-service.js +531 -0
  515. package/dist/cli/services/data/documentation-service.js.map +1 -0
  516. package/dist/cli/services/data/embedding/embedding-service.d.ts +67 -0
  517. package/dist/cli/services/data/embedding/embedding-service.d.ts.map +1 -0
  518. package/dist/cli/services/data/embedding/embedding-service.js +258 -0
  519. package/dist/cli/services/data/embedding/embedding-service.js.map +1 -0
  520. package/dist/cli/services/data/embedding/interfaces.d.ts +104 -0
  521. package/dist/cli/services/data/embedding/interfaces.d.ts.map +1 -0
  522. package/dist/cli/services/data/embedding/interfaces.js +8 -0
  523. package/dist/cli/services/data/embedding/interfaces.js.map +1 -0
  524. package/dist/cli/services/data/embedding/providers/local-provider.d.ts +15 -0
  525. package/dist/cli/services/data/embedding/providers/local-provider.d.ts.map +1 -0
  526. package/dist/cli/services/data/embedding/providers/local-provider.js +99 -0
  527. package/dist/cli/services/data/embedding/providers/local-provider.js.map +1 -0
  528. package/dist/cli/services/data/embedding/providers/openai-provider.d.ts +16 -0
  529. package/dist/cli/services/data/embedding/providers/openai-provider.d.ts.map +1 -0
  530. package/dist/cli/services/data/embedding/providers/openai-provider.js +70 -0
  531. package/dist/cli/services/data/embedding/providers/openai-provider.js.map +1 -0
  532. package/dist/cli/services/data/embedding/providers/xenova-provider.d.ts +17 -0
  533. package/dist/cli/services/data/embedding/providers/xenova-provider.d.ts.map +1 -0
  534. package/dist/cli/services/data/embedding/providers/xenova-provider.js +95 -0
  535. package/dist/cli/services/data/embedding/providers/xenova-provider.js.map +1 -0
  536. package/dist/cli/services/data/embedding/services/file-processor.d.ts +20 -0
  537. package/dist/cli/services/data/embedding/services/file-processor.d.ts.map +1 -0
  538. package/dist/cli/services/data/embedding/services/file-processor.js +306 -0
  539. package/dist/cli/services/data/embedding/services/file-processor.js.map +1 -0
  540. package/dist/cli/services/data/semantic-graph/builders/node-builder.d.ts +54 -0
  541. package/dist/cli/services/data/semantic-graph/builders/node-builder.d.ts.map +1 -0
  542. package/dist/cli/services/data/semantic-graph/builders/node-builder.js +209 -0
  543. package/dist/cli/services/data/semantic-graph/builders/node-builder.js.map +1 -0
  544. package/dist/cli/services/data/semantic-graph/builders/relationship-builder.d.ts +61 -0
  545. package/dist/cli/services/data/semantic-graph/builders/relationship-builder.d.ts.map +1 -0
  546. package/dist/cli/services/data/semantic-graph/builders/relationship-builder.js +316 -0
  547. package/dist/cli/services/data/semantic-graph/builders/relationship-builder.js.map +1 -0
  548. package/dist/cli/services/data/semantic-graph/claude-code-proxy.d.ts +43 -0
  549. package/dist/cli/services/data/semantic-graph/claude-code-proxy.d.ts.map +1 -0
  550. package/dist/cli/services/data/semantic-graph/claude-code-proxy.js +296 -0
  551. package/dist/cli/services/data/semantic-graph/claude-code-proxy.js.map +1 -0
  552. package/dist/cli/services/data/semantic-graph/code-relationship-orchestrator.d.ts +63 -0
  553. package/dist/cli/services/data/semantic-graph/code-relationship-orchestrator.d.ts.map +1 -0
  554. package/dist/cli/services/data/semantic-graph/code-relationship-orchestrator.js +340 -0
  555. package/dist/cli/services/data/semantic-graph/code-relationship-orchestrator.js.map +1 -0
  556. package/dist/cli/services/data/semantic-graph/interfaces/index.d.ts +134 -0
  557. package/dist/cli/services/data/semantic-graph/interfaces/index.d.ts.map +1 -0
  558. package/dist/cli/services/data/semantic-graph/interfaces/index.js +7 -0
  559. package/dist/cli/services/data/semantic-graph/interfaces/index.js.map +1 -0
  560. package/dist/cli/services/data/semantic-graph/language-detector.d.ts +60 -0
  561. package/dist/cli/services/data/semantic-graph/language-detector.d.ts.map +1 -0
  562. package/dist/cli/services/data/semantic-graph/language-detector.js +345 -0
  563. package/dist/cli/services/data/semantic-graph/language-detector.js.map +1 -0
  564. package/dist/cli/services/data/semantic-graph/neo4j-graph-storage.d.ts +68 -0
  565. package/dist/cli/services/data/semantic-graph/neo4j-graph-storage.d.ts.map +1 -0
  566. package/dist/cli/services/data/semantic-graph/neo4j-graph-storage.js +298 -0
  567. package/dist/cli/services/data/semantic-graph/neo4j-graph-storage.js.map +1 -0
  568. package/dist/cli/services/data/semantic-graph/parsers/csharp-parser.d.ts +19 -0
  569. package/dist/cli/services/data/semantic-graph/parsers/csharp-parser.d.ts.map +1 -0
  570. package/dist/cli/services/data/semantic-graph/parsers/csharp-parser.js +220 -0
  571. package/dist/cli/services/data/semantic-graph/parsers/csharp-parser.js.map +1 -0
  572. package/dist/cli/services/data/semantic-graph/parsers/generic-parser.d.ts +20 -0
  573. package/dist/cli/services/data/semantic-graph/parsers/generic-parser.d.ts.map +1 -0
  574. package/dist/cli/services/data/semantic-graph/parsers/generic-parser.js +193 -0
  575. package/dist/cli/services/data/semantic-graph/parsers/generic-parser.js.map +1 -0
  576. package/dist/cli/services/data/semantic-graph/parsers/go-parser.d.ts +20 -0
  577. package/dist/cli/services/data/semantic-graph/parsers/go-parser.d.ts.map +1 -0
  578. package/dist/cli/services/data/semantic-graph/parsers/go-parser.js +192 -0
  579. package/dist/cli/services/data/semantic-graph/parsers/go-parser.js.map +1 -0
  580. package/dist/cli/services/data/semantic-graph/parsers/ilanguage-parser.d.ts +71 -0
  581. package/dist/cli/services/data/semantic-graph/parsers/ilanguage-parser.d.ts.map +1 -0
  582. package/dist/cli/services/data/semantic-graph/parsers/ilanguage-parser.js +35 -0
  583. package/dist/cli/services/data/semantic-graph/parsers/ilanguage-parser.js.map +1 -0
  584. package/dist/cli/services/data/semantic-graph/parsers/java-parser.d.ts +18 -0
  585. package/dist/cli/services/data/semantic-graph/parsers/java-parser.d.ts.map +1 -0
  586. package/dist/cli/services/data/semantic-graph/parsers/java-parser.js +164 -0
  587. package/dist/cli/services/data/semantic-graph/parsers/java-parser.js.map +1 -0
  588. package/dist/cli/services/data/semantic-graph/parsers/python-parser.d.ts +15 -0
  589. package/dist/cli/services/data/semantic-graph/parsers/python-parser.d.ts.map +1 -0
  590. package/dist/cli/services/data/semantic-graph/parsers/python-parser.js +172 -0
  591. package/dist/cli/services/data/semantic-graph/parsers/python-parser.js.map +1 -0
  592. package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-java-parser.d.ts +26 -0
  593. package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-java-parser.d.ts.map +1 -0
  594. package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-java-parser.js +312 -0
  595. package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-java-parser.js.map +1 -0
  596. package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-python-parser.d.ts +29 -0
  597. package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-python-parser.d.ts.map +1 -0
  598. package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-python-parser.js +346 -0
  599. package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-python-parser.js.map +1 -0
  600. package/dist/cli/services/data/semantic-graph/parsers/typescript-parser.d.ts +19 -0
  601. package/dist/cli/services/data/semantic-graph/parsers/typescript-parser.d.ts.map +1 -0
  602. package/dist/cli/services/data/semantic-graph/parsers/typescript-parser.js +258 -0
  603. package/dist/cli/services/data/semantic-graph/parsers/typescript-parser.js.map +1 -0
  604. package/dist/cli/services/data/semantic-graph/processors/index.d.ts +24 -0
  605. package/dist/cli/services/data/semantic-graph/processors/index.d.ts.map +1 -0
  606. package/dist/cli/services/data/semantic-graph/processors/index.js +153 -0
  607. package/dist/cli/services/data/semantic-graph/processors/index.js.map +1 -0
  608. package/dist/cli/services/data/semantic-graph/semantic-graph.d.ts +75 -0
  609. package/dist/cli/services/data/semantic-graph/semantic-graph.d.ts.map +1 -0
  610. package/dist/cli/services/data/semantic-graph/semantic-graph.js +191 -0
  611. package/dist/cli/services/data/semantic-graph/semantic-graph.js.map +1 -0
  612. package/dist/cli/services/data/semantic-graph/services/file-processing-service.d.ts +29 -0
  613. package/dist/cli/services/data/semantic-graph/services/file-processing-service.d.ts.map +1 -0
  614. package/dist/cli/services/data/semantic-graph/services/file-processing-service.js +175 -0
  615. package/dist/cli/services/data/semantic-graph/services/file-processing-service.js.map +1 -0
  616. package/dist/cli/services/data/semantic-graph/services/graph-query-service.d.ts +34 -0
  617. package/dist/cli/services/data/semantic-graph/services/graph-query-service.d.ts.map +1 -0
  618. package/dist/cli/services/data/semantic-graph/services/graph-query-service.js +285 -0
  619. package/dist/cli/services/data/semantic-graph/services/graph-query-service.js.map +1 -0
  620. package/dist/cli/services/data/semantic-graph/services/graph-storage-service.d.ts +35 -0
  621. package/dist/cli/services/data/semantic-graph/services/graph-storage-service.d.ts.map +1 -0
  622. package/dist/cli/services/data/semantic-graph/services/graph-storage-service.js +321 -0
  623. package/dist/cli/services/data/semantic-graph/services/graph-storage-service.js.map +1 -0
  624. package/dist/cli/services/data/semantic-graph/tree-sitter-semantic-builder.d.ts +85 -0
  625. package/dist/cli/services/data/semantic-graph/tree-sitter-semantic-builder.d.ts.map +1 -0
  626. package/dist/cli/services/data/semantic-graph/tree-sitter-semantic-builder.js +375 -0
  627. package/dist/cli/services/data/semantic-graph/tree-sitter-semantic-builder.js.map +1 -0
  628. package/dist/cli/services/integration/codemind-instruction-service.d.ts +76 -0
  629. package/dist/cli/services/integration/codemind-instruction-service.d.ts.map +1 -0
  630. package/dist/cli/services/integration/codemind-instruction-service.js +331 -0
  631. package/dist/cli/services/integration/codemind-instruction-service.js.map +1 -0
  632. package/dist/cli/services/integration/codeseeker-instruction-service.d.ts +82 -0
  633. package/dist/cli/services/integration/codeseeker-instruction-service.d.ts.map +1 -0
  634. package/dist/cli/services/integration/codeseeker-instruction-service.js +372 -0
  635. package/dist/cli/services/integration/codeseeker-instruction-service.js.map +1 -0
  636. package/dist/cli/services/integration/workflow-integration/claude-context-enhancer.d.ts +135 -0
  637. package/dist/cli/services/integration/workflow-integration/claude-context-enhancer.d.ts.map +1 -0
  638. package/dist/cli/services/integration/workflow-integration/claude-context-enhancer.js +298 -0
  639. package/dist/cli/services/integration/workflow-integration/claude-context-enhancer.js.map +1 -0
  640. package/dist/cli/services/llm/claude-llm-executor.d.ts +84 -0
  641. package/dist/cli/services/llm/claude-llm-executor.d.ts.map +1 -0
  642. package/dist/cli/services/llm/claude-llm-executor.js +448 -0
  643. package/dist/cli/services/llm/claude-llm-executor.js.map +1 -0
  644. package/dist/cli/services/llm/index.d.ts +41 -0
  645. package/dist/cli/services/llm/index.d.ts.map +1 -0
  646. package/dist/cli/services/llm/index.js +53 -0
  647. package/dist/cli/services/llm/index.js.map +1 -0
  648. package/dist/cli/services/llm/interfaces/index.d.ts +211 -0
  649. package/dist/cli/services/llm/interfaces/index.d.ts.map +1 -0
  650. package/dist/cli/services/llm/interfaces/index.js +15 -0
  651. package/dist/cli/services/llm/interfaces/index.js.map +1 -0
  652. package/dist/cli/services/llm/llm-executor-registry.d.ts +118 -0
  653. package/dist/cli/services/llm/llm-executor-registry.d.ts.map +1 -0
  654. package/dist/cli/services/llm/llm-executor-registry.js +226 -0
  655. package/dist/cli/services/llm/llm-executor-registry.js.map +1 -0
  656. package/dist/cli/services/llm/mock-llm-executor.d.ts +118 -0
  657. package/dist/cli/services/llm/mock-llm-executor.d.ts.map +1 -0
  658. package/dist/cli/services/llm/mock-llm-executor.js +324 -0
  659. package/dist/cli/services/llm/mock-llm-executor.js.map +1 -0
  660. package/dist/cli/services/monitoring/file-scanning/configurable-exclusion-filter.d.ts +49 -0
  661. package/dist/cli/services/monitoring/file-scanning/configurable-exclusion-filter.d.ts.map +1 -0
  662. package/dist/cli/services/monitoring/file-scanning/configurable-exclusion-filter.js +172 -0
  663. package/dist/cli/services/monitoring/file-scanning/configurable-exclusion-filter.js.map +1 -0
  664. package/dist/cli/services/monitoring/file-scanning/directory-scanner.d.ts +12 -0
  665. package/dist/cli/services/monitoring/file-scanning/directory-scanner.d.ts.map +1 -0
  666. package/dist/cli/services/monitoring/file-scanning/directory-scanner.js +126 -0
  667. package/dist/cli/services/monitoring/file-scanning/directory-scanner.js.map +1 -0
  668. package/dist/cli/services/monitoring/file-scanning/file-scanner-interfaces.d.ts +33 -0
  669. package/dist/cli/services/monitoring/file-scanning/file-scanner-interfaces.d.ts.map +1 -0
  670. package/dist/cli/services/monitoring/file-scanning/file-scanner-interfaces.js +7 -0
  671. package/dist/cli/services/monitoring/file-scanning/file-scanner-interfaces.js.map +1 -0
  672. package/dist/cli/services/monitoring/file-scanning/file-type-detector.d.ts +17 -0
  673. package/dist/cli/services/monitoring/file-scanning/file-type-detector.d.ts.map +1 -0
  674. package/dist/cli/services/monitoring/file-scanning/file-type-detector.js +109 -0
  675. package/dist/cli/services/monitoring/file-scanning/file-type-detector.js.map +1 -0
  676. package/dist/cli/services/monitoring/file-scanning/index.d.ts +10 -0
  677. package/dist/cli/services/monitoring/file-scanning/index.d.ts.map +1 -0
  678. package/dist/cli/services/monitoring/file-scanning/index.js +34 -0
  679. package/dist/cli/services/monitoring/file-scanning/index.js.map +1 -0
  680. package/dist/cli/services/monitoring/file-scanning/project-file-scanner.d.ts +31 -0
  681. package/dist/cli/services/monitoring/file-scanning/project-file-scanner.d.ts.map +1 -0
  682. package/dist/cli/services/monitoring/file-scanning/project-file-scanner.js +52 -0
  683. package/dist/cli/services/monitoring/file-scanning/project-file-scanner.js.map +1 -0
  684. package/dist/cli/services/monitoring/file-watcher-service.d.ts +82 -0
  685. package/dist/cli/services/monitoring/file-watcher-service.d.ts.map +1 -0
  686. package/dist/cli/services/monitoring/file-watcher-service.js +314 -0
  687. package/dist/cli/services/monitoring/file-watcher-service.js.map +1 -0
  688. package/dist/cli/services/monitoring/initialization/initialization-status-tracker.d.ts +72 -0
  689. package/dist/cli/services/monitoring/initialization/initialization-status-tracker.d.ts.map +1 -0
  690. package/dist/cli/services/monitoring/initialization/initialization-status-tracker.js +242 -0
  691. package/dist/cli/services/monitoring/initialization/initialization-status-tracker.js.map +1 -0
  692. package/dist/cli/services/platform-detector.d.ts +41 -0
  693. package/dist/cli/services/platform-detector.d.ts.map +1 -0
  694. package/dist/cli/services/platform-detector.js +302 -0
  695. package/dist/cli/services/platform-detector.js.map +1 -0
  696. package/dist/cli/services/project/language-manager.d.ts +16 -0
  697. package/dist/cli/services/project/language-manager.d.ts.map +1 -0
  698. package/dist/cli/services/project/language-manager.js +149 -0
  699. package/dist/cli/services/project/language-manager.js.map +1 -0
  700. package/dist/cli/services/project/language-support-service.d.ts +63 -0
  701. package/dist/cli/services/project/language-support-service.d.ts.map +1 -0
  702. package/dist/cli/services/project/language-support-service.js +357 -0
  703. package/dist/cli/services/project/language-support-service.js.map +1 -0
  704. package/dist/cli/services/project/project-detector.d.ts +10 -0
  705. package/dist/cli/services/project/project-detector.d.ts.map +1 -0
  706. package/dist/cli/services/project/project-detector.js +92 -0
  707. package/dist/cli/services/project/project-detector.js.map +1 -0
  708. package/dist/cli/services/project/project-registry.d.ts +16 -0
  709. package/dist/cli/services/project/project-registry.d.ts.map +1 -0
  710. package/dist/cli/services/project/project-registry.js +103 -0
  711. package/dist/cli/services/project/project-registry.js.map +1 -0
  712. package/dist/cli/services/project-identity-service.d.ts +87 -0
  713. package/dist/cli/services/project-identity-service.d.ts.map +1 -0
  714. package/dist/cli/services/project-identity-service.js +332 -0
  715. package/dist/cli/services/project-identity-service.js.map +1 -0
  716. package/dist/cli/services/search/content-chunker.d.ts +23 -0
  717. package/dist/cli/services/search/content-chunker.d.ts.map +1 -0
  718. package/dist/cli/services/search/content-chunker.js +265 -0
  719. package/dist/cli/services/search/content-chunker.js.map +1 -0
  720. package/dist/cli/services/search/embedding-generator-adapter.d.ts +17 -0
  721. package/dist/cli/services/search/embedding-generator-adapter.d.ts.map +1 -0
  722. package/dist/cli/services/search/embedding-generator-adapter.js +61 -0
  723. package/dist/cli/services/search/embedding-generator-adapter.js.map +1 -0
  724. package/dist/cli/services/search/search-index-storage.d.ts +22 -0
  725. package/dist/cli/services/search/search-index-storage.d.ts.map +1 -0
  726. package/dist/cli/services/search/search-index-storage.js +154 -0
  727. package/dist/cli/services/search/search-index-storage.js.map +1 -0
  728. package/dist/cli/services/search/search-query-processor.d.ts +16 -0
  729. package/dist/cli/services/search/search-query-processor.d.ts.map +1 -0
  730. package/dist/cli/services/search/search-query-processor.js +125 -0
  731. package/dist/cli/services/search/search-query-processor.js.map +1 -0
  732. package/dist/cli/services/search/semantic-search.d.ts +86 -0
  733. package/dist/cli/services/search/semantic-search.d.ts.map +1 -0
  734. package/dist/cli/services/search/semantic-search.js +300 -0
  735. package/dist/cli/services/search/semantic-search.js.map +1 -0
  736. package/dist/cli/services/setup/container-detector.d.ts +15 -0
  737. package/dist/cli/services/setup/container-detector.d.ts.map +1 -0
  738. package/dist/cli/services/setup/container-detector.js +175 -0
  739. package/dist/cli/services/setup/container-detector.js.map +1 -0
  740. package/dist/cli/services/setup/container-manager.d.ts +14 -0
  741. package/dist/cli/services/setup/container-manager.d.ts.map +1 -0
  742. package/dist/cli/services/setup/container-manager.js +147 -0
  743. package/dist/cli/services/setup/container-manager.js.map +1 -0
  744. package/dist/cli/services/setup/database-initializer.d.ts +24 -0
  745. package/dist/cli/services/setup/database-initializer.d.ts.map +1 -0
  746. package/dist/cli/services/setup/database-initializer.js +291 -0
  747. package/dist/cli/services/setup/database-initializer.js.map +1 -0
  748. package/dist/cli/services/setup/interfaces/setup-interfaces.d.ts +72 -0
  749. package/dist/cli/services/setup/interfaces/setup-interfaces.d.ts.map +1 -0
  750. package/dist/cli/services/setup/interfaces/setup-interfaces.js +7 -0
  751. package/dist/cli/services/setup/interfaces/setup-interfaces.js.map +1 -0
  752. package/dist/cli/services/setup/prerequisite-checker.d.ts +10 -0
  753. package/dist/cli/services/setup/prerequisite-checker.d.ts.map +1 -0
  754. package/dist/cli/services/setup/prerequisite-checker.js +119 -0
  755. package/dist/cli/services/setup/prerequisite-checker.js.map +1 -0
  756. package/dist/cli/services/setup/setup-orchestrator.d.ts +27 -0
  757. package/dist/cli/services/setup/setup-orchestrator.d.ts.map +1 -0
  758. package/dist/cli/services/setup/setup-orchestrator.js +230 -0
  759. package/dist/cli/services/setup/setup-orchestrator.js.map +1 -0
  760. package/dist/cli/services/setup/setup-reporter.d.ts +14 -0
  761. package/dist/cli/services/setup/setup-reporter.d.ts.map +1 -0
  762. package/dist/cli/services/setup/setup-reporter.js +143 -0
  763. package/dist/cli/services/setup/setup-reporter.js.map +1 -0
  764. package/dist/cli/services/setup/setup-service-factory.d.ts +19 -0
  765. package/dist/cli/services/setup/setup-service-factory.d.ts.map +1 -0
  766. package/dist/cli/services/setup/setup-service-factory.js +43 -0
  767. package/dist/cli/services/setup/setup-service-factory.js.map +1 -0
  768. package/dist/cli/services/setup/unified-database-initializer.d.ts +61 -0
  769. package/dist/cli/services/setup/unified-database-initializer.d.ts.map +1 -0
  770. package/dist/cli/services/setup/unified-database-initializer.js +264 -0
  771. package/dist/cli/services/setup/unified-database-initializer.js.map +1 -0
  772. package/dist/cli/task-splitter.d.ts +59 -0
  773. package/dist/cli/task-splitter.d.ts.map +1 -0
  774. package/dist/cli/task-splitter.js +556 -0
  775. package/dist/cli/task-splitter.js.map +1 -0
  776. package/dist/cli/tools/context-optimizer-tool.d.ts +25 -0
  777. package/dist/cli/tools/context-optimizer-tool.d.ts.map +1 -0
  778. package/dist/cli/tools/context-optimizer-tool.js +169 -0
  779. package/dist/cli/tools/context-optimizer-tool.js.map +1 -0
  780. package/dist/cli/ui/theme.d.ts +148 -0
  781. package/dist/cli/ui/theme.d.ts.map +1 -0
  782. package/dist/cli/ui/theme.js +302 -0
  783. package/dist/cli/ui/theme.js.map +1 -0
  784. package/dist/cli/ui/welcome-display.d.ts +20 -0
  785. package/dist/cli/ui/welcome-display.d.ts.map +1 -0
  786. package/dist/cli/ui/welcome-display.js +50 -0
  787. package/dist/cli/ui/welcome-display.js.map +1 -0
  788. package/dist/cli/workflow/interfaces/index.d.ts +191 -0
  789. package/dist/cli/workflow/interfaces/index.d.ts.map +1 -0
  790. package/dist/cli/workflow/interfaces/index.js +7 -0
  791. package/dist/cli/workflow/interfaces/index.js.map +1 -0
  792. package/dist/cli/workflow/services/context-gathering-service.d.ts +23 -0
  793. package/dist/cli/workflow/services/context-gathering-service.d.ts.map +1 -0
  794. package/dist/cli/workflow/services/context-gathering-service.js +145 -0
  795. package/dist/cli/workflow/services/context-gathering-service.js.map +1 -0
  796. package/dist/cli/workflow/services/database-sync-service.d.ts +63 -0
  797. package/dist/cli/workflow/services/database-sync-service.d.ts.map +1 -0
  798. package/dist/cli/workflow/services/database-sync-service.js +250 -0
  799. package/dist/cli/workflow/services/database-sync-service.js.map +1 -0
  800. package/dist/cli/workflow/services/git-workflow-service.d.ts +29 -0
  801. package/dist/cli/workflow/services/git-workflow-service.d.ts.map +1 -0
  802. package/dist/cli/workflow/services/git-workflow-service.js +226 -0
  803. package/dist/cli/workflow/services/git-workflow-service.js.map +1 -0
  804. package/dist/cli/workflow/services/intent-analysis-service.d.ts +20 -0
  805. package/dist/cli/workflow/services/intent-analysis-service.d.ts.map +1 -0
  806. package/dist/cli/workflow/services/intent-analysis-service.js +137 -0
  807. package/dist/cli/workflow/services/intent-analysis-service.js.map +1 -0
  808. package/dist/cli/workflow/services/quality-assurance-service.d.ts +41 -0
  809. package/dist/cli/workflow/services/quality-assurance-service.d.ts.map +1 -0
  810. package/dist/cli/workflow/services/quality-assurance-service.js +341 -0
  811. package/dist/cli/workflow/services/quality-assurance-service.js.map +1 -0
  812. package/dist/cli/workflow/services/task-orchestration-service.d.ts +31 -0
  813. package/dist/cli/workflow/services/task-orchestration-service.d.ts.map +1 -0
  814. package/dist/cli/workflow/services/task-orchestration-service.js +254 -0
  815. package/dist/cli/workflow/services/task-orchestration-service.js.map +1 -0
  816. package/dist/cli/workflow/workflow-orchestrator.d.ts +47 -0
  817. package/dist/cli/workflow/workflow-orchestrator.d.ts.map +1 -0
  818. package/dist/cli/workflow/workflow-orchestrator.js +248 -0
  819. package/dist/cli/workflow/workflow-orchestrator.js.map +1 -0
  820. package/dist/config/database-config.d.ts +40 -0
  821. package/dist/config/database-config.d.ts.map +1 -0
  822. package/dist/config/database-config.js +192 -0
  823. package/dist/config/database-config.js.map +1 -0
  824. package/dist/core/factories/command-service-factory.d.ts +26 -0
  825. package/dist/core/factories/command-service-factory.d.ts.map +1 -0
  826. package/dist/core/factories/command-service-factory.js +72 -0
  827. package/dist/core/factories/command-service-factory.js.map +1 -0
  828. package/dist/core/factories/error-factory.d.ts +19 -0
  829. package/dist/core/factories/error-factory.d.ts.map +1 -0
  830. package/dist/core/factories/error-factory.js +100 -0
  831. package/dist/core/factories/error-factory.js.map +1 -0
  832. package/dist/core/factories/error-handling-factory.d.ts +33 -0
  833. package/dist/core/factories/error-handling-factory.d.ts.map +1 -0
  834. package/dist/core/factories/error-handling-factory.js +59 -0
  835. package/dist/core/factories/error-handling-factory.js.map +1 -0
  836. package/dist/core/factories/project-service-factory.d.ts +38 -0
  837. package/dist/core/factories/project-service-factory.d.ts.map +1 -0
  838. package/dist/core/factories/project-service-factory.js +66 -0
  839. package/dist/core/factories/project-service-factory.js.map +1 -0
  840. package/dist/core/factories/search-service-factory.d.ts +42 -0
  841. package/dist/core/factories/search-service-factory.d.ts.map +1 -0
  842. package/dist/core/factories/search-service-factory.js +76 -0
  843. package/dist/core/factories/search-service-factory.js.map +1 -0
  844. package/dist/core/interfaces/command-interfaces.d.ts +82 -0
  845. package/dist/core/interfaces/command-interfaces.d.ts.map +1 -0
  846. package/dist/core/interfaces/command-interfaces.js +7 -0
  847. package/dist/core/interfaces/command-interfaces.js.map +1 -0
  848. package/dist/core/interfaces/error-interfaces.d.ts +95 -0
  849. package/dist/core/interfaces/error-interfaces.d.ts.map +1 -0
  850. package/dist/core/interfaces/error-interfaces.js +8 -0
  851. package/dist/core/interfaces/error-interfaces.js.map +1 -0
  852. package/dist/core/interfaces/orchestrator-interfaces.d.ts +62 -0
  853. package/dist/core/interfaces/orchestrator-interfaces.d.ts.map +1 -0
  854. package/dist/core/interfaces/orchestrator-interfaces.js +8 -0
  855. package/dist/core/interfaces/orchestrator-interfaces.js.map +1 -0
  856. package/dist/core/interfaces/project-interfaces.d.ts +57 -0
  857. package/dist/core/interfaces/project-interfaces.d.ts.map +1 -0
  858. package/dist/core/interfaces/project-interfaces.js +7 -0
  859. package/dist/core/interfaces/project-interfaces.js.map +1 -0
  860. package/dist/core/interfaces/search-interfaces.d.ts +76 -0
  861. package/dist/core/interfaces/search-interfaces.d.ts.map +1 -0
  862. package/dist/core/interfaces/search-interfaces.js +6 -0
  863. package/dist/core/interfaces/search-interfaces.js.map +1 -0
  864. package/dist/core/interfaces.d.ts +109 -0
  865. package/dist/core/interfaces.d.ts.map +1 -0
  866. package/dist/core/interfaces.js +6 -0
  867. package/dist/core/interfaces.js.map +1 -0
  868. package/dist/core/services/error-handler.d.ts +33 -0
  869. package/dist/core/services/error-handler.d.ts.map +1 -0
  870. package/dist/core/services/error-handler.js +187 -0
  871. package/dist/core/services/error-handler.js.map +1 -0
  872. package/dist/core/types.d.ts +197 -0
  873. package/dist/core/types.d.ts.map +1 -0
  874. package/dist/core/types.js +89 -0
  875. package/dist/core/types.js.map +1 -0
  876. package/dist/core/utils/error-utils.d.ts +36 -0
  877. package/dist/core/utils/error-utils.d.ts.map +1 -0
  878. package/dist/core/utils/error-utils.js +173 -0
  879. package/dist/core/utils/error-utils.js.map +1 -0
  880. package/dist/database/adapters/base.d.ts +88 -0
  881. package/dist/database/adapters/base.d.ts.map +1 -0
  882. package/dist/database/adapters/base.js +27 -0
  883. package/dist/database/adapters/base.js.map +1 -0
  884. package/dist/database/adapters/interfaces.d.ts +64 -0
  885. package/dist/database/adapters/interfaces.d.ts.map +1 -0
  886. package/dist/database/adapters/interfaces.js +7 -0
  887. package/dist/database/adapters/interfaces.js.map +1 -0
  888. package/dist/database/adapters/postgresql.d.ts +54 -0
  889. package/dist/database/adapters/postgresql.d.ts.map +1 -0
  890. package/dist/database/adapters/postgresql.js +838 -0
  891. package/dist/database/adapters/postgresql.js.map +1 -0
  892. package/dist/database/adapters/services/connection-manager.d.ts +22 -0
  893. package/dist/database/adapters/services/connection-manager.d.ts.map +1 -0
  894. package/dist/database/adapters/services/connection-manager.js +107 -0
  895. package/dist/database/adapters/services/connection-manager.js.map +1 -0
  896. package/dist/database/adapters/services/project-service.d.ts +22 -0
  897. package/dist/database/adapters/services/project-service.d.ts.map +1 -0
  898. package/dist/database/adapters/services/project-service.js +193 -0
  899. package/dist/database/adapters/services/project-service.js.map +1 -0
  900. package/dist/database/database.d.ts +71 -0
  901. package/dist/database/database.d.ts.map +1 -0
  902. package/dist/database/database.js +312 -0
  903. package/dist/database/database.js.map +1 -0
  904. package/dist/database/factory.d.ts +10 -0
  905. package/dist/database/factory.d.ts.map +1 -0
  906. package/dist/database/factory.js +38 -0
  907. package/dist/database/factory.js.map +1 -0
  908. package/dist/database/migrations/002_phase2_features.d.ts +24 -0
  909. package/dist/database/migrations/002_phase2_features.d.ts.map +1 -0
  910. package/dist/database/migrations/002_phase2_features.js +224 -0
  911. package/dist/database/migrations/002_phase2_features.js.map +1 -0
  912. package/dist/index.d.ts +16 -0
  913. package/dist/index.d.ts.map +1 -0
  914. package/dist/index.js +58 -0
  915. package/dist/index.js.map +1 -0
  916. package/dist/integrations/claude/claude-cli-integration.d.ts +85 -0
  917. package/dist/integrations/claude/claude-cli-integration.d.ts.map +1 -0
  918. package/dist/integrations/claude/claude-cli-integration.js +278 -0
  919. package/dist/integrations/claude/claude-cli-integration.js.map +1 -0
  920. package/dist/integrations/claude/conversation-manager.d.ts +81 -0
  921. package/dist/integrations/claude/conversation-manager.d.ts.map +1 -0
  922. package/dist/integrations/claude/conversation-manager.js +378 -0
  923. package/dist/integrations/claude/conversation-manager.js.map +1 -0
  924. package/dist/integrations/claude/interceptor.d.ts +75 -0
  925. package/dist/integrations/claude/interceptor.d.ts.map +1 -0
  926. package/dist/integrations/claude/interceptor.js +173 -0
  927. package/dist/integrations/claude/interceptor.js.map +1 -0
  928. package/dist/integrations/claude/interfaces/index.d.ts +128 -0
  929. package/dist/integrations/claude/interfaces/index.d.ts.map +1 -0
  930. package/dist/integrations/claude/interfaces/index.js +7 -0
  931. package/dist/integrations/claude/interfaces/index.js.map +1 -0
  932. package/dist/integrations/claude/outcome-analyzer.d.ts +90 -0
  933. package/dist/integrations/claude/outcome-analyzer.d.ts.map +1 -0
  934. package/dist/integrations/claude/outcome-analyzer.js +394 -0
  935. package/dist/integrations/claude/outcome-analyzer.js.map +1 -0
  936. package/dist/integrations/claude/services/claude-execution-service.d.ts +26 -0
  937. package/dist/integrations/claude/services/claude-execution-service.d.ts.map +1 -0
  938. package/dist/integrations/claude/services/claude-execution-service.js +136 -0
  939. package/dist/integrations/claude/services/claude-execution-service.js.map +1 -0
  940. package/dist/integrations/claude/services/claude-response-parser.d.ts +30 -0
  941. package/dist/integrations/claude/services/claude-response-parser.d.ts.map +1 -0
  942. package/dist/integrations/claude/services/claude-response-parser.js +235 -0
  943. package/dist/integrations/claude/services/claude-response-parser.js.map +1 -0
  944. package/dist/integrations/claude/services/project-analysis-service.d.ts +22 -0
  945. package/dist/integrations/claude/services/project-analysis-service.d.ts.map +1 -0
  946. package/dist/integrations/claude/services/project-analysis-service.js +298 -0
  947. package/dist/integrations/claude/services/project-analysis-service.js.map +1 -0
  948. package/dist/integrations/claude/services/project-context-builder.d.ts +34 -0
  949. package/dist/integrations/claude/services/project-context-builder.d.ts.map +1 -0
  950. package/dist/integrations/claude/services/project-context-builder.js +304 -0
  951. package/dist/integrations/claude/services/project-context-builder.js.map +1 -0
  952. package/dist/integrations/claude/services/prompt-processing-service.d.ts +24 -0
  953. package/dist/integrations/claude/services/prompt-processing-service.d.ts.map +1 -0
  954. package/dist/integrations/claude/services/prompt-processing-service.js +266 -0
  955. package/dist/integrations/claude/services/prompt-processing-service.js.map +1 -0
  956. package/dist/integrations/claude/services/request-processing-service.d.ts +34 -0
  957. package/dist/integrations/claude/services/request-processing-service.d.ts.map +1 -0
  958. package/dist/integrations/claude/services/request-processing-service.js +254 -0
  959. package/dist/integrations/claude/services/request-processing-service.js.map +1 -0
  960. package/dist/integrations/claude/services/session-management-service.d.ts +49 -0
  961. package/dist/integrations/claude/services/session-management-service.d.ts.map +1 -0
  962. package/dist/integrations/claude/services/session-management-service.js +214 -0
  963. package/dist/integrations/claude/services/session-management-service.js.map +1 -0
  964. package/dist/mcp/index.d.ts +8 -0
  965. package/dist/mcp/index.d.ts.map +1 -0
  966. package/dist/mcp/index.js +13 -0
  967. package/dist/mcp/index.js.map +1 -0
  968. package/dist/mcp/indexing-service.d.ts +137 -0
  969. package/dist/mcp/indexing-service.d.ts.map +1 -0
  970. package/dist/mcp/indexing-service.js +961 -0
  971. package/dist/mcp/indexing-service.js.map +1 -0
  972. package/dist/mcp/mcp-server.d.ts +100 -0
  973. package/dist/mcp/mcp-server.d.ts.map +1 -0
  974. package/dist/mcp/mcp-server.js +1827 -0
  975. package/dist/mcp/mcp-server.js.map +1 -0
  976. package/dist/orchestrator/claude-tool-orchestrator.d.ts +128 -0
  977. package/dist/orchestrator/claude-tool-orchestrator.d.ts.map +1 -0
  978. package/dist/orchestrator/claude-tool-orchestrator.js +490 -0
  979. package/dist/orchestrator/claude-tool-orchestrator.js.map +1 -0
  980. package/dist/orchestrator/intelligent-task-orchestrator.d.ts +131 -0
  981. package/dist/orchestrator/intelligent-task-orchestrator.d.ts.map +1 -0
  982. package/dist/orchestrator/intelligent-task-orchestrator.js +493 -0
  983. package/dist/orchestrator/intelligent-task-orchestrator.js.map +1 -0
  984. package/dist/orchestrator/interfaces.d.ts +59 -0
  985. package/dist/orchestrator/interfaces.d.ts.map +1 -0
  986. package/dist/orchestrator/interfaces.js +7 -0
  987. package/dist/orchestrator/interfaces.js.map +1 -0
  988. package/dist/orchestrator/messaging/redis-messaging.d.ts +84 -0
  989. package/dist/orchestrator/messaging/redis-messaging.d.ts.map +1 -0
  990. package/dist/orchestrator/messaging/redis-messaging.js +384 -0
  991. package/dist/orchestrator/messaging/redis-messaging.js.map +1 -0
  992. package/dist/orchestrator/messaging/redis-queue.d.ts +89 -0
  993. package/dist/orchestrator/messaging/redis-queue.d.ts.map +1 -0
  994. package/dist/orchestrator/messaging/redis-queue.js +243 -0
  995. package/dist/orchestrator/messaging/redis-queue.js.map +1 -0
  996. package/dist/orchestrator/semantic-orchestrator.d.ts +43 -0
  997. package/dist/orchestrator/semantic-orchestrator.d.ts.map +1 -0
  998. package/dist/orchestrator/semantic-orchestrator.js +285 -0
  999. package/dist/orchestrator/semantic-orchestrator.js.map +1 -0
  1000. package/dist/orchestrator/sequential-workflow-orchestrator.d.ts +128 -0
  1001. package/dist/orchestrator/sequential-workflow-orchestrator.d.ts.map +1 -0
  1002. package/dist/orchestrator/sequential-workflow-orchestrator.js +406 -0
  1003. package/dist/orchestrator/sequential-workflow-orchestrator.js.map +1 -0
  1004. package/dist/orchestrator/services/code-duplications-service.d.ts +14 -0
  1005. package/dist/orchestrator/services/code-duplications-service.d.ts.map +1 -0
  1006. package/dist/orchestrator/services/code-duplications-service.js +116 -0
  1007. package/dist/orchestrator/services/code-duplications-service.js.map +1 -0
  1008. package/dist/orchestrator/services/database-connection-service.d.ts +14 -0
  1009. package/dist/orchestrator/services/database-connection-service.d.ts.map +1 -0
  1010. package/dist/orchestrator/services/database-connection-service.js +46 -0
  1011. package/dist/orchestrator/services/database-connection-service.js.map +1 -0
  1012. package/dist/orchestrator/services/semantic-search-service.d.ts +15 -0
  1013. package/dist/orchestrator/services/semantic-search-service.d.ts.map +1 -0
  1014. package/dist/orchestrator/services/semantic-search-service.js +154 -0
  1015. package/dist/orchestrator/services/semantic-search-service.js.map +1 -0
  1016. package/dist/orchestrator/services/tool-data-service.d.ts +14 -0
  1017. package/dist/orchestrator/services/tool-data-service.d.ts.map +1 -0
  1018. package/dist/orchestrator/services/tool-data-service.js +76 -0
  1019. package/dist/orchestrator/services/tool-data-service.js.map +1 -0
  1020. package/dist/orchestrator/tool-database-api.d.ts +47 -0
  1021. package/dist/orchestrator/tool-database-api.d.ts.map +1 -0
  1022. package/dist/orchestrator/tool-database-api.js +200 -0
  1023. package/dist/orchestrator/tool-database-api.js.map +1 -0
  1024. package/dist/orchestrator/types.d.ts +98 -0
  1025. package/dist/orchestrator/types.d.ts.map +1 -0
  1026. package/dist/orchestrator/types.js +6 -0
  1027. package/dist/orchestrator/types.js.map +1 -0
  1028. package/dist/orchestrator/workflow-definitions.d.ts +9 -0
  1029. package/dist/orchestrator/workflow-definitions.d.ts.map +1 -0
  1030. package/dist/orchestrator/workflow-definitions.js +169 -0
  1031. package/dist/orchestrator/workflow-definitions.js.map +1 -0
  1032. package/dist/orchestrator/workflow-visualizer.d.ts +54 -0
  1033. package/dist/orchestrator/workflow-visualizer.d.ts.map +1 -0
  1034. package/dist/orchestrator/workflow-visualizer.js +355 -0
  1035. package/dist/orchestrator/workflow-visualizer.js.map +1 -0
  1036. package/dist/services/managers/quality-manager.d.ts +108 -0
  1037. package/dist/services/managers/quality-manager.d.ts.map +1 -0
  1038. package/dist/services/managers/quality-manager.js +763 -0
  1039. package/dist/services/managers/quality-manager.js.map +1 -0
  1040. package/dist/services/managers/sync-manager.d.ts +106 -0
  1041. package/dist/services/managers/sync-manager.d.ts.map +1 -0
  1042. package/dist/services/managers/sync-manager.js +573 -0
  1043. package/dist/services/managers/sync-manager.js.map +1 -0
  1044. package/dist/shared/analysis-repository-consolidated.d.ts +155 -0
  1045. package/dist/shared/analysis-repository-consolidated.d.ts.map +1 -0
  1046. package/dist/shared/analysis-repository-consolidated.js +587 -0
  1047. package/dist/shared/analysis-repository-consolidated.js.map +1 -0
  1048. package/dist/shared/analysis-repository.d.ts +48 -0
  1049. package/dist/shared/analysis-repository.d.ts.map +1 -0
  1050. package/dist/shared/analysis-repository.js +183 -0
  1051. package/dist/shared/analysis-repository.js.map +1 -0
  1052. package/dist/shared/analytics-export-pipeline.d.ts +32 -0
  1053. package/dist/shared/analytics-export-pipeline.d.ts.map +1 -0
  1054. package/dist/shared/analytics-export-pipeline.js +307 -0
  1055. package/dist/shared/analytics-export-pipeline.js.map +1 -0
  1056. package/dist/shared/ast/analyzer.d.ts +59 -0
  1057. package/dist/shared/ast/analyzer.d.ts.map +1 -0
  1058. package/dist/shared/ast/analyzer.js +202 -0
  1059. package/dist/shared/ast/analyzer.js.map +1 -0
  1060. package/dist/shared/change-assessment-system.d.ts +111 -0
  1061. package/dist/shared/change-assessment-system.d.ts.map +1 -0
  1062. package/dist/shared/change-assessment-system.js +465 -0
  1063. package/dist/shared/change-assessment-system.js.map +1 -0
  1064. package/dist/shared/codebase-analyzer.d.ts +41 -0
  1065. package/dist/shared/codebase-analyzer.d.ts.map +1 -0
  1066. package/dist/shared/codebase-analyzer.js +60 -0
  1067. package/dist/shared/codebase-analyzer.js.map +1 -0
  1068. package/dist/shared/codemind-memory-system.d.ts +75 -0
  1069. package/dist/shared/codemind-memory-system.d.ts.map +1 -0
  1070. package/dist/shared/codemind-memory-system.js +222 -0
  1071. package/dist/shared/codemind-memory-system.js.map +1 -0
  1072. package/dist/shared/codeseeker-memory-system.d.ts +75 -0
  1073. package/dist/shared/codeseeker-memory-system.d.ts.map +1 -0
  1074. package/dist/shared/codeseeker-memory-system.js +222 -0
  1075. package/dist/shared/codeseeker-memory-system.js.map +1 -0
  1076. package/dist/shared/comprehensive-impact-analyzer.d.ts +94 -0
  1077. package/dist/shared/comprehensive-impact-analyzer.d.ts.map +1 -0
  1078. package/dist/shared/comprehensive-impact-analyzer.js +534 -0
  1079. package/dist/shared/comprehensive-impact-analyzer.js.map +1 -0
  1080. package/dist/shared/context-provider.d.ts +110 -0
  1081. package/dist/shared/context-provider.d.ts.map +1 -0
  1082. package/dist/shared/context-provider.js +392 -0
  1083. package/dist/shared/context-provider.js.map +1 -0
  1084. package/dist/shared/database-responsibility-guide.d.ts +183 -0
  1085. package/dist/shared/database-responsibility-guide.d.ts.map +1 -0
  1086. package/dist/shared/database-responsibility-guide.js +201 -0
  1087. package/dist/shared/database-responsibility-guide.js.map +1 -0
  1088. package/dist/shared/documentation-rag-service.d.ts +149 -0
  1089. package/dist/shared/documentation-rag-service.d.ts.map +1 -0
  1090. package/dist/shared/documentation-rag-service.js +586 -0
  1091. package/dist/shared/documentation-rag-service.js.map +1 -0
  1092. package/dist/shared/file-hash-tracker.d.ts +145 -0
  1093. package/dist/shared/file-hash-tracker.d.ts.map +1 -0
  1094. package/dist/shared/file-hash-tracker.js +387 -0
  1095. package/dist/shared/file-hash-tracker.js.map +1 -0
  1096. package/dist/shared/file-synchronization-system.d.ts +143 -0
  1097. package/dist/shared/file-synchronization-system.d.ts.map +1 -0
  1098. package/dist/shared/file-synchronization-system.js +642 -0
  1099. package/dist/shared/file-synchronization-system.js.map +1 -0
  1100. package/dist/shared/four-layer-memory-architecture.d.ts +372 -0
  1101. package/dist/shared/four-layer-memory-architecture.d.ts.map +1 -0
  1102. package/dist/shared/four-layer-memory-architecture.js +353 -0
  1103. package/dist/shared/four-layer-memory-architecture.js.map +1 -0
  1104. package/dist/shared/hybrid-file-discovery.d.ts +86 -0
  1105. package/dist/shared/hybrid-file-discovery.d.ts.map +1 -0
  1106. package/dist/shared/hybrid-file-discovery.js +270 -0
  1107. package/dist/shared/hybrid-file-discovery.js.map +1 -0
  1108. package/dist/shared/intelligent-cycle/interfaces.d.ts +73 -0
  1109. package/dist/shared/intelligent-cycle/interfaces.d.ts.map +1 -0
  1110. package/dist/shared/intelligent-cycle/interfaces.js +7 -0
  1111. package/dist/shared/intelligent-cycle/interfaces.js.map +1 -0
  1112. package/dist/shared/intelligent-cycle/services/code-extraction-service.d.ts +29 -0
  1113. package/dist/shared/intelligent-cycle/services/code-extraction-service.d.ts.map +1 -0
  1114. package/dist/shared/intelligent-cycle/services/code-extraction-service.js +191 -0
  1115. package/dist/shared/intelligent-cycle/services/code-extraction-service.js.map +1 -0
  1116. package/dist/shared/intelligent-cycle/services/intent-analysis-service.d.ts +17 -0
  1117. package/dist/shared/intelligent-cycle/services/intent-analysis-service.d.ts.map +1 -0
  1118. package/dist/shared/intelligent-cycle/services/intent-analysis-service.js +151 -0
  1119. package/dist/shared/intelligent-cycle/services/intent-analysis-service.js.map +1 -0
  1120. package/dist/shared/intelligent-cycle/services/security-scanning-service.d.ts +16 -0
  1121. package/dist/shared/intelligent-cycle/services/security-scanning-service.d.ts.map +1 -0
  1122. package/dist/shared/intelligent-cycle/services/security-scanning-service.js +171 -0
  1123. package/dist/shared/intelligent-cycle/services/security-scanning-service.js.map +1 -0
  1124. package/dist/shared/intelligent-cycle/services/semantic-deduplication-service.d.ts +15 -0
  1125. package/dist/shared/intelligent-cycle/services/semantic-deduplication-service.d.ts.map +1 -0
  1126. package/dist/shared/intelligent-cycle/services/semantic-deduplication-service.js +116 -0
  1127. package/dist/shared/intelligent-cycle/services/semantic-deduplication-service.js.map +1 -0
  1128. package/dist/shared/intelligent-cycle/services/similarity-matching-service.d.ts +13 -0
  1129. package/dist/shared/intelligent-cycle/services/similarity-matching-service.d.ts.map +1 -0
  1130. package/dist/shared/intelligent-cycle/services/similarity-matching-service.js +64 -0
  1131. package/dist/shared/intelligent-cycle/services/similarity-matching-service.js.map +1 -0
  1132. package/dist/shared/intelligent-cycle-features.d.ts +41 -0
  1133. package/dist/shared/intelligent-cycle-features.d.ts.map +1 -0
  1134. package/dist/shared/intelligent-cycle-features.js +102 -0
  1135. package/dist/shared/intelligent-cycle-features.js.map +1 -0
  1136. package/dist/shared/intelligent-tool-selector.d.ts +90 -0
  1137. package/dist/shared/intelligent-tool-selector.d.ts.map +1 -0
  1138. package/dist/shared/intelligent-tool-selector.js +357 -0
  1139. package/dist/shared/intelligent-tool-selector.js.map +1 -0
  1140. package/dist/shared/logger.d.ts +2 -0
  1141. package/dist/shared/logger.d.ts.map +1 -0
  1142. package/dist/shared/logger.js +9 -0
  1143. package/dist/shared/logger.js.map +1 -0
  1144. package/dist/shared/managers/cache-manager.d.ts +147 -0
  1145. package/dist/shared/managers/cache-manager.d.ts.map +1 -0
  1146. package/dist/shared/managers/cache-manager.js +408 -0
  1147. package/dist/shared/managers/cache-manager.js.map +1 -0
  1148. package/dist/shared/managers/database-update-manager.d.ts +142 -0
  1149. package/dist/shared/managers/database-update-manager.d.ts.map +1 -0
  1150. package/dist/shared/managers/database-update-manager.js +747 -0
  1151. package/dist/shared/managers/database-update-manager.js.map +1 -0
  1152. package/dist/shared/managers/git-branch-manager.d.ts +104 -0
  1153. package/dist/shared/managers/git-branch-manager.d.ts.map +1 -0
  1154. package/dist/shared/managers/git-branch-manager.js +435 -0
  1155. package/dist/shared/managers/git-branch-manager.js.map +1 -0
  1156. package/dist/shared/memory-architecture-integration.d.ts +124 -0
  1157. package/dist/shared/memory-architecture-integration.d.ts.map +1 -0
  1158. package/dist/shared/memory-architecture-integration.js +247 -0
  1159. package/dist/shared/memory-architecture-integration.js.map +1 -0
  1160. package/dist/shared/memory-orchestrator-integration.d.ts +86 -0
  1161. package/dist/shared/memory-orchestrator-integration.d.ts.map +1 -0
  1162. package/dist/shared/memory-orchestrator-integration.js +325 -0
  1163. package/dist/shared/memory-orchestrator-integration.js.map +1 -0
  1164. package/dist/shared/memory-system/interfaces/index.d.ts +255 -0
  1165. package/dist/shared/memory-system/interfaces/index.d.ts.map +1 -0
  1166. package/dist/shared/memory-system/interfaces/index.js +7 -0
  1167. package/dist/shared/memory-system/interfaces/index.js.map +1 -0
  1168. package/dist/shared/memory-system/memory-system.d.ts +69 -0
  1169. package/dist/shared/memory-system/memory-system.d.ts.map +1 -0
  1170. package/dist/shared/memory-system/memory-system.js +219 -0
  1171. package/dist/shared/memory-system/memory-system.js.map +1 -0
  1172. package/dist/shared/memory-system/services/memory-analytics-service.d.ts +26 -0
  1173. package/dist/shared/memory-system/services/memory-analytics-service.d.ts.map +1 -0
  1174. package/dist/shared/memory-system/services/memory-analytics-service.js +101 -0
  1175. package/dist/shared/memory-system/services/memory-analytics-service.js.map +1 -0
  1176. package/dist/shared/memory-system/services/memory-optimization-service.d.ts +21 -0
  1177. package/dist/shared/memory-system/services/memory-optimization-service.d.ts.map +1 -0
  1178. package/dist/shared/memory-system/services/memory-optimization-service.js +282 -0
  1179. package/dist/shared/memory-system/services/memory-optimization-service.js.map +1 -0
  1180. package/dist/shared/memory-system/services/memory-retrieval-service.d.ts +30 -0
  1181. package/dist/shared/memory-system/services/memory-retrieval-service.d.ts.map +1 -0
  1182. package/dist/shared/memory-system/services/memory-retrieval-service.js +430 -0
  1183. package/dist/shared/memory-system/services/memory-retrieval-service.js.map +1 -0
  1184. package/dist/shared/memory-system/services/memory-storage-service.d.ts +47 -0
  1185. package/dist/shared/memory-system/services/memory-storage-service.d.ts.map +1 -0
  1186. package/dist/shared/memory-system/services/memory-storage-service.js +450 -0
  1187. package/dist/shared/memory-system/services/memory-storage-service.js.map +1 -0
  1188. package/dist/shared/multi-level-cache.d.ts +106 -0
  1189. package/dist/shared/multi-level-cache.d.ts.map +1 -0
  1190. package/dist/shared/multi-level-cache.js +423 -0
  1191. package/dist/shared/multi-level-cache.js.map +1 -0
  1192. package/dist/shared/offline-first-cache.d.ts +69 -0
  1193. package/dist/shared/offline-first-cache.d.ts.map +1 -0
  1194. package/dist/shared/offline-first-cache.js +312 -0
  1195. package/dist/shared/offline-first-cache.js.map +1 -0
  1196. package/dist/shared/performance-monitor.d.ts +69 -0
  1197. package/dist/shared/performance-monitor.d.ts.map +1 -0
  1198. package/dist/shared/performance-monitor.js +226 -0
  1199. package/dist/shared/performance-monitor.js.map +1 -0
  1200. package/dist/shared/platform-utils.d.ts +105 -0
  1201. package/dist/shared/platform-utils.d.ts.map +1 -0
  1202. package/dist/shared/platform-utils.js +299 -0
  1203. package/dist/shared/platform-utils.js.map +1 -0
  1204. package/dist/shared/post-execution-integration.d.ts +99 -0
  1205. package/dist/shared/post-execution-integration.d.ts.map +1 -0
  1206. package/dist/shared/post-execution-integration.js +504 -0
  1207. package/dist/shared/post-execution-integration.js.map +1 -0
  1208. package/dist/shared/postgresql-analytics-database.d.ts +54 -0
  1209. package/dist/shared/postgresql-analytics-database.d.ts.map +1 -0
  1210. package/dist/shared/postgresql-analytics-database.js +333 -0
  1211. package/dist/shared/postgresql-analytics-database.js.map +1 -0
  1212. package/dist/shared/project-intelligence.d.ts +45 -0
  1213. package/dist/shared/project-intelligence.d.ts.map +1 -0
  1214. package/dist/shared/project-intelligence.js +176 -0
  1215. package/dist/shared/project-intelligence.js.map +1 -0
  1216. package/dist/shared/prompt-chunking-system.d.ts +39 -0
  1217. package/dist/shared/prompt-chunking-system.d.ts.map +1 -0
  1218. package/dist/shared/prompt-chunking-system.js +233 -0
  1219. package/dist/shared/prompt-chunking-system.js.map +1 -0
  1220. package/dist/shared/reconciliation-system.d.ts +105 -0
  1221. package/dist/shared/reconciliation-system.d.ts.map +1 -0
  1222. package/dist/shared/reconciliation-system.js +430 -0
  1223. package/dist/shared/reconciliation-system.js.map +1 -0
  1224. package/dist/shared/redis-cache-adapter.d.ts +73 -0
  1225. package/dist/shared/redis-cache-adapter.d.ts.map +1 -0
  1226. package/dist/shared/redis-cache-adapter.js +294 -0
  1227. package/dist/shared/redis-cache-adapter.js.map +1 -0
  1228. package/dist/shared/redis-file-change-sync.d.ts +126 -0
  1229. package/dist/shared/redis-file-change-sync.d.ts.map +1 -0
  1230. package/dist/shared/redis-file-change-sync.js +779 -0
  1231. package/dist/shared/redis-file-change-sync.js.map +1 -0
  1232. package/dist/shared/semantic-enhancement-engine.d.ts +70 -0
  1233. package/dist/shared/semantic-enhancement-engine.d.ts.map +1 -0
  1234. package/dist/shared/semantic-enhancement-engine.js +127 -0
  1235. package/dist/shared/semantic-enhancement-engine.js.map +1 -0
  1236. package/dist/shared/task-specific-file-orchestrator.d.ts +107 -0
  1237. package/dist/shared/task-specific-file-orchestrator.d.ts.map +1 -0
  1238. package/dist/shared/task-specific-file-orchestrator.js +492 -0
  1239. package/dist/shared/task-specific-file-orchestrator.js.map +1 -0
  1240. package/dist/shared/tool-adapter.d.ts +27 -0
  1241. package/dist/shared/tool-adapter.d.ts.map +1 -0
  1242. package/dist/shared/tool-adapter.js +147 -0
  1243. package/dist/shared/tool-adapter.js.map +1 -0
  1244. package/dist/shared/tool-config-repository.d.ts +41 -0
  1245. package/dist/shared/tool-config-repository.d.ts.map +1 -0
  1246. package/dist/shared/tool-config-repository.js +178 -0
  1247. package/dist/shared/tool-config-repository.js.map +1 -0
  1248. package/dist/shared/tool-interface.d.ts +220 -0
  1249. package/dist/shared/tool-interface.d.ts.map +1 -0
  1250. package/dist/shared/tool-interface.js +357 -0
  1251. package/dist/shared/tool-interface.js.map +1 -0
  1252. package/dist/shared/tool-registry-initializer.d.ts +32 -0
  1253. package/dist/shared/tool-registry-initializer.d.ts.map +1 -0
  1254. package/dist/shared/tool-registry-initializer.js +173 -0
  1255. package/dist/shared/tool-registry-initializer.js.map +1 -0
  1256. package/dist/shared/types.d.ts +48 -0
  1257. package/dist/shared/types.d.ts.map +1 -0
  1258. package/dist/shared/types.js +6 -0
  1259. package/dist/shared/types.js.map +1 -0
  1260. package/dist/shared/validation-cycle/interfaces/index.d.ts +102 -0
  1261. package/dist/shared/validation-cycle/interfaces/index.d.ts.map +1 -0
  1262. package/dist/shared/validation-cycle/interfaces/index.js +7 -0
  1263. package/dist/shared/validation-cycle/interfaces/index.js.map +1 -0
  1264. package/dist/shared/validation-cycle/services/core-safety-service.d.ts +21 -0
  1265. package/dist/shared/validation-cycle/services/core-safety-service.d.ts.map +1 -0
  1266. package/dist/shared/validation-cycle/services/core-safety-service.js +339 -0
  1267. package/dist/shared/validation-cycle/services/core-safety-service.js.map +1 -0
  1268. package/dist/shared/validation-cycle/services/quality-validation-service.d.ts +24 -0
  1269. package/dist/shared/validation-cycle/services/quality-validation-service.d.ts.map +1 -0
  1270. package/dist/shared/validation-cycle/services/quality-validation-service.js +368 -0
  1271. package/dist/shared/validation-cycle/services/quality-validation-service.js.map +1 -0
  1272. package/dist/shared/validation-cycle/services/validation-aggregator-service.d.ts +28 -0
  1273. package/dist/shared/validation-cycle/services/validation-aggregator-service.d.ts.map +1 -0
  1274. package/dist/shared/validation-cycle/services/validation-aggregator-service.js +214 -0
  1275. package/dist/shared/validation-cycle/services/validation-aggregator-service.js.map +1 -0
  1276. package/dist/shared/validation-cycle/services/validation-report-service.d.ts +29 -0
  1277. package/dist/shared/validation-cycle/services/validation-report-service.d.ts.map +1 -0
  1278. package/dist/shared/validation-cycle/services/validation-report-service.js +304 -0
  1279. package/dist/shared/validation-cycle/services/validation-report-service.js.map +1 -0
  1280. package/dist/shared/validation-cycle/validation-cycle.d.ts +64 -0
  1281. package/dist/shared/validation-cycle/validation-cycle.d.ts.map +1 -0
  1282. package/dist/shared/validation-cycle/validation-cycle.js +226 -0
  1283. package/dist/shared/validation-cycle/validation-cycle.js.map +1 -0
  1284. package/dist/shared/validation-cycle.d.ts +12 -0
  1285. package/dist/shared/validation-cycle.d.ts.map +1 -0
  1286. package/dist/shared/validation-cycle.js +20 -0
  1287. package/dist/shared/validation-cycle.js.map +1 -0
  1288. package/dist/storage/embedded/graphology-graph-store.d.ts +39 -0
  1289. package/dist/storage/embedded/graphology-graph-store.d.ts.map +1 -0
  1290. package/dist/storage/embedded/graphology-graph-store.js +357 -0
  1291. package/dist/storage/embedded/graphology-graph-store.js.map +1 -0
  1292. package/dist/storage/embedded/index.d.ts +40 -0
  1293. package/dist/storage/embedded/index.d.ts.map +1 -0
  1294. package/dist/storage/embedded/index.js +154 -0
  1295. package/dist/storage/embedded/index.js.map +1 -0
  1296. package/dist/storage/embedded/lru-cache-store.d.ts +44 -0
  1297. package/dist/storage/embedded/lru-cache-store.d.ts.map +1 -0
  1298. package/dist/storage/embedded/lru-cache-store.js +232 -0
  1299. package/dist/storage/embedded/lru-cache-store.js.map +1 -0
  1300. package/dist/storage/embedded/minisearch-text-store.d.ts +62 -0
  1301. package/dist/storage/embedded/minisearch-text-store.d.ts.map +1 -0
  1302. package/dist/storage/embedded/minisearch-text-store.js +521 -0
  1303. package/dist/storage/embedded/minisearch-text-store.js.map +1 -0
  1304. package/dist/storage/embedded/sqlite-project-store.d.ts +29 -0
  1305. package/dist/storage/embedded/sqlite-project-store.d.ts.map +1 -0
  1306. package/dist/storage/embedded/sqlite-project-store.js +193 -0
  1307. package/dist/storage/embedded/sqlite-project-store.js.map +1 -0
  1308. package/dist/storage/embedded/sqlite-vector-store.d.ts +48 -0
  1309. package/dist/storage/embedded/sqlite-vector-store.d.ts.map +1 -0
  1310. package/dist/storage/embedded/sqlite-vector-store.js +462 -0
  1311. package/dist/storage/embedded/sqlite-vector-store.js.map +1 -0
  1312. package/dist/storage/index.d.ts +64 -0
  1313. package/dist/storage/index.d.ts.map +1 -0
  1314. package/dist/storage/index.js +84 -0
  1315. package/dist/storage/index.js.map +1 -0
  1316. package/dist/storage/interfaces.d.ts +259 -0
  1317. package/dist/storage/interfaces.d.ts.map +1 -0
  1318. package/dist/storage/interfaces.js +12 -0
  1319. package/dist/storage/interfaces.js.map +1 -0
  1320. package/dist/storage/server/elasticsearch-text-store.d.ts +82 -0
  1321. package/dist/storage/server/elasticsearch-text-store.d.ts.map +1 -0
  1322. package/dist/storage/server/elasticsearch-text-store.js +177 -0
  1323. package/dist/storage/server/elasticsearch-text-store.js.map +1 -0
  1324. package/dist/storage/server/index.d.ts +42 -0
  1325. package/dist/storage/server/index.d.ts.map +1 -0
  1326. package/dist/storage/server/index.js +109 -0
  1327. package/dist/storage/server/index.js.map +1 -0
  1328. package/dist/storage/server/neo4j-graph-store.d.ts +49 -0
  1329. package/dist/storage/server/neo4j-graph-store.d.ts.map +1 -0
  1330. package/dist/storage/server/neo4j-graph-store.js +357 -0
  1331. package/dist/storage/server/neo4j-graph-store.js.map +1 -0
  1332. package/dist/storage/server/postgres-project-store.d.ts +30 -0
  1333. package/dist/storage/server/postgres-project-store.d.ts.map +1 -0
  1334. package/dist/storage/server/postgres-project-store.js +146 -0
  1335. package/dist/storage/server/postgres-project-store.js.map +1 -0
  1336. package/dist/storage/server/postgres-vector-store.d.ts +51 -0
  1337. package/dist/storage/server/postgres-vector-store.d.ts.map +1 -0
  1338. package/dist/storage/server/postgres-vector-store.js +306 -0
  1339. package/dist/storage/server/postgres-vector-store.js.map +1 -0
  1340. package/dist/storage/server/redis-cache-store.d.ts +61 -0
  1341. package/dist/storage/server/redis-cache-store.d.ts.map +1 -0
  1342. package/dist/storage/server/redis-cache-store.js +209 -0
  1343. package/dist/storage/server/redis-cache-store.js.map +1 -0
  1344. package/dist/storage/storage-manager.d.ts +121 -0
  1345. package/dist/storage/storage-manager.d.ts.map +1 -0
  1346. package/dist/storage/storage-manager.js +444 -0
  1347. package/dist/storage/storage-manager.js.map +1 -0
  1348. package/dist/storage/storage-provider.d.ts +62 -0
  1349. package/dist/storage/storage-provider.d.ts.map +1 -0
  1350. package/dist/storage/storage-provider.js +257 -0
  1351. package/dist/storage/storage-provider.js.map +1 -0
  1352. package/dist/utils/cache.d.ts +66 -0
  1353. package/dist/utils/cache.d.ts.map +1 -0
  1354. package/dist/utils/cache.js +254 -0
  1355. package/dist/utils/cache.js.map +1 -0
  1356. package/dist/utils/cli-logger.d.ts +75 -0
  1357. package/dist/utils/cli-logger.d.ts.map +1 -0
  1358. package/dist/utils/cli-logger.js +217 -0
  1359. package/dist/utils/cli-logger.js.map +1 -0
  1360. package/dist/utils/colored-logger.d.ts +40 -0
  1361. package/dist/utils/colored-logger.d.ts.map +1 -0
  1362. package/dist/utils/colored-logger.js +233 -0
  1363. package/dist/utils/colored-logger.js.map +1 -0
  1364. package/dist/utils/config.d.ts +61 -0
  1365. package/dist/utils/config.d.ts.map +1 -0
  1366. package/dist/utils/config.js +230 -0
  1367. package/dist/utils/config.js.map +1 -0
  1368. package/dist/utils/file-system.d.ts +30 -0
  1369. package/dist/utils/file-system.d.ts.map +1 -0
  1370. package/dist/utils/file-system.js +207 -0
  1371. package/dist/utils/file-system.js.map +1 -0
  1372. package/dist/utils/hash.d.ts +79 -0
  1373. package/dist/utils/hash.d.ts.map +1 -0
  1374. package/dist/utils/hash.js +172 -0
  1375. package/dist/utils/hash.js.map +1 -0
  1376. package/dist/utils/logger.d.ts +39 -0
  1377. package/dist/utils/logger.d.ts.map +1 -0
  1378. package/dist/utils/logger.js +106 -0
  1379. package/dist/utils/logger.js.map +1 -0
  1380. package/package.json +150 -0
@@ -0,0 +1,838 @@
1
+ "use strict";
2
+ /**
3
+ * PostgreSQL database adapter for CodeSeeker
4
+ * Production-ready adapter with connection pooling and transactions
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.PostgreSQLAdapter = void 0;
8
+ const pg_1 = require("pg");
9
+ const fs_1 = require("fs");
10
+ const path_1 = require("path");
11
+ const base_1 = require("./base");
12
+ const types_1 = require("../../core/types");
13
+ class PostgreSQLAdapter extends base_1.DatabaseAdapter {
14
+ pool = null;
15
+ constructor(config, logger) {
16
+ super(config, logger);
17
+ }
18
+ async initialize() {
19
+ try {
20
+ this.logger.debug('Initializing PostgreSQL connection', {
21
+ host: this.config.host,
22
+ database: this.config.database,
23
+ port: this.config.port
24
+ });
25
+ // Create connection pool
26
+ this.pool = new pg_1.Pool({
27
+ connectionString: this.config.connectionString,
28
+ host: this.config.host,
29
+ port: this.config.port,
30
+ database: this.config.database,
31
+ user: this.config.username,
32
+ password: this.config.password,
33
+ ssl: this.config.ssl ? { rejectUnauthorized: false } : false,
34
+ max: 20, // Maximum number of clients in pool
35
+ idleTimeoutMillis: 30000, // Close idle clients after 30 seconds
36
+ connectionTimeoutMillis: 2000, // Return error after 2 seconds if unable to connect
37
+ });
38
+ // Test connection
39
+ const client = await this.pool?.connect();
40
+ await client?.query('SELECT NOW()');
41
+ client?.release();
42
+ this.logger.debug('PostgreSQL connection established');
43
+ // Run migrations
44
+ await this?.migrate();
45
+ }
46
+ catch (error) {
47
+ const dbError = this?.handleError('initialization', error);
48
+ throw new Error(dbError.message);
49
+ }
50
+ }
51
+ async close() {
52
+ if (this.pool) {
53
+ this.logger.debug('Closing PostgreSQL connection pool');
54
+ await this.pool?.end();
55
+ this.pool = null;
56
+ }
57
+ }
58
+ async migrate() {
59
+ if (!this.pool) {
60
+ throw new Error('Database not initialized');
61
+ }
62
+ try {
63
+ this.logger.debug('Running PostgreSQL migrations');
64
+ // Try multiple possible paths for the schema file
65
+ const possiblePaths = [
66
+ (0, path_1.join)(__dirname, '../../src/database/schema.postgres.sql'), // Docker path
67
+ (0, path_1.join)(__dirname, '../schema.postgres.sql'), // Local compiled path
68
+ (0, path_1.join)(process?.cwd(), 'src/database/schema.postgres.sql'), // From project root
69
+ ];
70
+ let schemaSql = '';
71
+ let schemaFound = false;
72
+ for (const schemaPath of possiblePaths) {
73
+ try {
74
+ schemaSql = (0, fs_1.readFileSync)(schemaPath, 'utf8');
75
+ schemaFound = true;
76
+ this.logger.debug(`Found schema file at: ${schemaPath}`);
77
+ break;
78
+ }
79
+ catch (error) {
80
+ // Try next path
81
+ continue;
82
+ }
83
+ }
84
+ if (!schemaFound) {
85
+ throw new Error(`Schema file not found. Tried paths: ${possiblePaths?.join(', ')}`);
86
+ }
87
+ const client = await this.pool?.connect();
88
+ try {
89
+ // Try to run schema - if it fails because objects already exist, that's OK
90
+ try {
91
+ await client?.query(schemaSql);
92
+ this.logger.debug('PostgreSQL migrations completed');
93
+ }
94
+ catch (migrationError) {
95
+ // Check if the error is just about existing objects
96
+ const errorMessage = migrationError.message;
97
+ if (errorMessage?.includes('already exists') || errorMessage?.includes('does not exist')) {
98
+ this.logger.debug('PostgreSQL schema already exists');
99
+ }
100
+ else {
101
+ // Re-throw if it's a different error
102
+ throw migrationError;
103
+ }
104
+ }
105
+ }
106
+ finally {
107
+ client?.release();
108
+ }
109
+ }
110
+ catch (error) {
111
+ throw this?.handleError('migration', error);
112
+ }
113
+ }
114
+ async isHealthy() {
115
+ if (!this.pool)
116
+ return false;
117
+ try {
118
+ const client = await this.pool?.connect();
119
+ await client?.query('SELECT 1');
120
+ client?.release();
121
+ return true;
122
+ }
123
+ catch {
124
+ return false;
125
+ }
126
+ }
127
+ // Project management
128
+ async createProject(projectData) {
129
+ if (!this.pool)
130
+ throw new Error('Database not initialized');
131
+ const client = await this.pool?.connect();
132
+ try {
133
+ await client?.query('BEGIN');
134
+ // Create project
135
+ const projectResult = await client?.query(`
136
+ INSERT INTO projects (
137
+ project_path, project_name, project_type, languages, frameworks,
138
+ project_size, domain, total_files, total_lines, status, metadata
139
+ ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)
140
+ RETURNING *
141
+ `, [
142
+ projectData.projectPath,
143
+ projectData.projectName,
144
+ projectData.projectType,
145
+ JSON.stringify(projectData.languages),
146
+ JSON.stringify(projectData.frameworks),
147
+ projectData.projectSize,
148
+ projectData.domain,
149
+ projectData.totalFiles,
150
+ projectData.totalLines,
151
+ projectData.status,
152
+ JSON.stringify(projectData.metadata)
153
+ ]);
154
+ const project = this?.mapRowToProject(projectResult.rows[0]);
155
+ // Create primary path entry
156
+ await client?.query(`
157
+ INSERT INTO project_paths (project_id, path, path_type, is_active)
158
+ VALUES ($1, $2, 'primary', true)
159
+ `, [project.id, project.projectPath]);
160
+ await client?.query('COMMIT');
161
+ return project;
162
+ }
163
+ catch (error) {
164
+ await client?.query('ROLLBACK');
165
+ throw this?.handleError('createProject', error);
166
+ }
167
+ finally {
168
+ client?.release();
169
+ }
170
+ }
171
+ async getProject(projectPath) {
172
+ if (!this.pool)
173
+ throw new Error('Database not initialized');
174
+ try {
175
+ const result = await this.pool?.query(`
176
+ SELECT DISTINCT p.* FROM projects p
177
+ JOIN project_paths pp ON p.id = pp.project_id
178
+ WHERE pp.path = $1 AND pp.is_active = true
179
+ LIMIT 1
180
+ `, [projectPath]);
181
+ return result.rows?.length > 0 ? this?.mapRowToProject(result.rows[0]) : null;
182
+ }
183
+ catch (error) {
184
+ throw this?.handleError('getProject', error);
185
+ }
186
+ }
187
+ async getProjectById(id) {
188
+ if (!this.pool)
189
+ throw new Error('Database not initialized');
190
+ try {
191
+ const result = await this.pool?.query('SELECT * FROM projects WHERE id = $1', [id]);
192
+ return result.rows?.length > 0 ? this?.mapRowToProject(result.rows[0]) : null;
193
+ }
194
+ catch (error) {
195
+ throw this?.handleError('getProjectById', error);
196
+ }
197
+ }
198
+ async updateProject(id, updates) {
199
+ if (!this.pool)
200
+ throw new Error('Database not initialized');
201
+ const fields = [];
202
+ const values = [];
203
+ let paramCount = 1;
204
+ Object.entries(updates)?.forEach(([key, value]) => {
205
+ if (key === 'id' || key === 'createdAt')
206
+ return;
207
+ let dbColumn = this?.mapFieldToColumn(key);
208
+ if (key === 'languages' || key === 'frameworks' || key === 'metadata') {
209
+ fields?.push(`${dbColumn} = $${paramCount}`);
210
+ values?.push(JSON.stringify(value));
211
+ }
212
+ else {
213
+ fields?.push(`${dbColumn} = $${paramCount}`);
214
+ values?.push(value);
215
+ }
216
+ paramCount++;
217
+ });
218
+ if (fields?.length === 0) {
219
+ return this?.getProjectById(id);
220
+ }
221
+ values?.push(id);
222
+ try {
223
+ const result = await this.pool?.query(`
224
+ UPDATE projects SET ${fields?.join(', ')}, updated_at = NOW()
225
+ WHERE id = $${paramCount}
226
+ RETURNING *
227
+ `, values);
228
+ if (result.rows?.length === 0) {
229
+ throw new Error(`Project with id ${id} not found`);
230
+ }
231
+ return this?.mapRowToProject(result.rows[0]);
232
+ }
233
+ catch (error) {
234
+ throw this?.handleError('updateProject', error);
235
+ }
236
+ }
237
+ async deleteProject(id) {
238
+ if (!this.pool)
239
+ throw new Error('Database not initialized');
240
+ try {
241
+ const result = await this.pool?.query('DELETE FROM projects WHERE id = $1', [id]);
242
+ if (result?.rowCount === 0) {
243
+ throw new Error(`Project with id ${id} not found`);
244
+ }
245
+ }
246
+ catch (error) {
247
+ throw this?.handleError('deleteProject', error);
248
+ }
249
+ }
250
+ async listProjects(status = 'active', limit = 50, offset = 0) {
251
+ if (!this.pool)
252
+ throw new Error('Database not initialized');
253
+ try {
254
+ const result = await this.pool?.query(`
255
+ SELECT * FROM projects
256
+ WHERE status = $1
257
+ ORDER BY updated_at DESC
258
+ LIMIT $2 OFFSET $3
259
+ `, [status, limit, offset]);
260
+ return result.rows?.map(row => this?.mapRowToProject(row));
261
+ }
262
+ catch (error) {
263
+ throw this?.handleError('listProjects', error);
264
+ }
265
+ }
266
+ // Project path management
267
+ async addProjectPath(projectId, path, pathType) {
268
+ if (!this.pool)
269
+ throw new Error('Database not initialized');
270
+ const client = await this.pool?.connect();
271
+ try {
272
+ await client?.query('BEGIN');
273
+ // If setting as primary, deactivate current primary
274
+ if (pathType === 'primary') {
275
+ await client?.query(`
276
+ UPDATE project_paths
277
+ SET is_active = false, deactivated_at = NOW()
278
+ WHERE project_id = $1 AND path_type = 'primary' AND is_active = true
279
+ `, [projectId]);
280
+ }
281
+ const result = await client?.query(`
282
+ INSERT INTO project_paths (project_id, path, path_type, is_active)
283
+ VALUES ($1, $2, $3, $4)
284
+ RETURNING *
285
+ `, [projectId, path, pathType, pathType === 'primary']);
286
+ await client?.query('COMMIT');
287
+ return this?.mapRowToProjectPath(result.rows[0]);
288
+ }
289
+ catch (error) {
290
+ await client?.query('ROLLBACK');
291
+ throw this?.handleError('addProjectPath', error);
292
+ }
293
+ finally {
294
+ client?.release();
295
+ }
296
+ }
297
+ async updateProjectPath(projectId, oldPath, newPath) {
298
+ if (!this.pool)
299
+ throw new Error('Database not initialized');
300
+ const client = await this.pool?.connect();
301
+ try {
302
+ await client?.query('BEGIN');
303
+ // Mark old path as historical
304
+ await client?.query(`
305
+ UPDATE project_paths
306
+ SET path_type = 'historical', is_active = false, deactivated_at = NOW()
307
+ WHERE project_id = $1 AND path = $2
308
+ `, [projectId, oldPath]);
309
+ // Add new primary path
310
+ await client?.query(`
311
+ INSERT INTO project_paths (project_id, path, path_type, is_active)
312
+ VALUES ($1, $2, 'primary', true)
313
+ `, [projectId, newPath]);
314
+ // Update project table
315
+ await client?.query(`
316
+ UPDATE projects SET project_path = $1, updated_at = NOW()
317
+ WHERE id = $2
318
+ `, [newPath, projectId]);
319
+ await client?.query('COMMIT');
320
+ }
321
+ catch (error) {
322
+ await client?.query('ROLLBACK');
323
+ throw this?.handleError('updateProjectPath', error);
324
+ }
325
+ finally {
326
+ client?.release();
327
+ }
328
+ }
329
+ async deactivateProjectPath(projectId, path) {
330
+ if (!this.pool)
331
+ throw new Error('Database not initialized');
332
+ try {
333
+ await this.pool?.query(`
334
+ UPDATE project_paths
335
+ SET is_active = false, deactivated_at = NOW()
336
+ WHERE project_id = $1 AND path = $2
337
+ `, [projectId, path]);
338
+ }
339
+ catch (error) {
340
+ throw this?.handleError('deactivateProjectPath', error);
341
+ }
342
+ }
343
+ async getProjectByAnyPath(path) {
344
+ return this?.getProject(path); // Same implementation for now
345
+ }
346
+ async getProjectPaths(projectId) {
347
+ if (!this.pool)
348
+ throw new Error('Database not initialized');
349
+ try {
350
+ const result = await this.pool?.query(`
351
+ SELECT * FROM project_paths
352
+ WHERE project_id = $1
353
+ ORDER BY created_at DESC
354
+ `, [projectId]);
355
+ return result.rows?.map(row => this?.mapRowToProjectPath(row));
356
+ }
357
+ catch (error) {
358
+ throw this?.handleError('getProjectPaths', error);
359
+ }
360
+ }
361
+ // Initialization progress - implement all required methods
362
+ async saveInitializationProgress(progress) {
363
+ if (!this.pool)
364
+ throw new Error('Database not initialized');
365
+ try {
366
+ // First get or create project
367
+ let project = await this?.getProject(progress.projectPath);
368
+ if (!project) {
369
+ project = await this?.createProject({
370
+ projectPath: progress.projectPath,
371
+ projectName: progress.projectPath?.split('/').pop() || 'Unknown',
372
+ projectType: types_1.ProjectType.UNKNOWN,
373
+ languages: [],
374
+ frameworks: [],
375
+ totalFiles: 0,
376
+ totalLines: 0,
377
+ status: 'analyzing',
378
+ metadata: {}
379
+ });
380
+ }
381
+ const result = await this.pool?.query(`
382
+ INSERT INTO initialization_progress (
383
+ project_id, phase, resume_token, progress_data, tech_stack_data
384
+ ) VALUES ($1, $2, $3, $4, $5)
385
+ ON CONFLICT (project_id) DO UPDATE SET
386
+ phase = EXCLUDED.phase,
387
+ resume_token = EXCLUDED.resume_token,
388
+ progress_data = EXCLUDED.progress_data,
389
+ tech_stack_data = EXCLUDED.tech_stack_data,
390
+ updated_at = NOW()
391
+ RETURNING *
392
+ `, [
393
+ project.id,
394
+ progress.phase,
395
+ progress.resumeToken,
396
+ JSON.stringify(progress.progressData),
397
+ progress.techStackData ? JSON.stringify(progress.techStackData) : null
398
+ ]);
399
+ return this?.mapRowToInitializationProgress(result.rows[0], progress.projectPath);
400
+ }
401
+ catch (error) {
402
+ throw this?.handleError('saveInitializationProgress', error);
403
+ }
404
+ }
405
+ async getInitializationProgress(projectPath) {
406
+ if (!this.pool)
407
+ throw new Error('Database not initialized');
408
+ try {
409
+ const result = await this.pool?.query(`
410
+ SELECT ip.* FROM initialization_progress ip
411
+ JOIN projects p ON ip.project_id = p.id
412
+ JOIN project_paths pp ON p.id = pp.project_id
413
+ WHERE pp.path = $1 AND pp.is_active = true
414
+ LIMIT 1
415
+ `, [projectPath]);
416
+ return result.rows?.length > 0 ? this?.mapRowToInitializationProgress(result.rows[0], projectPath) : null;
417
+ }
418
+ catch (error) {
419
+ throw this?.handleError('getInitializationProgress', error);
420
+ }
421
+ }
422
+ async updateInitializationProgress(resumeToken, updates) {
423
+ if (!this.pool)
424
+ throw new Error('Database not initialized');
425
+ const fields = [];
426
+ const values = [];
427
+ let paramCount = 1;
428
+ Object.entries(updates)?.forEach(([key, value]) => {
429
+ if (key === 'id' || key === 'createdAt' || key === 'projectPath')
430
+ return;
431
+ if (key === 'progressData' || key === 'techStackData') {
432
+ fields?.push(`${this?.mapFieldToColumn(key)} = $${paramCount}`);
433
+ values?.push(JSON.stringify(value));
434
+ }
435
+ else {
436
+ fields?.push(`${this?.mapFieldToColumn(key)} = $${paramCount}`);
437
+ values?.push(value);
438
+ }
439
+ paramCount++;
440
+ });
441
+ values?.push(resumeToken);
442
+ try {
443
+ const result = await this.pool?.query(`
444
+ UPDATE initialization_progress SET ${fields?.join(', ')}, updated_at = NOW()
445
+ WHERE resume_token = $${paramCount}
446
+ RETURNING *
447
+ `, values);
448
+ if (result.rows?.length === 0) {
449
+ throw new Error(`InitializationProgress with resume token ${resumeToken} not found`);
450
+ }
451
+ // Get project path for the returned object
452
+ const projectResult = await this.pool?.query(`
453
+ SELECT pp.path FROM projects p
454
+ JOIN project_paths pp ON p.id = pp.project_id
455
+ WHERE p.id = $1 AND pp.path_type = 'primary' AND pp.is_active = true
456
+ `, [result.rows?.[0].project_id]);
457
+ const projectPath = projectResult.rows[0]?.path || '';
458
+ return this?.mapRowToInitializationProgress(result.rows[0], projectPath);
459
+ }
460
+ catch (error) {
461
+ throw this?.handleError('updateInitializationProgress', error);
462
+ }
463
+ }
464
+ // Continue implementing other required methods...
465
+ async saveDetectedPattern(pattern) {
466
+ if (!this.pool)
467
+ throw new Error('Database not initialized');
468
+ try {
469
+ const project = await this?.getProject(pattern.projectPath);
470
+ if (!project) {
471
+ throw new Error(`Project not found: ${pattern.projectPath}`);
472
+ }
473
+ const result = await this.pool?.query(`
474
+ INSERT INTO detected_patterns (
475
+ project_id, pattern_type, pattern_name, confidence_score, evidence
476
+ ) VALUES ($1, $2, $3, $4, $5)
477
+ RETURNING *
478
+ `, [
479
+ project.id,
480
+ pattern.patternType,
481
+ pattern.patternName,
482
+ pattern.confidence,
483
+ JSON.stringify(pattern.evidence)
484
+ ]);
485
+ return this?.mapRowToDetectedPattern(result.rows[0], pattern.projectPath);
486
+ }
487
+ catch (error) {
488
+ throw this?.handleError('saveDetectedPattern', error);
489
+ }
490
+ }
491
+ async getDetectedPatterns(projectPath, patternType) {
492
+ if (!this.pool)
493
+ throw new Error('Database not initialized');
494
+ try {
495
+ let query = `
496
+ SELECT dp.* FROM detected_patterns dp
497
+ JOIN projects p ON dp.project_id = p.id
498
+ JOIN project_paths pp ON p.id = pp.project_id
499
+ WHERE pp.path = $1 AND pp.is_active = true
500
+ `;
501
+ const params = [projectPath];
502
+ if (patternType) {
503
+ query += ' AND dp.pattern_type = $2';
504
+ params?.push(patternType);
505
+ }
506
+ query += ' ORDER BY dp.confidence_score DESC, dp.created_at DESC';
507
+ const result = await this.pool?.query(query, params);
508
+ return result.rows?.map(row => this?.mapRowToDetectedPattern(row, projectPath));
509
+ }
510
+ catch (error) {
511
+ throw this?.handleError('getDetectedPatterns', error);
512
+ }
513
+ }
514
+ async updatePatternStatus(id, status) {
515
+ if (!this.pool)
516
+ throw new Error('Database not initialized');
517
+ try {
518
+ await this.pool?.query('UPDATE detected_patterns SET status = $1, updated_at = NOW() WHERE id = $2', [status, id]);
519
+ }
520
+ catch (error) {
521
+ throw this?.handleError('updatePatternStatus', error);
522
+ }
523
+ }
524
+ // Implement remaining methods with similar patterns...
525
+ async saveQuestionnaireResponse(response) {
526
+ if (!this.pool)
527
+ throw new Error('Database not initialized');
528
+ try {
529
+ const project = await this?.getProject(response.projectPath);
530
+ if (!project) {
531
+ throw new Error(`Project not found: ${response.projectPath}`);
532
+ }
533
+ const result = await this.pool?.query(`
534
+ INSERT INTO questionnaire_responses (
535
+ project_id, category, question_id, response, metadata
536
+ ) VALUES ($1, $2, $3, $4, $5)
537
+ RETURNING *
538
+ `, [
539
+ project.id,
540
+ response.category,
541
+ response.questionId,
542
+ response.response,
543
+ JSON.stringify(response.metadata || {})
544
+ ]);
545
+ return this?.mapRowToQuestionnaireResponse(result.rows[0], response.projectPath);
546
+ }
547
+ catch (error) {
548
+ throw this?.handleError('saveQuestionnaireResponse', error);
549
+ }
550
+ }
551
+ async getQuestionnaireResponses(projectPath, category) {
552
+ if (!this.pool)
553
+ throw new Error('Database not initialized');
554
+ try {
555
+ let query = `
556
+ SELECT qr.* FROM questionnaire_responses qr
557
+ JOIN projects p ON qr.project_id = p.id
558
+ JOIN project_paths pp ON p.id = pp.project_id
559
+ WHERE pp.path = $1 AND pp.is_active = true
560
+ `;
561
+ const params = [projectPath];
562
+ if (category) {
563
+ query += ' AND qr.category = $2';
564
+ params?.push(category);
565
+ }
566
+ const result = await this.pool?.query(query, params);
567
+ return result.rows?.map(row => this?.mapRowToQuestionnaireResponse(row, projectPath));
568
+ }
569
+ catch (error) {
570
+ throw this?.handleError('getQuestionnaireResponses', error);
571
+ }
572
+ }
573
+ async saveAnalysisResult(analysisResult) {
574
+ if (!this.pool)
575
+ throw new Error('Database not initialized');
576
+ try {
577
+ const project = await this?.getProject(analysisResult.projectPath);
578
+ if (!project) {
579
+ throw new Error(`Project not found: ${analysisResult.projectPath}`);
580
+ }
581
+ const result = await this.pool?.query(`
582
+ INSERT INTO analysis_results (
583
+ project_id, file_path, file_hash, analysis_type, analysis_result, confidence_score
584
+ ) VALUES ($1, $2, $3, $4, $5, $6)
585
+ RETURNING *
586
+ `, [
587
+ project.id,
588
+ analysisResult.filePath,
589
+ analysisResult.fileHash,
590
+ analysisResult.analysisType,
591
+ JSON.stringify(analysisResult.result),
592
+ analysisResult.confidenceScore
593
+ ]);
594
+ return this?.mapRowToAnalysisResult(result.rows[0], analysisResult.projectPath);
595
+ }
596
+ catch (error) {
597
+ throw this?.handleError('saveAnalysisResult', error);
598
+ }
599
+ }
600
+ async getAnalysisResults(projectPath, analysisType, fileHash) {
601
+ if (!this.pool)
602
+ throw new Error('Database not initialized');
603
+ try {
604
+ let query = `
605
+ SELECT ar.* FROM analysis_results ar
606
+ JOIN projects p ON ar.project_id = p.id
607
+ JOIN project_paths pp ON p.id = pp.project_id
608
+ WHERE pp.path = $1 AND pp.is_active = true
609
+ `;
610
+ const params = [projectPath];
611
+ let paramCount = 2;
612
+ if (analysisType) {
613
+ query += ` AND ar.analysis_type = $${paramCount}`;
614
+ params?.push(analysisType);
615
+ paramCount++;
616
+ }
617
+ if (fileHash) {
618
+ query += ` AND ar.file_hash = $${paramCount}`;
619
+ params?.push(fileHash);
620
+ }
621
+ const result = await this.pool?.query(query, params);
622
+ return result.rows?.map(row => this?.mapRowToAnalysisResult(row, projectPath));
623
+ }
624
+ catch (error) {
625
+ throw this?.handleError('getAnalysisResults', error);
626
+ }
627
+ }
628
+ async getSystemConfig(key) {
629
+ if (!this.pool)
630
+ throw new Error('Database not initialized');
631
+ try {
632
+ const result = await this.pool?.query('SELECT config_value FROM system_config WHERE config_key = $1 AND is_global = true', [key]);
633
+ if (result.rows?.length === 0)
634
+ return null;
635
+ return result.rows?.[0].config_value;
636
+ }
637
+ catch (error) {
638
+ throw this?.handleError('getSystemConfig', error);
639
+ }
640
+ }
641
+ async setSystemConfig(key, value, projectId) {
642
+ if (!this.pool)
643
+ throw new Error('Database not initialized');
644
+ try {
645
+ await this.pool?.query(`
646
+ INSERT INTO system_config (config_key, config_value, is_global, project_id)
647
+ VALUES ($1, $2, $3, $4)
648
+ ON CONFLICT (config_key) DO UPDATE SET
649
+ config_value = EXCLUDED.config_value,
650
+ updated_at = NOW()
651
+ `, [key, JSON.stringify(value), !projectId, projectId]);
652
+ }
653
+ catch (error) {
654
+ throw this?.handleError('setSystemConfig', error);
655
+ }
656
+ }
657
+ async getDatabaseStats() {
658
+ if (!this.pool)
659
+ throw new Error('Database not initialized');
660
+ try {
661
+ const result = await this.pool?.query(`
662
+ SELECT
663
+ (SELECT COUNT(*) FROM projects) as projects,
664
+ (SELECT COUNT(*) FROM initialization_progress) as initialization_progress,
665
+ (SELECT COUNT(*) FROM detected_patterns) as detected_patterns,
666
+ (SELECT COUNT(*) FROM questionnaire_responses) as questionnaire_responses,
667
+ (SELECT COUNT(*) FROM analysis_results) as analysis_results,
668
+ (SELECT COUNT(*) FROM projects WHERE status = 'active') as active_projects
669
+ `);
670
+ return {
671
+ projects: parseInt(result.rows?.[0].projects),
672
+ initialization_progress: parseInt(result.rows?.[0].initialization_progress),
673
+ detected_patterns: parseInt(result.rows?.[0].detected_patterns),
674
+ questionnaire_responses: parseInt(result.rows?.[0].questionnaire_responses),
675
+ analysis_results: parseInt(result.rows?.[0].analysis_results),
676
+ active_projects: parseInt(result.rows?.[0].active_projects)
677
+ };
678
+ }
679
+ catch (error) {
680
+ throw this?.handleError('getDatabaseStats', error);
681
+ }
682
+ }
683
+ async recordOperationMetrics(operation, projectId, durationMs, success, error, metadata) {
684
+ if (!this.pool)
685
+ throw new Error('Database not initialized');
686
+ try {
687
+ await this.pool?.query(`
688
+ INSERT INTO operation_metrics (
689
+ operation_type, project_id, duration_ms, success, error_message, metadata
690
+ ) VALUES ($1, $2, $3, $4, $5, $6)
691
+ `, [operation, projectId, durationMs, success, error, JSON.stringify(metadata || {})]);
692
+ }
693
+ catch (error) {
694
+ // Don't throw for metrics recording failures
695
+ this.logger.warn('Failed to record operation metrics', { operation, error });
696
+ }
697
+ }
698
+ async cleanupExpiredResumeStates() {
699
+ if (!this.pool)
700
+ throw new Error('Database not initialized');
701
+ try {
702
+ const result = await this.pool?.query('SELECT cleanup_expired_resume_states()');
703
+ return parseInt(result.rows?.[0].cleanup_expired_resume_states);
704
+ }
705
+ catch (error) {
706
+ throw this?.handleError('cleanupExpiredResumeStates', error);
707
+ }
708
+ }
709
+ async archiveOldAnalysisResults(olderThanDays) {
710
+ if (!this.pool)
711
+ throw new Error('Database not initialized');
712
+ try {
713
+ const result = await this.pool?.query(`
714
+ DELETE FROM analysis_results
715
+ WHERE created_at < NOW() - INTERVAL '${olderThanDays} days'
716
+ `);
717
+ return result.rowCount || 0;
718
+ }
719
+ catch (error) {
720
+ throw this?.handleError('archiveOldAnalysisResults', error);
721
+ }
722
+ }
723
+ // Generic query method for database operations
724
+ async query(sql, params) {
725
+ if (!this.pool)
726
+ throw new Error('Database not initialized');
727
+ try {
728
+ const result = await this.pool?.query(sql, params || []);
729
+ return {
730
+ rows: result.rows || [],
731
+ rowCount: result.rowCount || 0
732
+ };
733
+ }
734
+ catch (error) {
735
+ throw this?.handleError('query', error);
736
+ }
737
+ }
738
+ // Helper mapping methods
739
+ mapRowToProject(row) {
740
+ return {
741
+ id: row.id,
742
+ projectPath: row.project_path,
743
+ projectName: row.project_name,
744
+ projectType: row.project_type,
745
+ languages: row.languages,
746
+ frameworks: row.frameworks,
747
+ projectSize: row.project_size,
748
+ domain: row.domain,
749
+ totalFiles: row.total_files,
750
+ totalLines: row.total_lines,
751
+ status: row.status,
752
+ metadata: row.metadata,
753
+ createdAt: row.created_at,
754
+ updatedAt: row.updated_at
755
+ };
756
+ }
757
+ mapRowToProjectPath(row) {
758
+ return {
759
+ id: row.id,
760
+ projectId: row.project_id,
761
+ path: row.path,
762
+ pathType: row.path_type,
763
+ isActive: row.is_active,
764
+ createdAt: row.created_at,
765
+ deactivatedAt: row.deactivated_at
766
+ };
767
+ }
768
+ mapRowToInitializationProgress(row, projectPath) {
769
+ return {
770
+ id: row.id,
771
+ projectPath: projectPath,
772
+ phase: row.phase,
773
+ resumeToken: row.resume_token,
774
+ progressData: row.progress_data,
775
+ techStackData: row.tech_stack_data,
776
+ createdAt: row.created_at,
777
+ updatedAt: row.updated_at
778
+ };
779
+ }
780
+ mapRowToDetectedPattern(row, projectPath) {
781
+ return {
782
+ id: row.id,
783
+ projectPath: projectPath,
784
+ patternType: row.pattern_type,
785
+ patternName: row.pattern_name,
786
+ confidence: row.confidence_score,
787
+ evidence: row.evidence,
788
+ createdAt: row.created_at
789
+ };
790
+ }
791
+ mapRowToQuestionnaireResponse(row, projectPath) {
792
+ return {
793
+ id: row.id,
794
+ projectPath: projectPath,
795
+ category: row.category,
796
+ questionId: row.question_id,
797
+ response: row.response,
798
+ metadata: row.metadata,
799
+ createdAt: row.created_at
800
+ };
801
+ }
802
+ mapRowToAnalysisResult(row, projectPath) {
803
+ return {
804
+ id: row.id,
805
+ projectPath: projectPath,
806
+ filePath: row.file_path,
807
+ fileHash: row.file_hash,
808
+ analysisType: row.analysis_type,
809
+ result: row.analysis_result,
810
+ confidenceScore: row.confidence_score,
811
+ createdAt: row.created_at
812
+ };
813
+ }
814
+ mapFieldToColumn(field) {
815
+ const fieldMap = {
816
+ 'projectPath': 'project_path',
817
+ 'projectName': 'project_name',
818
+ 'projectType': 'project_type',
819
+ 'projectSize': 'project_size',
820
+ 'totalFiles': 'total_files',
821
+ 'totalLines': 'total_lines',
822
+ 'resumeToken': 'resume_token',
823
+ 'progressData': 'progress_data',
824
+ 'techStackData': 'tech_stack_data',
825
+ 'patternType': 'pattern_type',
826
+ 'patternName': 'pattern_name',
827
+ 'confidenceScore': 'confidence_score',
828
+ 'questionId': 'question_id',
829
+ 'filePath': 'file_path',
830
+ 'fileHash': 'file_hash',
831
+ 'analysisType': 'analysis_type',
832
+ 'analysisResult': 'analysis_result'
833
+ };
834
+ return fieldMap[field] || field;
835
+ }
836
+ }
837
+ exports.PostgreSQLAdapter = PostgreSQLAdapter;
838
+ //# sourceMappingURL=postgresql.js.map