@tonycasey/lisa 2.25.4 → 2.27.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 (514) hide show
  1. package/dist/lib/application/handlers/PromptSubmitHandler.d.ts.map +1 -1
  2. package/dist/lib/application/handlers/PromptSubmitHandler.js +2 -2
  3. package/dist/lib/application/handlers/PromptSubmitHandler.js.map +1 -1
  4. package/dist/lib/application/handlers/SessionStartHandler.d.ts +8 -24
  5. package/dist/lib/application/handlers/SessionStartHandler.d.ts.map +1 -1
  6. package/dist/lib/application/handlers/SessionStartHandler.js +43 -31
  7. package/dist/lib/application/handlers/SessionStartHandler.js.map +1 -1
  8. package/dist/lib/application/handlers/SessionStopHandler.d.ts.map +1 -1
  9. package/dist/lib/application/handlers/SessionStopHandler.js +2 -3
  10. package/dist/lib/application/handlers/SessionStopHandler.js.map +1 -1
  11. package/dist/lib/application/handlers/pr/PrPollHandler.d.ts +1 -2
  12. package/dist/lib/application/handlers/pr/PrPollHandler.d.ts.map +1 -1
  13. package/dist/lib/application/handlers/pr/PrPollHandler.js +3 -4
  14. package/dist/lib/application/handlers/pr/PrPollHandler.js.map +1 -1
  15. package/dist/lib/application/handlers/pr/PrRememberHandler.d.ts +1 -2
  16. package/dist/lib/application/handlers/pr/PrRememberHandler.d.ts.map +1 -1
  17. package/dist/lib/application/handlers/pr/PrRememberHandler.js +2 -3
  18. package/dist/lib/application/handlers/pr/PrRememberHandler.js.map +1 -1
  19. package/dist/lib/application/services/GitExtractorService.d.ts +22 -0
  20. package/dist/lib/application/services/GitExtractorService.d.ts.map +1 -0
  21. package/dist/lib/application/services/GitExtractorService.js +232 -0
  22. package/dist/lib/application/services/GitExtractorService.js.map +1 -0
  23. package/dist/lib/application/services/GitIndexingService.d.ts +25 -0
  24. package/dist/lib/application/services/GitIndexingService.d.ts.map +1 -0
  25. package/dist/lib/application/services/GitIndexingService.js +175 -0
  26. package/dist/lib/application/services/GitIndexingService.js.map +1 -0
  27. package/dist/lib/application/services/GitTriageService.d.ts +45 -0
  28. package/dist/lib/application/services/GitTriageService.d.ts.map +1 -0
  29. package/dist/lib/application/services/GitTriageService.js +360 -0
  30. package/dist/lib/application/services/GitTriageService.js.map +1 -0
  31. package/dist/lib/application/services/MemoryContextLoader.d.ts +7 -16
  32. package/dist/lib/application/services/MemoryContextLoader.d.ts.map +1 -1
  33. package/dist/lib/application/services/MemoryContextLoader.js +12 -75
  34. package/dist/lib/application/services/MemoryContextLoader.js.map +1 -1
  35. package/dist/lib/application/services/RepoProfileService.d.ts +37 -0
  36. package/dist/lib/application/services/RepoProfileService.d.ts.map +1 -0
  37. package/dist/lib/application/services/RepoProfileService.js +388 -0
  38. package/dist/lib/application/services/RepoProfileService.js.map +1 -0
  39. package/dist/lib/application/services/SessionContextFormatter.d.ts +11 -1
  40. package/dist/lib/application/services/SessionContextFormatter.d.ts.map +1 -1
  41. package/dist/lib/application/services/SessionContextFormatter.js +59 -3
  42. package/dist/lib/application/services/SessionContextFormatter.js.map +1 -1
  43. package/dist/lib/application/services/index.d.ts +2 -0
  44. package/dist/lib/application/services/index.d.ts.map +1 -1
  45. package/dist/lib/application/services/index.js +7 -1
  46. package/dist/lib/application/services/index.js.map +1 -1
  47. package/dist/lib/cli.d.ts +2 -2
  48. package/dist/lib/cli.d.ts.map +1 -1
  49. package/dist/lib/cli.js +4 -52
  50. package/dist/lib/cli.js.map +1 -1
  51. package/dist/lib/commands/doctor.d.ts +5 -12
  52. package/dist/lib/commands/doctor.d.ts.map +1 -1
  53. package/dist/lib/commands/doctor.js +60 -280
  54. package/dist/lib/commands/doctor.js.map +1 -1
  55. package/dist/lib/commands/index.d.ts +2 -3
  56. package/dist/lib/commands/index.d.ts.map +1 -1
  57. package/dist/lib/commands/index.js +2 -7
  58. package/dist/lib/commands/index.js.map +1 -1
  59. package/dist/lib/commands/init.d.ts +2 -8
  60. package/dist/lib/commands/init.d.ts.map +1 -1
  61. package/dist/lib/commands/init.js +13 -67
  62. package/dist/lib/commands/init.js.map +1 -1
  63. package/dist/lib/commands/knowledge.d.ts.map +1 -1
  64. package/dist/lib/commands/knowledge.js +1 -2
  65. package/dist/lib/commands/knowledge.js.map +1 -1
  66. package/dist/lib/commands/pr.d.ts.map +1 -1
  67. package/dist/lib/commands/pr.js +20 -21
  68. package/dist/lib/commands/pr.js.map +1 -1
  69. package/dist/lib/commands/shared/constants.d.ts +1 -15
  70. package/dist/lib/commands/shared/constants.d.ts.map +1 -1
  71. package/dist/lib/commands/shared/constants.js +2 -5
  72. package/dist/lib/commands/shared/constants.js.map +1 -1
  73. package/dist/lib/commands/shared/index.d.ts +1 -1
  74. package/dist/lib/commands/shared/index.d.ts.map +1 -1
  75. package/dist/lib/commands/shared/index.js +1 -3
  76. package/dist/lib/commands/shared/index.js.map +1 -1
  77. package/dist/lib/commands/skills.d.ts +1 -1
  78. package/dist/lib/commands/skills.js +5 -5
  79. package/dist/lib/commands/skills.js.map +1 -1
  80. package/dist/lib/domain/interfaces/ICommitEnricher.d.ts +81 -0
  81. package/dist/lib/domain/interfaces/ICommitEnricher.d.ts.map +1 -0
  82. package/dist/lib/domain/interfaces/ICommitEnricher.js +33 -0
  83. package/dist/lib/domain/interfaces/ICommitEnricher.js.map +1 -0
  84. package/dist/lib/domain/interfaces/IConsolidationService.d.ts +3 -2
  85. package/dist/lib/domain/interfaces/IConsolidationService.d.ts.map +1 -1
  86. package/dist/lib/domain/interfaces/ICurationService.d.ts +3 -2
  87. package/dist/lib/domain/interfaces/ICurationService.d.ts.map +1 -1
  88. package/dist/lib/domain/interfaces/IFileSystem.d.ts +28 -0
  89. package/dist/lib/domain/interfaces/IFileSystem.d.ts.map +1 -0
  90. package/dist/lib/domain/interfaces/IFileSystem.js +12 -0
  91. package/dist/lib/domain/interfaces/IFileSystem.js.map +1 -0
  92. package/dist/lib/domain/interfaces/IGitClient.d.ts +86 -0
  93. package/dist/lib/domain/interfaces/IGitClient.d.ts.map +1 -1
  94. package/dist/lib/domain/interfaces/IGitExtractor.d.ts +160 -0
  95. package/dist/lib/domain/interfaces/IGitExtractor.d.ts.map +1 -0
  96. package/dist/lib/domain/interfaces/IGitExtractor.js +37 -0
  97. package/dist/lib/domain/interfaces/IGitExtractor.js.map +1 -0
  98. package/dist/lib/domain/interfaces/IGitIndexingService.d.ts +69 -0
  99. package/dist/lib/domain/interfaces/IGitIndexingService.d.ts.map +1 -0
  100. package/dist/lib/domain/interfaces/IGitIndexingService.js +43 -0
  101. package/dist/lib/domain/interfaces/IGitIndexingService.js.map +1 -0
  102. package/dist/lib/domain/interfaces/IGitMemClient.d.ts +44 -0
  103. package/dist/lib/domain/interfaces/IGitMemClient.d.ts.map +1 -0
  104. package/dist/lib/domain/interfaces/IGitMemClient.js +9 -0
  105. package/dist/lib/domain/interfaces/IGitMemClient.js.map +1 -0
  106. package/dist/lib/domain/interfaces/IGitTriageService.d.ts +180 -0
  107. package/dist/lib/domain/interfaces/IGitTriageService.d.ts.map +1 -0
  108. package/dist/lib/domain/interfaces/IGitTriageService.js +12 -0
  109. package/dist/lib/domain/interfaces/IGitTriageService.js.map +1 -0
  110. package/dist/lib/domain/interfaces/ILisaServices.d.ts +0 -9
  111. package/dist/lib/domain/interfaces/ILisaServices.d.ts.map +1 -1
  112. package/dist/lib/domain/interfaces/IMemoryService.d.ts +14 -89
  113. package/dist/lib/domain/interfaces/IMemoryService.d.ts.map +1 -1
  114. package/dist/lib/domain/interfaces/INlCurationService.d.ts +4 -4
  115. package/dist/lib/domain/interfaces/INlCurationService.d.ts.map +1 -1
  116. package/dist/lib/domain/interfaces/IRecursionService.d.ts +3 -2
  117. package/dist/lib/domain/interfaces/IRecursionService.d.ts.map +1 -1
  118. package/dist/lib/domain/interfaces/IRepoProfileService.d.ts +132 -0
  119. package/dist/lib/domain/interfaces/IRepoProfileService.d.ts.map +1 -0
  120. package/dist/lib/domain/interfaces/IRepoProfileService.js +25 -0
  121. package/dist/lib/domain/interfaces/IRepoProfileService.js.map +1 -0
  122. package/dist/lib/domain/interfaces/ISummarizationService.d.ts +4 -3
  123. package/dist/lib/domain/interfaces/ISummarizationService.d.ts.map +1 -1
  124. package/dist/lib/domain/interfaces/ITaskService.d.ts +11 -16
  125. package/dist/lib/domain/interfaces/ITaskService.d.ts.map +1 -1
  126. package/dist/lib/domain/interfaces/dal/IMemoryRepository.d.ts +0 -1
  127. package/dist/lib/domain/interfaces/dal/IMemoryRepository.d.ts.map +1 -1
  128. package/dist/lib/domain/interfaces/dal/IRepositoryRouter.d.ts +1 -1
  129. package/dist/lib/domain/interfaces/dal/IRepositoryRouter.js +2 -2
  130. package/dist/lib/domain/interfaces/dal/IRepositoryRouter.js.map +1 -1
  131. package/dist/lib/domain/interfaces/events/IMemoryEvent.d.ts +6 -4
  132. package/dist/lib/domain/interfaces/events/IMemoryEvent.d.ts.map +1 -1
  133. package/dist/lib/domain/interfaces/events/IMemoryEvent.js +2 -4
  134. package/dist/lib/domain/interfaces/events/IMemoryEvent.js.map +1 -1
  135. package/dist/lib/domain/interfaces/index.d.ts +9 -3
  136. package/dist/lib/domain/interfaces/index.d.ts.map +1 -1
  137. package/dist/lib/domain/interfaces/index.js +13 -1
  138. package/dist/lib/domain/interfaces/index.js.map +1 -1
  139. package/dist/lib/infrastructure/adapters/claude/session-start.d.ts +1 -0
  140. package/dist/lib/infrastructure/adapters/claude/session-start.d.ts.map +1 -1
  141. package/dist/lib/infrastructure/adapters/claude/session-start.js +18 -4
  142. package/dist/lib/infrastructure/adapters/claude/session-start.js.map +1 -1
  143. package/dist/lib/infrastructure/adapters/gitmem/GitMemAdapter.d.ts +22 -0
  144. package/dist/lib/infrastructure/adapters/gitmem/GitMemAdapter.d.ts.map +1 -0
  145. package/dist/lib/infrastructure/adapters/gitmem/GitMemAdapter.js +88 -0
  146. package/dist/lib/infrastructure/adapters/gitmem/GitMemAdapter.js.map +1 -0
  147. package/dist/lib/infrastructure/adapters/gitmem/GitMemTaskAdapter.d.ts +19 -0
  148. package/dist/lib/infrastructure/adapters/gitmem/GitMemTaskAdapter.d.ts.map +1 -0
  149. package/dist/lib/infrastructure/adapters/gitmem/GitMemTaskAdapter.js +109 -0
  150. package/dist/lib/infrastructure/adapters/gitmem/GitMemTaskAdapter.js.map +1 -0
  151. package/dist/lib/infrastructure/adapters/gitmem/index.d.ts +3 -0
  152. package/dist/lib/infrastructure/adapters/gitmem/index.d.ts.map +1 -0
  153. package/dist/lib/infrastructure/adapters/gitmem/index.js +8 -0
  154. package/dist/lib/infrastructure/adapters/gitmem/index.js.map +1 -0
  155. package/dist/lib/infrastructure/dal/connections/index.d.ts +0 -4
  156. package/dist/lib/infrastructure/dal/connections/index.d.ts.map +1 -1
  157. package/dist/lib/infrastructure/dal/connections/index.js +2 -10
  158. package/dist/lib/infrastructure/dal/connections/index.js.map +1 -1
  159. package/dist/lib/infrastructure/dal/index.d.ts +4 -22
  160. package/dist/lib/infrastructure/dal/index.d.ts.map +1 -1
  161. package/dist/lib/infrastructure/dal/index.js +3 -37
  162. package/dist/lib/infrastructure/dal/index.js.map +1 -1
  163. package/dist/lib/infrastructure/dal/repositories/index.d.ts +1 -3
  164. package/dist/lib/infrastructure/dal/repositories/index.d.ts.map +1 -1
  165. package/dist/lib/infrastructure/dal/repositories/index.js +2 -12
  166. package/dist/lib/infrastructure/dal/repositories/index.js.map +1 -1
  167. package/dist/lib/infrastructure/dal/repositories/neo4j/index.d.ts +0 -2
  168. package/dist/lib/infrastructure/dal/repositories/neo4j/index.d.ts.map +1 -1
  169. package/dist/lib/infrastructure/dal/repositories/neo4j/index.js +2 -6
  170. package/dist/lib/infrastructure/dal/repositories/neo4j/index.js.map +1 -1
  171. package/dist/lib/infrastructure/di/ServiceFactory.d.ts +2 -9
  172. package/dist/lib/infrastructure/di/ServiceFactory.d.ts.map +1 -1
  173. package/dist/lib/infrastructure/di/bootstrap.d.ts +3 -1
  174. package/dist/lib/infrastructure/di/bootstrap.d.ts.map +1 -1
  175. package/dist/lib/infrastructure/di/bootstrap.js +29 -131
  176. package/dist/lib/infrastructure/di/bootstrap.js.map +1 -1
  177. package/dist/lib/infrastructure/di/tokens.d.ts +0 -20
  178. package/dist/lib/infrastructure/di/tokens.d.ts.map +1 -1
  179. package/dist/lib/infrastructure/di/tokens.js +0 -11
  180. package/dist/lib/infrastructure/di/tokens.js.map +1 -1
  181. package/dist/lib/infrastructure/git/GitClient.d.ts +11 -1
  182. package/dist/lib/infrastructure/git/GitClient.d.ts.map +1 -1
  183. package/dist/lib/infrastructure/git/GitClient.js +137 -0
  184. package/dist/lib/infrastructure/git/GitClient.js.map +1 -1
  185. package/dist/lib/infrastructure/git-mem/GitMemClient.d.ts +37 -0
  186. package/dist/lib/infrastructure/git-mem/GitMemClient.d.ts.map +1 -0
  187. package/dist/lib/infrastructure/git-mem/GitMemClient.js +151 -0
  188. package/dist/lib/infrastructure/git-mem/GitMemClient.js.map +1 -0
  189. package/dist/lib/infrastructure/git-mem/GitMemFactory.d.ts +36 -0
  190. package/dist/lib/infrastructure/git-mem/GitMemFactory.d.ts.map +1 -0
  191. package/dist/lib/infrastructure/git-mem/GitMemFactory.js +56 -0
  192. package/dist/lib/infrastructure/git-mem/GitMemFactory.js.map +1 -0
  193. package/dist/lib/infrastructure/git-mem/index.d.ts +7 -0
  194. package/dist/lib/infrastructure/git-mem/index.d.ts.map +1 -0
  195. package/dist/lib/infrastructure/git-mem/index.js +13 -0
  196. package/dist/lib/infrastructure/git-mem/index.js.map +1 -0
  197. package/dist/lib/infrastructure/git-mem/types.d.ts +90 -0
  198. package/dist/lib/infrastructure/git-mem/types.d.ts.map +1 -0
  199. package/dist/lib/infrastructure/git-mem/types.js +9 -0
  200. package/dist/lib/infrastructure/git-mem/types.js.map +1 -0
  201. package/dist/lib/infrastructure/github/GitHubDataFetcher.d.ts +21 -0
  202. package/dist/lib/infrastructure/github/GitHubDataFetcher.d.ts.map +1 -0
  203. package/dist/lib/infrastructure/github/GitHubDataFetcher.js +111 -0
  204. package/dist/lib/infrastructure/github/GitHubDataFetcher.js.map +1 -0
  205. package/dist/lib/infrastructure/index.d.ts +0 -1
  206. package/dist/lib/infrastructure/index.d.ts.map +1 -1
  207. package/dist/lib/infrastructure/index.js +1 -3
  208. package/dist/lib/infrastructure/index.js.map +1 -1
  209. package/dist/lib/infrastructure/logging/Logger.d.ts +13 -1
  210. package/dist/lib/infrastructure/logging/Logger.d.ts.map +1 -1
  211. package/dist/lib/infrastructure/logging/Logger.js +25 -7
  212. package/dist/lib/infrastructure/logging/Logger.js.map +1 -1
  213. package/dist/lib/infrastructure/logging/factory.d.ts +5 -1
  214. package/dist/lib/infrastructure/logging/factory.d.ts.map +1 -1
  215. package/dist/lib/infrastructure/logging/factory.js +3 -0
  216. package/dist/lib/infrastructure/logging/factory.js.map +1 -1
  217. package/dist/lib/infrastructure/logging/index.d.ts +1 -1
  218. package/dist/lib/infrastructure/logging/index.d.ts.map +1 -1
  219. package/dist/lib/infrastructure/logging/index.js.map +1 -1
  220. package/dist/lib/infrastructure/services/CommitEnricher.d.ts +26 -0
  221. package/dist/lib/infrastructure/services/CommitEnricher.d.ts.map +1 -0
  222. package/dist/lib/infrastructure/services/CommitEnricher.js +214 -0
  223. package/dist/lib/infrastructure/services/CommitEnricher.js.map +1 -0
  224. package/dist/lib/infrastructure/services/CurationService.d.ts.map +1 -1
  225. package/dist/lib/infrastructure/services/CurationService.js +4 -4
  226. package/dist/lib/infrastructure/services/CurationService.js.map +1 -1
  227. package/dist/lib/infrastructure/services/GitMemMemoryService.d.ts +24 -0
  228. package/dist/lib/infrastructure/services/GitMemMemoryService.d.ts.map +1 -0
  229. package/dist/lib/infrastructure/services/GitMemMemoryService.js +114 -0
  230. package/dist/lib/infrastructure/services/GitMemMemoryService.js.map +1 -0
  231. package/dist/lib/infrastructure/services/GitMemTaskService.d.ts +24 -0
  232. package/dist/lib/infrastructure/services/GitMemTaskService.d.ts.map +1 -0
  233. package/dist/lib/infrastructure/services/GitMemTaskService.js +142 -0
  234. package/dist/lib/infrastructure/services/GitMemTaskService.js.map +1 -0
  235. package/dist/lib/infrastructure/services/LlmGuard.d.ts.map +1 -1
  236. package/dist/lib/infrastructure/services/LlmGuard.js +44 -13
  237. package/dist/lib/infrastructure/services/LlmGuard.js.map +1 -1
  238. package/dist/lib/infrastructure/services/NlCurationService.d.ts.map +1 -1
  239. package/dist/lib/infrastructure/services/NlCurationService.js +12 -12
  240. package/dist/lib/infrastructure/services/NlCurationService.js.map +1 -1
  241. package/dist/lib/infrastructure/services/NodeFileSystem.d.ts +12 -0
  242. package/dist/lib/infrastructure/services/NodeFileSystem.d.ts.map +1 -0
  243. package/dist/lib/infrastructure/services/NodeFileSystem.js +40 -0
  244. package/dist/lib/infrastructure/services/NodeFileSystem.js.map +1 -0
  245. package/dist/lib/infrastructure/services/RecursionService.d.ts +1 -1
  246. package/dist/lib/infrastructure/services/RecursionService.d.ts.map +1 -1
  247. package/dist/lib/infrastructure/services/RecursionService.js +8 -8
  248. package/dist/lib/infrastructure/services/RecursionService.js.map +1 -1
  249. package/dist/lib/infrastructure/services/SkillMemoryService.d.ts +26 -0
  250. package/dist/lib/infrastructure/services/SkillMemoryService.d.ts.map +1 -0
  251. package/dist/lib/infrastructure/services/SkillMemoryService.js +317 -0
  252. package/dist/lib/infrastructure/services/SkillMemoryService.js.map +1 -0
  253. package/dist/lib/infrastructure/services/SkillPromptService.d.ts +16 -0
  254. package/dist/lib/infrastructure/services/SkillPromptService.d.ts.map +1 -0
  255. package/dist/lib/infrastructure/services/SkillPromptService.js +53 -0
  256. package/dist/lib/infrastructure/services/SkillPromptService.js.map +1 -0
  257. package/dist/lib/infrastructure/services/SkillTaskService.d.ts +32 -0
  258. package/dist/lib/infrastructure/services/SkillTaskService.d.ts.map +1 -0
  259. package/dist/lib/infrastructure/services/SkillTaskService.js +214 -0
  260. package/dist/lib/infrastructure/services/SkillTaskService.js.map +1 -0
  261. package/dist/lib/infrastructure/services/SummarizationService.d.ts.map +1 -1
  262. package/dist/lib/infrastructure/services/SummarizationService.js +3 -5
  263. package/dist/lib/infrastructure/services/SummarizationService.js.map +1 -1
  264. package/dist/lib/infrastructure/services/index.d.ts +7 -4
  265. package/dist/lib/infrastructure/services/index.d.ts.map +1 -1
  266. package/dist/lib/infrastructure/services/index.js +31 -13
  267. package/dist/lib/infrastructure/services/index.js.map +1 -1
  268. package/dist/lib/infrastructure/services/patterns/HeuristicPatterns.d.ts +72 -0
  269. package/dist/lib/infrastructure/services/patterns/HeuristicPatterns.d.ts.map +1 -0
  270. package/dist/lib/infrastructure/services/patterns/HeuristicPatterns.js +261 -0
  271. package/dist/lib/infrastructure/services/patterns/HeuristicPatterns.js.map +1 -0
  272. package/dist/lib/infrastructure/services/prompts/commit-extraction.d.ts +26 -0
  273. package/dist/lib/infrastructure/services/prompts/commit-extraction.d.ts.map +1 -0
  274. package/dist/lib/infrastructure/services/prompts/commit-extraction.js +151 -0
  275. package/dist/lib/infrastructure/services/prompts/commit-extraction.js.map +1 -0
  276. package/dist/lib/{skills/shared/services/interfaces/IMemoryService.d.ts → infrastructure/services/skill-interfaces/ISkillMemoryService.d.ts} +38 -47
  277. package/dist/lib/infrastructure/services/skill-interfaces/ISkillMemoryService.d.ts.map +1 -0
  278. package/dist/lib/{domain/interfaces/IMcpClient.js → infrastructure/services/skill-interfaces/ISkillMemoryService.js} +1 -1
  279. package/dist/lib/infrastructure/services/skill-interfaces/ISkillMemoryService.js.map +1 -0
  280. package/dist/lib/infrastructure/services/skill-interfaces/ISkillPromptService.d.ts +48 -0
  281. package/dist/lib/infrastructure/services/skill-interfaces/ISkillPromptService.d.ts.map +1 -0
  282. package/dist/lib/infrastructure/services/skill-interfaces/ISkillPromptService.js +10 -0
  283. package/dist/lib/infrastructure/services/skill-interfaces/ISkillPromptService.js.map +1 -0
  284. package/dist/lib/{skills/shared/services/interfaces/ITaskService.d.ts → infrastructure/services/skill-interfaces/ISkillTaskService.d.ts} +29 -27
  285. package/dist/lib/infrastructure/services/skill-interfaces/ISkillTaskService.d.ts.map +1 -0
  286. package/dist/lib/infrastructure/services/skill-interfaces/ISkillTaskService.js +13 -0
  287. package/dist/lib/infrastructure/services/skill-interfaces/ISkillTaskService.js.map +1 -0
  288. package/dist/lib/infrastructure/services/skill-interfaces/index.d.ts +16 -0
  289. package/dist/lib/infrastructure/services/skill-interfaces/index.d.ts.map +1 -0
  290. package/dist/lib/infrastructure/services/skill-interfaces/index.js +11 -0
  291. package/dist/lib/infrastructure/services/skill-interfaces/index.js.map +1 -0
  292. package/dist/lib/scanner/reviewer.js +2 -2
  293. package/dist/lib/scanner/reviewer.js.map +1 -1
  294. package/dist/lib/skills/github/bump-version.d.ts +14 -0
  295. package/dist/lib/skills/github/bump-version.d.ts.map +1 -0
  296. package/dist/lib/skills/{git → github}/bump-version.js +22 -1
  297. package/dist/lib/skills/github/bump-version.js.map +1 -0
  298. package/dist/lib/skills/github/github.d.ts +0 -1
  299. package/dist/lib/skills/github/github.d.ts.map +1 -1
  300. package/dist/lib/skills/github/github.js +15 -45
  301. package/dist/lib/skills/github/github.js.map +1 -1
  302. package/dist/lib/skills/memory/memory.js +5 -9
  303. package/dist/lib/skills/memory/memory.js.map +1 -1
  304. package/dist/lib/skills/prompt/prompt.d.ts +4 -1
  305. package/dist/lib/skills/prompt/prompt.d.ts.map +1 -1
  306. package/dist/lib/skills/prompt/prompt.js +10 -11
  307. package/dist/lib/skills/prompt/prompt.js.map +1 -1
  308. package/dist/lib/skills/{init-review → review}/ai-enrich.d.ts +3 -0
  309. package/dist/lib/skills/review/ai-enrich.d.ts.map +1 -0
  310. package/dist/lib/skills/{init-review → review}/ai-enrich.js +6 -6
  311. package/dist/lib/skills/review/ai-enrich.js.map +1 -0
  312. package/dist/lib/skills/review/init-review.d.ts.map +1 -0
  313. package/dist/lib/skills/review/init-review.js.map +1 -0
  314. package/dist/lib/skills/shared/clients/index.d.ts +4 -3
  315. package/dist/lib/skills/shared/clients/index.d.ts.map +1 -1
  316. package/dist/lib/skills/shared/clients/index.js +7 -10
  317. package/dist/lib/skills/shared/clients/index.js.map +1 -1
  318. package/dist/lib/skills/shared/clients/interfaces/index.d.ts +0 -3
  319. package/dist/lib/skills/shared/clients/interfaces/index.d.ts.map +1 -1
  320. package/dist/lib/skills/shared/clients/interfaces/index.js +0 -3
  321. package/dist/lib/skills/shared/clients/interfaces/index.js.map +1 -1
  322. package/dist/lib/skills/shared/index.d.ts +3 -2
  323. package/dist/lib/skills/shared/index.d.ts.map +1 -1
  324. package/dist/lib/skills/shared/index.js +3 -2
  325. package/dist/lib/skills/shared/index.js.map +1 -1
  326. package/dist/lib/skills/shared/services/GitHubSyncService.d.ts +4 -0
  327. package/dist/lib/skills/shared/services/GitHubSyncService.d.ts.map +1 -1
  328. package/dist/lib/skills/shared/services/GitHubSyncService.js +7 -7
  329. package/dist/lib/skills/shared/services/GitHubSyncService.js.map +1 -1
  330. package/dist/lib/skills/shared/services/MemoryCliService.d.ts +0 -2
  331. package/dist/lib/skills/shared/services/MemoryCliService.d.ts.map +1 -1
  332. package/dist/lib/skills/shared/services/MemoryCliService.js +11 -17
  333. package/dist/lib/skills/shared/services/MemoryCliService.js.map +1 -1
  334. package/dist/lib/skills/shared/services/StorageService.d.ts.map +1 -1
  335. package/dist/lib/skills/shared/services/StorageService.js +6 -2
  336. package/dist/lib/skills/shared/services/StorageService.js.map +1 -1
  337. package/dist/lib/skills/shared/services/TaskCliService.d.ts +3 -3
  338. package/dist/lib/skills/shared/services/TaskCliService.d.ts.map +1 -1
  339. package/dist/lib/skills/shared/services/TaskCliService.js +10 -14
  340. package/dist/lib/skills/shared/services/TaskCliService.js.map +1 -1
  341. package/dist/lib/skills/shared/services/index.d.ts +8 -4
  342. package/dist/lib/skills/shared/services/index.d.ts.map +1 -1
  343. package/dist/lib/skills/shared/services/index.js +15 -10
  344. package/dist/lib/skills/shared/services/index.js.map +1 -1
  345. package/dist/lib/skills/shared/services/interfaces/index.d.ts +4 -2
  346. package/dist/lib/skills/shared/services/interfaces/index.d.ts.map +1 -1
  347. package/dist/lib/skills/shared/services/interfaces/index.js +4 -2
  348. package/dist/lib/skills/shared/services/interfaces/index.js.map +1 -1
  349. package/dist/lib/skills/shared/utils/index.d.ts +0 -1
  350. package/dist/lib/skills/shared/utils/index.d.ts.map +1 -1
  351. package/dist/lib/skills/shared/utils/index.js +1 -9
  352. package/dist/lib/skills/shared/utils/index.js.map +1 -1
  353. package/dist/lib/skills/tasks/tasks.d.ts +9 -6
  354. package/dist/lib/skills/tasks/tasks.d.ts.map +1 -1
  355. package/dist/lib/skills/tasks/tasks.js +17 -17
  356. package/dist/lib/skills/tasks/tasks.js.map +1 -1
  357. package/dist/opencode/lisa.js +62391 -14984
  358. package/dist/package.json +5 -4
  359. package/dist/project/.lisa/.env.template +12 -9
  360. package/dist/project/.lisa/rules/shared/git-rules.md +13 -12
  361. package/dist/project/.lisa/skills/github/SKILL.md +121 -3
  362. package/dist/project/.lisa/skills/github/pr-description-template.txt +8 -0
  363. package/dist/project/.lisa/skills/pr/SKILL.md +1 -2
  364. package/dist/project/.lisa/skills/pr/pr-description-template.txt +8 -0
  365. package/dist/project/.lisa/skills/{init-review → review}/SKILL.md +9 -9
  366. package/package.json +5 -4
  367. package/dist/lib/commands/docker.d.ts +0 -20
  368. package/dist/lib/commands/docker.d.ts.map +0 -1
  369. package/dist/lib/commands/docker.js +0 -27
  370. package/dist/lib/commands/docker.js.map +0 -1
  371. package/dist/lib/domain/interfaces/IMcpClient.d.ts +0 -44
  372. package/dist/lib/domain/interfaces/IMcpClient.d.ts.map +0 -1
  373. package/dist/lib/domain/interfaces/IMcpClient.js.map +0 -1
  374. package/dist/lib/infrastructure/dal/RepositoryFactory.d.ts +0 -71
  375. package/dist/lib/infrastructure/dal/RepositoryFactory.d.ts.map +0 -1
  376. package/dist/lib/infrastructure/dal/RepositoryFactory.js +0 -134
  377. package/dist/lib/infrastructure/dal/RepositoryFactory.js.map +0 -1
  378. package/dist/lib/infrastructure/dal/connections/McpConnectionManager.d.ts +0 -56
  379. package/dist/lib/infrastructure/dal/connections/McpConnectionManager.d.ts.map +0 -1
  380. package/dist/lib/infrastructure/dal/connections/McpConnectionManager.js +0 -98
  381. package/dist/lib/infrastructure/dal/connections/McpConnectionManager.js.map +0 -1
  382. package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.d.ts +0 -53
  383. package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.d.ts.map +0 -1
  384. package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.js +0 -168
  385. package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.js.map +0 -1
  386. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.d.ts +0 -64
  387. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.d.ts.map +0 -1
  388. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.js +0 -145
  389. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.js.map +0 -1
  390. package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.d.ts +0 -60
  391. package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.d.ts.map +0 -1
  392. package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.js +0 -186
  393. package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.js.map +0 -1
  394. package/dist/lib/infrastructure/dal/repositories/mcp/index.d.ts +0 -6
  395. package/dist/lib/infrastructure/dal/repositories/mcp/index.d.ts.map +0 -1
  396. package/dist/lib/infrastructure/dal/repositories/mcp/index.js +0 -11
  397. package/dist/lib/infrastructure/dal/repositories/mcp/index.js.map +0 -1
  398. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.d.ts +0 -69
  399. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.d.ts.map +0 -1
  400. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.js +0 -299
  401. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.js.map +0 -1
  402. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.d.ts +0 -49
  403. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.d.ts.map +0 -1
  404. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.js +0 -193
  405. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.js.map +0 -1
  406. package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.d.ts +0 -55
  407. package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.d.ts.map +0 -1
  408. package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.js +0 -165
  409. package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.js.map +0 -1
  410. package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.d.ts +0 -58
  411. package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.d.ts.map +0 -1
  412. package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.js +0 -210
  413. package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.js.map +0 -1
  414. package/dist/lib/infrastructure/dal/repositories/zep/index.d.ts +0 -6
  415. package/dist/lib/infrastructure/dal/repositories/zep/index.d.ts.map +0 -1
  416. package/dist/lib/infrastructure/dal/repositories/zep/index.js +0 -11
  417. package/dist/lib/infrastructure/dal/repositories/zep/index.js.map +0 -1
  418. package/dist/lib/infrastructure/dal/routing/RepositoryRouter.d.ts +0 -73
  419. package/dist/lib/infrastructure/dal/routing/RepositoryRouter.d.ts.map +0 -1
  420. package/dist/lib/infrastructure/dal/routing/RepositoryRouter.js +0 -170
  421. package/dist/lib/infrastructure/dal/routing/RepositoryRouter.js.map +0 -1
  422. package/dist/lib/infrastructure/dal/routing/index.d.ts +0 -5
  423. package/dist/lib/infrastructure/dal/routing/index.d.ts.map +0 -1
  424. package/dist/lib/infrastructure/dal/routing/index.js +0 -10
  425. package/dist/lib/infrastructure/dal/routing/index.js.map +0 -1
  426. package/dist/lib/infrastructure/mcp/McpClient.d.ts +0 -71
  427. package/dist/lib/infrastructure/mcp/McpClient.d.ts.map +0 -1
  428. package/dist/lib/infrastructure/mcp/McpClient.js +0 -221
  429. package/dist/lib/infrastructure/mcp/McpClient.js.map +0 -1
  430. package/dist/lib/infrastructure/mcp/index.d.ts +0 -5
  431. package/dist/lib/infrastructure/mcp/index.d.ts.map +0 -1
  432. package/dist/lib/infrastructure/mcp/index.js +0 -9
  433. package/dist/lib/infrastructure/mcp/index.js.map +0 -1
  434. package/dist/lib/infrastructure/services/ConsolidationService.d.ts +0 -21
  435. package/dist/lib/infrastructure/services/ConsolidationService.d.ts.map +0 -1
  436. package/dist/lib/infrastructure/services/ConsolidationService.js +0 -134
  437. package/dist/lib/infrastructure/services/ConsolidationService.js.map +0 -1
  438. package/dist/lib/infrastructure/services/DeduplicationService.d.ts +0 -21
  439. package/dist/lib/infrastructure/services/DeduplicationService.d.ts.map +0 -1
  440. package/dist/lib/infrastructure/services/DeduplicationService.js +0 -111
  441. package/dist/lib/infrastructure/services/DeduplicationService.js.map +0 -1
  442. package/dist/lib/infrastructure/services/MemoryService.d.ts +0 -96
  443. package/dist/lib/infrastructure/services/MemoryService.d.ts.map +0 -1
  444. package/dist/lib/infrastructure/services/MemoryService.js +0 -486
  445. package/dist/lib/infrastructure/services/MemoryService.js.map +0 -1
  446. package/dist/lib/infrastructure/services/TaskService.d.ts +0 -38
  447. package/dist/lib/infrastructure/services/TaskService.d.ts.map +0 -1
  448. package/dist/lib/infrastructure/services/TaskService.js +0 -227
  449. package/dist/lib/infrastructure/services/TaskService.js.map +0 -1
  450. package/dist/lib/skills/common/group-id.d.ts +0 -49
  451. package/dist/lib/skills/common/group-id.d.ts.map +0 -1
  452. package/dist/lib/skills/common/group-id.js +0 -194
  453. package/dist/lib/skills/common/group-id.js.map +0 -1
  454. package/dist/lib/skills/git/bump-version.d.ts +0 -9
  455. package/dist/lib/skills/git/bump-version.d.ts.map +0 -1
  456. package/dist/lib/skills/git/bump-version.js.map +0 -1
  457. package/dist/lib/skills/init-review/ai-enrich.d.ts.map +0 -1
  458. package/dist/lib/skills/init-review/ai-enrich.js.map +0 -1
  459. package/dist/lib/skills/init-review/init-review.d.ts.map +0 -1
  460. package/dist/lib/skills/init-review/init-review.js.map +0 -1
  461. package/dist/lib/skills/shared/clients/McpClient.d.ts +0 -26
  462. package/dist/lib/skills/shared/clients/McpClient.d.ts.map +0 -1
  463. package/dist/lib/skills/shared/clients/McpClient.js +0 -162
  464. package/dist/lib/skills/shared/clients/McpClient.js.map +0 -1
  465. package/dist/lib/skills/shared/clients/Neo4jClient.d.ts +0 -15
  466. package/dist/lib/skills/shared/clients/Neo4jClient.d.ts.map +0 -1
  467. package/dist/lib/skills/shared/clients/Neo4jClient.js +0 -139
  468. package/dist/lib/skills/shared/clients/Neo4jClient.js.map +0 -1
  469. package/dist/lib/skills/shared/clients/ZepClient.d.ts +0 -14
  470. package/dist/lib/skills/shared/clients/ZepClient.d.ts.map +0 -1
  471. package/dist/lib/skills/shared/clients/ZepClient.js +0 -238
  472. package/dist/lib/skills/shared/clients/ZepClient.js.map +0 -1
  473. package/dist/lib/skills/shared/clients/interfaces/IMcpClient.d.ts +0 -56
  474. package/dist/lib/skills/shared/clients/interfaces/IMcpClient.d.ts.map +0 -1
  475. package/dist/lib/skills/shared/clients/interfaces/IMcpClient.js +0 -3
  476. package/dist/lib/skills/shared/clients/interfaces/IMcpClient.js.map +0 -1
  477. package/dist/lib/skills/shared/clients/interfaces/INeo4jClient.d.ts +0 -59
  478. package/dist/lib/skills/shared/clients/interfaces/INeo4jClient.d.ts.map +0 -1
  479. package/dist/lib/skills/shared/clients/interfaces/INeo4jClient.js +0 -3
  480. package/dist/lib/skills/shared/clients/interfaces/INeo4jClient.js.map +0 -1
  481. package/dist/lib/skills/shared/clients/interfaces/IZepClient.d.ts +0 -152
  482. package/dist/lib/skills/shared/clients/interfaces/IZepClient.d.ts.map +0 -1
  483. package/dist/lib/skills/shared/clients/interfaces/IZepClient.js +0 -3
  484. package/dist/lib/skills/shared/clients/interfaces/IZepClient.js.map +0 -1
  485. package/dist/lib/skills/shared/group-id.d.ts +0 -2
  486. package/dist/lib/skills/shared/group-id.d.ts.map +0 -1
  487. package/dist/lib/skills/shared/group-id.js +0 -18
  488. package/dist/lib/skills/shared/group-id.js.map +0 -1
  489. package/dist/lib/skills/shared/services/MemoryService.d.ts +0 -24
  490. package/dist/lib/skills/shared/services/MemoryService.d.ts.map +0 -1
  491. package/dist/lib/skills/shared/services/MemoryService.js +0 -574
  492. package/dist/lib/skills/shared/services/MemoryService.js.map +0 -1
  493. package/dist/lib/skills/shared/services/PromptService.d.ts +0 -28
  494. package/dist/lib/skills/shared/services/PromptService.d.ts.map +0 -1
  495. package/dist/lib/skills/shared/services/PromptService.js +0 -53
  496. package/dist/lib/skills/shared/services/PromptService.js.map +0 -1
  497. package/dist/lib/skills/shared/services/TaskService.d.ts +0 -24
  498. package/dist/lib/skills/shared/services/TaskService.d.ts.map +0 -1
  499. package/dist/lib/skills/shared/services/TaskService.js +0 -388
  500. package/dist/lib/skills/shared/services/TaskService.js.map +0 -1
  501. package/dist/lib/skills/shared/services/interfaces/IMemoryService.d.ts.map +0 -1
  502. package/dist/lib/skills/shared/services/interfaces/IMemoryService.js +0 -3
  503. package/dist/lib/skills/shared/services/interfaces/IMemoryService.js.map +0 -1
  504. package/dist/lib/skills/shared/services/interfaces/ITaskService.d.ts.map +0 -1
  505. package/dist/lib/skills/shared/services/interfaces/ITaskService.js +0 -7
  506. package/dist/lib/skills/shared/services/interfaces/ITaskService.js.map +0 -1
  507. package/dist/lib/skills/shared/utils/group-id.d.ts +0 -64
  508. package/dist/lib/skills/shared/utils/group-id.d.ts.map +0 -1
  509. package/dist/lib/skills/shared/utils/group-id.js +0 -176
  510. package/dist/lib/skills/shared/utils/group-id.js.map +0 -1
  511. package/dist/project/.lisa/docker/docker-compose.graphiti.yml +0 -45
  512. package/dist/project/.lisa/skills/git/SKILL.md +0 -171
  513. /package/dist/lib/skills/{init-review → review}/init-review.d.ts +0 -0
  514. /package/dist/lib/skills/{init-review → review}/init-review.js +0 -0
@@ -0,0 +1,180 @@
1
+ /**
2
+ * IGitTriageService
3
+ *
4
+ * Domain interface for git history triage.
5
+ * Scans local git history and scores commits for "interestingness"
6
+ * to identify which commits warrant API enrichment.
7
+ *
8
+ * Part of the Git-Powered Memory feature (LISA-7).
9
+ */
10
+ /**
11
+ * Raw commit data extracted from git log.
12
+ */
13
+ export interface IGitCommitData {
14
+ /** Full commit SHA. */
15
+ readonly sha: string;
16
+ /** Short commit SHA. */
17
+ readonly shortSha: string;
18
+ /** Commit subject (first line of message). */
19
+ readonly subject: string;
20
+ /** Commit body (rest of message after subject). */
21
+ readonly body: string;
22
+ /** Number of parent commits (1 = normal, 2+ = merge). */
23
+ readonly parentCount: number;
24
+ /** Author name. */
25
+ readonly author: string;
26
+ /** Author email. */
27
+ readonly authorEmail: string;
28
+ /** Commit timestamp. */
29
+ readonly timestamp: Date;
30
+ /** Ref names pointing to this commit (tags, branches). */
31
+ readonly refs: readonly string[];
32
+ }
33
+ /**
34
+ * Diff statistics for a commit.
35
+ */
36
+ export interface IGitCommitStats {
37
+ /** Number of files changed. */
38
+ readonly filesChanged: number;
39
+ /** Number of lines added. */
40
+ readonly insertions: number;
41
+ /** Number of lines deleted. */
42
+ readonly deletions: number;
43
+ /** List of file paths that were added (new files). */
44
+ readonly filesAdded: readonly string[];
45
+ /** List of file paths that were deleted. */
46
+ readonly filesDeleted: readonly string[];
47
+ /** List of directories created (first appearance). */
48
+ readonly directoriesCreated: readonly string[];
49
+ }
50
+ /**
51
+ * Interest signals detected for a commit.
52
+ */
53
+ export interface ICommitInterestSignals {
54
+ /** Large diff: 10+ files changed. */
55
+ readonly largeDiffFiles: boolean;
56
+ /** Large diff: 500+ lines changed. */
57
+ readonly largeDiffLines: boolean;
58
+ /** Merge commit with PR reference. */
59
+ readonly mergeCommitWithPR: boolean;
60
+ /** Has conventional commit prefix (feat:, fix:, refactor:, etc.). */
61
+ readonly hasConventionalPrefix: boolean;
62
+ /** Conventional commit type if detected. */
63
+ readonly conventionalType: string | null;
64
+ /** Contains decision keywords (migrate, replace, rewrite, etc.). */
65
+ readonly hasDecisionKeywords: boolean;
66
+ /** Creates new top-level directory. */
67
+ readonly createsNewDirectory: boolean;
68
+ /** Within N commits of a version tag. */
69
+ readonly isTagAdjacent: boolean;
70
+ /** Has multi-line commit body. */
71
+ readonly hasLongMessageBody: boolean;
72
+ /** Extracted PR number from merge commit message. */
73
+ readonly prNumber: number | null;
74
+ }
75
+ /**
76
+ * A scored commit ready for triage decision.
77
+ */
78
+ export interface IScoredCommit {
79
+ /** The commit data. */
80
+ readonly commit: IGitCommitData;
81
+ /** Diff statistics (may be null if not fetched). */
82
+ readonly stats: IGitCommitStats | null;
83
+ /** Interest signals detected. */
84
+ readonly signals: ICommitInterestSignals;
85
+ /** Calculated interest score. */
86
+ readonly score: number;
87
+ /** Whether this commit passed the triage threshold. */
88
+ readonly passedTriage: boolean;
89
+ }
90
+ /**
91
+ * Result of a triage scan.
92
+ */
93
+ export interface ITriageResult {
94
+ /** Total commits scanned. */
95
+ readonly totalCommits: number;
96
+ /** Commits below threshold (skipped). */
97
+ readonly belowThreshold: number;
98
+ /** Commits with minor interest (extracted from message only). */
99
+ readonly minorInterest: number;
100
+ /** High-interest commits queued for API enrichment. */
101
+ readonly highInterest: readonly IScoredCommit[];
102
+ /** Commits linked to PRs (subset of highInterest). */
103
+ readonly linkedToPRs: number;
104
+ /** Commits linked to tags/releases. */
105
+ readonly linkedToTags: number;
106
+ /** Hotspot files (most frequently changed). */
107
+ readonly hotspots: readonly IFileHotspot[];
108
+ /** Tags found in the scanned range. */
109
+ readonly tags: readonly ITagInfo[];
110
+ /** Scan duration in milliseconds. */
111
+ readonly durationMs: number;
112
+ }
113
+ /**
114
+ * File hotspot information.
115
+ */
116
+ export interface IFileHotspot {
117
+ /** File path. */
118
+ readonly path: string;
119
+ /** Number of commits touching this file. */
120
+ readonly commitCount: number;
121
+ /** Total lines changed across all commits. */
122
+ readonly totalLinesChanged: number;
123
+ }
124
+ /**
125
+ * Tag information.
126
+ */
127
+ export interface ITagInfo {
128
+ /** Tag name. */
129
+ readonly name: string;
130
+ /** Commit SHA the tag points to. */
131
+ readonly sha: string;
132
+ /** Whether this looks like a version tag (v1.0.0, 1.0.0, etc.). */
133
+ readonly isVersionTag: boolean;
134
+ }
135
+ /**
136
+ * Options for triage scan.
137
+ */
138
+ export interface ITriageOptions {
139
+ /** Start date for scan (default: 3 months ago). */
140
+ readonly since?: Date;
141
+ /** End date for scan (default: now). */
142
+ readonly until?: Date;
143
+ /** Score threshold for high interest (default: 3). */
144
+ readonly threshold?: number;
145
+ /** Maximum commits to scan (default: unlimited). */
146
+ readonly maxCommits?: number;
147
+ /** Working directory (default: current). */
148
+ readonly cwd?: string;
149
+ /** Whether to fetch stats for all commits (slower) or only high-interest. */
150
+ readonly fetchAllStats?: boolean;
151
+ }
152
+ /**
153
+ * Git triage service interface.
154
+ *
155
+ * Scans git history to identify commits worth investigating via API.
156
+ */
157
+ export interface IGitTriageService {
158
+ /**
159
+ * Perform a triage scan of git history.
160
+ * @param options - Scan options.
161
+ * @returns Triage results with scored commits.
162
+ */
163
+ triage(options?: ITriageOptions): Promise<ITriageResult>;
164
+ /**
165
+ * Score a single commit.
166
+ *
167
+ * Note: For tag-adjacency, the caller should pre-compute whether the commit
168
+ * is within N commits of a tag (using positional analysis). If `isTagAdjacent`
169
+ * is not provided, this method falls back to checking if the commit itself
170
+ * is a tagged commit (SHA in tagShas), which is a weaker signal.
171
+ *
172
+ * @param commit - Commit data.
173
+ * @param stats - Optional diff stats.
174
+ * @param tagShas - Set of SHAs that have tags (used for fallback if isTagAdjacent not provided).
175
+ * @param isTagAdjacent - Pre-computed tag adjacency (recommended for accurate scoring).
176
+ * @returns Scored commit with signals.
177
+ */
178
+ scoreCommit(commit: IGitCommitData, stats: IGitCommitStats | null, tagShas: ReadonlySet<string>, isTagAdjacent?: boolean): IScoredCommit;
179
+ }
180
+ //# sourceMappingURL=IGitTriageService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGitTriageService.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IGitTriageService.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,uBAAuB;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,wBAAwB;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,mBAAmB;IACnB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,oBAAoB;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,wBAAwB;IACxB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,6BAA6B;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,+BAA+B;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,4CAA4C;IAC5C,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,sDAAsD;IACtD,QAAQ,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAA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Aa,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEzD;;;;;;;;;;;;;OAaG;IACH,WAAW,CACT,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,eAAe,GAAG,IAAI,EAC7B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAC5B,aAAa,CAAC,EAAE,OAAO,GACtB,aAAa,CAAC;CAClB"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * IGitTriageService
4
+ *
5
+ * Domain interface for git history triage.
6
+ * Scans local git history and scores commits for "interestingness"
7
+ * to identify which commits warrant API enrichment.
8
+ *
9
+ * Part of the Git-Powered Memory feature (LISA-7).
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ //# sourceMappingURL=IGitTriageService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGitTriageService.js","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IGitTriageService.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG"}
@@ -1,10 +1,8 @@
1
1
  import type { ILisaContext } from './ILisaContext';
2
2
  import type { IMemoryService } from './IMemoryService';
3
3
  import type { ITaskService } from './ITaskService';
4
- import type { IMcpClient } from './IMcpClient';
5
4
  import type { ISessionCaptureService } from './ISessionCaptureService';
6
5
  import type { IEventEmitter } from './IEventEmitter';
7
- import type { IRepositoryRouter } from './dal';
8
6
  import type { IRecursionService } from './IRecursionService';
9
7
  import type { ILogger } from './ILogger';
10
8
  import type { IGitHubSyncService } from '../../skills/shared/services/GitHubSyncService';
@@ -16,16 +14,9 @@ export interface ILisaServices {
16
14
  readonly context: ILisaContext;
17
15
  readonly memory: IMemoryService;
18
16
  readonly tasks: ITaskService;
19
- readonly mcp: IMcpClient;
20
17
  readonly events: IEventEmitter;
21
18
  readonly sessionCapture: ISessionCaptureService;
22
19
  readonly logger: ILogger;
23
- /**
24
- * Repository router for DAL operations.
25
- * Routes to optimal backend (Neo4j, MCP, Zep) based on operation type.
26
- * Optional - may be undefined if DAL initialization fails.
27
- */
28
- readonly router?: IRepositoryRouter;
29
20
  /**
30
21
  * Recursion service for plan mode memory search.
31
22
  * Optional - may be undefined if not needed.
@@ -1 +1 @@
1
- {"version":3,"file":"ILisaServices.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/ILisaServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEzF;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,cAAc,EAAE,sBAAsB,CAAC;IAChD,QAAQ,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C1C"}
@@ -1,8 +1,5 @@
1
1
  import type { IMemoryResult, IMemoryItem } from './types';
2
2
  import type { IMemorySaveOptions } from './dal/IMemoryRepository';
3
- import type { IMemoryRelationship, MemoryRelationType } from './types/IMemoryRelationship';
4
- import type { ConfidenceLevel } from './types/IMemoryQuality';
5
- import type { IQueryOptions, IConflictGroup } from './dal/types';
6
3
  /**
7
4
  * Options for date-filtered memory queries.
8
5
  */
@@ -15,104 +12,65 @@ export interface IMemoryDateOptions {
15
12
  /**
16
13
  * Read operations for memory.
17
14
  * Separated for Interface Segregation Principle.
15
+ *
16
+ * Note: Group IDs are no longer used - the git repo itself provides scoping
17
+ * via git-mem (git notes in refs/notes/mem).
18
18
  */
19
19
  export interface IMemoryReader {
20
20
  /**
21
- * Load memory for a group, querying hierarchically.
22
- * @param groupIds - Hierarchical group IDs to query
23
- * @param aliases - Project aliases for tagging
24
- * @param branch - Current git branch (for tagging)
21
+ * Load memory from the repository.
25
22
  * @param timeoutMs - Timeout in milliseconds
26
23
  */
27
- loadMemory(groupIds: readonly string[], aliases: readonly string[], branch: string | null, timeoutMs?: number): Promise<IMemoryResult>;
24
+ loadMemory(timeoutMs?: number): Promise<IMemoryResult>;
28
25
  /**
29
26
  * Load facts with date ordering (newest first).
30
- * Uses DAL router with Neo4j when available for optimal performance.
31
- * @param groupIds - Group IDs to query
32
27
  * @param limit - Maximum number of facts to return
33
28
  * @param options - Optional date filtering options
34
29
  */
35
- loadFactsDateOrdered(groupIds: readonly string[], limit?: number, options?: IMemoryDateOptions): Promise<IMemoryItem[]>;
30
+ loadFactsDateOrdered(limit?: number, options?: IMemoryDateOptions): Promise<IMemoryItem[]>;
36
31
  /**
37
32
  * Semantic search for facts.
38
- * Uses DAL router with MCP when available.
39
- * @param groupIds - Group IDs to search
40
33
  * @param query - Search query
41
34
  * @param limit - Maximum number of results
42
35
  */
43
- searchFacts(groupIds: readonly string[], query: string, limit?: number): Promise<IMemoryItem[]>;
36
+ searchFacts(query: string, limit?: number): Promise<IMemoryItem[]>;
44
37
  }
45
38
  /**
46
39
  * Write operations for memory.
47
40
  * Separated for Interface Segregation Principle.
41
+ *
42
+ * Note: Group IDs are no longer used - the git repo itself provides scoping.
48
43
  */
49
44
  export interface IMemoryWriter {
50
45
  /**
51
46
  * Save facts to memory.
52
- * @param groupId - Group ID to save to
53
47
  * @param facts - Facts to save
54
48
  */
55
- saveMemory(groupId: string, facts: readonly string[]): Promise<void>;
49
+ saveMemory(facts: readonly string[]): Promise<void>;
56
50
  /**
57
51
  * Add a single fact to memory.
58
- * @param groupId - Group ID to save to
59
52
  * @param fact - Fact to add
60
53
  * @param tags - Optional tags for the fact
61
54
  */
62
- addFact(groupId: string, fact: string, tags?: readonly string[]): Promise<void>;
55
+ addFact(fact: string, tags?: readonly string[]): Promise<void>;
63
56
  /**
64
57
  * Add a fact with lifecycle metadata.
65
58
  * Enriches tags with lifecycle:<tier> tag and delegates to addFact.
66
- * @param groupId - Group ID to save to
67
59
  * @param fact - Fact to add
68
60
  * @param options - Save options including lifecycle and TTL
69
61
  */
70
- addFactWithLifecycle(groupId: string, fact: string, options: IMemorySaveOptions): Promise<void>;
62
+ addFactWithLifecycle(fact: string, options: IMemorySaveOptions): Promise<void>;
71
63
  /**
72
64
  * Expire a single fact by UUID.
73
- * Routes to Neo4j repository for direct Cypher expiration.
74
- * @param groupId - Group ID the fact belongs to
75
65
  * @param uuid - UUID of the fact to expire
76
66
  */
77
- expireFact(groupId: string, uuid: string): Promise<void>;
67
+ expireFact(uuid: string): Promise<void>;
78
68
  /**
79
69
  * Clean up expired facts based on lifecycle TTL defaults.
80
70
  * Expires session facts older than 24h and ephemeral facts older than 1h.
81
- * @param groupId - Group ID to clean up
82
71
  * @returns Number of facts expired
83
72
  */
84
- cleanupExpired(groupId: string): Promise<number>;
85
- }
86
- /**
87
- * Relationship operations for memory facts.
88
- * Separated for Interface Segregation Principle.
89
- * Optional — only available when a relationship-capable backend (e.g., Neo4j) is present.
90
- */
91
- export interface IMemoryRelationshipWriter {
92
- /**
93
- * Create a typed relationship between two facts.
94
- * @param groupId - Group ID for scoping
95
- * @param sourceUuid - UUID of the source fact
96
- * @param targetUuid - UUID of the target fact
97
- * @param relationType - Type of relationship
98
- * @param metadata - Optional annotation for the relationship
99
- */
100
- linkFacts(groupId: string, sourceUuid: string, targetUuid: string, relationType: MemoryRelationType, metadata?: string): Promise<void>;
101
- /**
102
- * Remove a typed relationship between two facts.
103
- * @param groupId - Group ID for scoping
104
- * @param sourceUuid - UUID of the source fact
105
- * @param targetUuid - UUID of the target fact
106
- * @param relationType - Type of relationship to remove
107
- */
108
- unlinkFacts(groupId: string, sourceUuid: string, targetUuid: string, relationType: MemoryRelationType): Promise<void>;
109
- /**
110
- * Get all relationships for a fact.
111
- * @param groupId - Group ID for scoping
112
- * @param uuid - UUID of the fact
113
- * @param relationType - Optional filter by relation type
114
- */
115
- getRelatedFacts(groupId: string, uuid: string, relationType?: MemoryRelationType): Promise<IMemoryRelationship[]>;
73
+ cleanupExpired(): Promise<number>;
116
74
  }
117
75
  /**
118
76
  * Full memory service interface.
@@ -120,37 +78,4 @@ export interface IMemoryRelationshipWriter {
120
78
  */
121
79
  export interface IMemoryService extends IMemoryReader, IMemoryWriter {
122
80
  }
123
- /**
124
- * Extended memory service with relationship support.
125
- * Consumers that need relationship operations can check/cast to this interface.
126
- */
127
- export interface IMemoryServiceWithRelationships extends IMemoryService, IMemoryRelationshipWriter {
128
- }
129
- /**
130
- * Quality read operations for memory.
131
- * Provides confidence filtering and conflict detection.
132
- * Separated for Interface Segregation Principle.
133
- */
134
- export interface IMemoryQualityReader {
135
- /**
136
- * Find facts at or above a minimum confidence level.
137
- * @param groupIds - Group IDs to search
138
- * @param minLevel - Minimum confidence level (inclusive)
139
- * @param options - Additional query options
140
- */
141
- findByMinConfidence(groupIds: readonly string[], minLevel: ConfidenceLevel, options?: IQueryOptions): Promise<IMemoryItem[]>;
142
- /**
143
- * Find groups of potentially conflicting facts.
144
- * Detects facts sharing topic tags but with differing content.
145
- * @param groupIds - Group IDs to search
146
- * @param topic - Optional topic to filter conflicts by
147
- */
148
- findConflicts(groupIds: readonly string[], topic?: string): Promise<readonly IConflictGroup[]>;
149
- }
150
- /**
151
- * Extended memory service with quality query support.
152
- * Consumers that need quality operations can check/cast to this interface.
153
- */
154
- export interface IMemoryServiceWithQuality extends IMemoryService, IMemoryQualityReader {
155
- }
156
81
  //# sourceMappingURL=IMemoryService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IMemoryService.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IMemoryService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,2CAA2C;IAC3C,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,4CAA4C;IAC5C,KAAK,CAAC,EAAE,IAAI,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,UAAU,CACR,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,aAAa,CAAC,CAAC;IAE1B;;;;;;OAMG;IACH,oBAAoB,CAClB,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,kBA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,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEvD;;;;OAIG;IACH,oBAAoB,CAClB,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAE1B;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CACpE;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,UAAU,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpD;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/D;;;;;OAKG;IACH,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/E;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExC;;;;OAIG;IACH,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,aAAa,EAAE,aAAa;CAAG"}
@@ -52,6 +52,8 @@ export interface INlCurationResult {
52
52
  /**
53
53
  * Natural language curation service.
54
54
  * Translates natural language into structured memory operations.
55
+ *
56
+ * Note: Group IDs are no longer used - the git repo provides scoping via git-mem.
55
57
  */
56
58
  export interface INlCurationService {
57
59
  /**
@@ -59,17 +61,15 @@ export interface INlCurationService {
59
61
  * Does NOT execute — returns a plan for user review.
60
62
  *
61
63
  * @param input - Natural language command
62
- * @param groupId - Memory group to operate on
63
64
  * @throws LlmDisabledError if LLM is disabled
64
65
  * @throws LlmFeatureDisabledError if curation feature is disabled
65
66
  */
66
- plan(input: string, groupId: string): Promise<INlCurationPlan>;
67
+ plan(input: string): Promise<INlCurationPlan>;
67
68
  /**
68
69
  * Execute a previously generated plan.
69
70
  *
70
71
  * @param plan - The plan to execute
71
- * @param groupId - Memory group to operate on
72
72
  */
73
- execute(plan: INlCurationPlan, groupId: string): Promise<INlCurationResult>;
73
+ execute(plan: INlCurationPlan): Promise<INlCurationResult>;
74
74
  }
75
75
  //# sourceMappingURL=INlCurationService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"INlCurationService.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/INlCurationService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,aAAa,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,gBAAgB,EAMvD,CAAC;AAEX;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAEhF;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,aAAa,CAAC;IAC1E,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,OAAO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MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,SAAS,YAAY,EAAE,CAAC;IAC7C,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;CAC3B;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;OAOG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAE9C;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC5D"}
@@ -31,6 +31,8 @@ export interface IRecursionConfig {
31
31
  * When a user submits a prompt, this service searches memory for
32
32
  * relevant context: previous decisions, learnings, and tasks.
33
33
  * The search strategy adapts based on the detected task type.
34
+ *
35
+ * Note: Group IDs are no longer used - the git repo provides scoping via git-mem.
34
36
  */
35
37
  export interface IRecursionService {
36
38
  /**
@@ -38,11 +40,10 @@ export interface IRecursionService {
38
40
  * Searches for relevant decisions, learnings, and tasks.
39
41
  *
40
42
  * @param prompt - The user's prompt text
41
- * @param groupIds - Hierarchical group IDs to search
42
43
  * @param taskType - Optional task type to adjust search strategy
43
44
  * @returns Recursion result with found context
44
45
  */
45
- run(prompt: string, groupIds: readonly string[], taskType?: TaskType): Promise<IRecursionResult>;
46
+ run(prompt: string, taskType?: TaskType): Promise<IRecursionResult>;
46
47
  /**
47
48
  * Check if recursion should run for a given prompt.
48
49
  *
@@ -1 +1 @@
1
- {"version":3,"file":"IRecursionService.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IRecursionService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,yCAAyC;IACzC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,oCAAoC;IACpC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,oBAAoB;IACpB,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,mCAAmC;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iDAAiD;IACjD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,mCAAmC;IACnC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,sCAAsC;IACtC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;OAQG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEjG;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CACjF"}
1
+ {"version":3,"file":"IRecursionService.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IRecursionService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,yCAAyC;IACzC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,oCAAoC;IACpC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,oBAAoB;IACpB,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,mCAAmC;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iDAAiD;IACjD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,mCAAmC;IACnC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,sCAAsC;IACtC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;;OAOG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEpE;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CACjF"}
@@ -0,0 +1,132 @@
1
+ /**
2
+ * IRepoProfileService
3
+ *
4
+ * Domain interface for generating and maintaining a living repo profile
5
+ * markdown document at `.lisa/data/repo-profile.md`.
6
+ *
7
+ * Consumes pipeline data from Phase 1 (triage) and Phase 3 (extraction)
8
+ * plus init-review codebase summary to produce a structured profile
9
+ * that gives every session instant understanding of the project.
10
+ *
11
+ * Part of LISA-11: Repo Profile Generation.
12
+ */
13
+ import type { ITriageResult, IGitCommitData } from './IGitTriageService';
14
+ import type { IHeuristicExtractionResult } from './IGitExtractor';
15
+ /**
16
+ * Freshness state of the repo profile.
17
+ *
18
+ * - fresh: updated within 24h
19
+ * - stale: 1-7 days old
20
+ * - expired: older than 7 days
21
+ * - missing: file does not exist
22
+ */
23
+ export type ProfileFreshness = 'fresh' | 'stale' | 'expired' | 'missing';
24
+ /**
25
+ * All valid profile freshness values.
26
+ */
27
+ export declare const PROFILE_FRESHNESS_VALUES: readonly ProfileFreshness[];
28
+ /**
29
+ * Result of checking profile freshness.
30
+ */
31
+ export interface IProfileFreshnessResult {
32
+ /** Current freshness state. */
33
+ readonly freshness: ProfileFreshness;
34
+ /** When the profile was last updated (null if missing). */
35
+ readonly lastUpdated: Date | null;
36
+ /** Age in hours (null if missing). */
37
+ readonly ageHours: number | null;
38
+ /** Human-readable note about freshness. */
39
+ readonly note: string;
40
+ }
41
+ /**
42
+ * Input data for generating a repo profile.
43
+ * Aggregates data from the git pipeline phases.
44
+ */
45
+ export interface IProfileInput {
46
+ /** Project name (e.g. from package.json or directory name). */
47
+ readonly projectName: string;
48
+ /** Project root path. */
49
+ readonly projectRoot: string;
50
+ /** Triage result from Phase 1 (optional - may not have run). */
51
+ readonly triage?: ITriageResult;
52
+ /** Heuristic extraction result from Phase 3 (optional). */
53
+ readonly extraction?: IHeuristicExtractionResult;
54
+ /** Init-review codebase summary (optional). */
55
+ readonly codebaseSummary?: string;
56
+ /** Recent git commits for the "Recent Activity" section. */
57
+ readonly recentCommits?: readonly IGitCommitData[];
58
+ /** Timestamp when profile generation was initiated. */
59
+ readonly generatedAt: Date;
60
+ }
61
+ /**
62
+ * Result of profile generation.
63
+ */
64
+ export interface IProfileGenerateResult {
65
+ /** The generated markdown content. */
66
+ readonly markdown: string;
67
+ /** Path where the profile was written. */
68
+ readonly filePath: string;
69
+ /** Number of sections that had data populated. */
70
+ readonly sectionsPopulated: number;
71
+ /** Total number of sections in the template. */
72
+ readonly totalSections: number;
73
+ }
74
+ /**
75
+ * Result of reading an existing profile.
76
+ */
77
+ export interface IProfileReadResult {
78
+ /** The markdown content (null if file is missing). */
79
+ readonly markdown: string | null;
80
+ /** Freshness information. */
81
+ readonly freshness: IProfileFreshnessResult;
82
+ /** Path where the profile would/does live. */
83
+ readonly filePath: string;
84
+ }
85
+ /**
86
+ * Options for profile generation.
87
+ */
88
+ export interface IProfileGenerateOptions {
89
+ /** Maximum hotspots to include. Default: 10. */
90
+ readonly maxHotspots?: number;
91
+ /** Maximum facts per section (decisions, gotchas, conventions). Default: 10. */
92
+ readonly maxFactsPerSection?: number;
93
+ /** Maximum recent commits to include. Default: 10. */
94
+ readonly maxRecentCommits?: number;
95
+ }
96
+ /**
97
+ * Service for generating and maintaining the repo profile markdown document.
98
+ */
99
+ export interface IRepoProfileService {
100
+ /**
101
+ * Generate a full repo profile from pipeline data.
102
+ * Writes the markdown file to `.lisa/data/repo-profile.md`.
103
+ *
104
+ * @param input - Aggregated pipeline data
105
+ * @param options - Generation options
106
+ * @returns Generation result with markdown content and stats
107
+ */
108
+ generate(input: IProfileInput, options?: IProfileGenerateOptions): Promise<IProfileGenerateResult>;
109
+ /**
110
+ * Read the existing repo profile, if present.
111
+ * Returns content and freshness information.
112
+ *
113
+ * @param projectRoot - Project root directory
114
+ * @returns Read result with content and freshness
115
+ */
116
+ read(projectRoot: string): Promise<IProfileReadResult>;
117
+ /**
118
+ * Check the freshness of the existing repo profile.
119
+ * Lightweight metadata check without reading full content.
120
+ *
121
+ * Freshness rules:
122
+ * - fresh: updated within 24h
123
+ * - stale: 1-7 days old
124
+ * - expired: older than 7 days
125
+ * - missing: file does not exist
126
+ *
127
+ * @param projectRoot - Project root directory
128
+ * @returns Freshness result
129
+ */
130
+ checkFreshness(projectRoot: string): Promise<IProfileFreshnessResult>;
131
+ }
132
+ //# sourceMappingURL=IRepoProfileService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRepoProfileService.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IRepoProfileService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAElE;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAAS,gBAAgB,EAKtD,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,+BAA+B;IAC/B,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACrC,2DAA2D;IAC3D,QAAQ,CAAC,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAClC,sCAAsC;IACtC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,+DAA+D;IAC/D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,yBAAyB;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,gEAAgE;IAChE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;IAChC,2DAA2D;IAC3D,QAAQ,CAAC,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACjD,+CAA+C;IAC/C,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,4DAA4D;IAC5D,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,cAAc,EAAE,CAAC;IACnD,uDAAuD;IAC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+ *
5
+ * Domain interface for generating and maintaining a living repo profile
6
+ * markdown document at `.lisa/data/repo-profile.md`.
7
+ *
8
+ * Consumes pipeline data from Phase 1 (triage) and Phase 3 (extraction)
9
+ * plus init-review codebase summary to produce a structured profile
10
+ * that gives every session instant understanding of the project.
11
+ *
12
+ * Part of LISA-11: Repo Profile Generation.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.PROFILE_FRESHNESS_VALUES = void 0;
16
+ /**
17
+ * All valid profile freshness values.
18
+ */
19
+ exports.PROFILE_FRESHNESS_VALUES = [
20
+ 'fresh',
21
+ 'stale',
22
+ 'expired',
23
+ 'missing',
24
+ ];
25
+ //# sourceMappingURL=IRepoProfileService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRepoProfileService.js","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IRepoProfileService.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAeH;;GAEG;AACU,QAAA,wBAAwB,GAAgC;IACnE,OAAO;IACP,OAAO;IACP,SAAS;IACT,SAAS;CACD,CAAC"}