@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,261 @@
1
+ "use strict";
2
+ /**
3
+ * Heuristic Patterns for Git Extraction
4
+ *
5
+ * Regex patterns for extracting structured facts from PR descriptions,
6
+ * review comments, and issue bodies without requiring LLM calls.
7
+ *
8
+ * Part of LISA-9: Phase 3 Git-Powered Memory Extraction.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.ALL_PATTERNS = exports.CONVENTION_PATTERNS = exports.GOTCHA_PATTERNS = exports.DECISION_PATTERNS = void 0;
12
+ exports.extractPatternMatches = extractPatternMatches;
13
+ exports.extractByFactType = extractByFactType;
14
+ /**
15
+ * Decision patterns - extract motivations, trade-offs, and rationale.
16
+ */
17
+ exports.DECISION_PATTERNS = [
18
+ {
19
+ pattern: /(?:because|since)\s+(.{20,300}?)(?:\.|$|\n)/gi,
20
+ factType: 'decision',
21
+ name: 'because-clause',
22
+ baseConfidence: 'medium',
23
+ minLength: 25,
24
+ },
25
+ {
26
+ pattern: /(?:instead of|rather than)\s+(.{15,200}?)(?:\.|$|\n)/gi,
27
+ factType: 'decision',
28
+ name: 'instead-of',
29
+ baseConfidence: 'high',
30
+ minLength: 20,
31
+ },
32
+ {
33
+ pattern: /(?:decided|chose|chosen)\s+(?:to\s+)?(.{15,200}?)(?:\.|$|\n)/gi,
34
+ factType: 'decision',
35
+ name: 'decided-to',
36
+ baseConfidence: 'high',
37
+ minLength: 20,
38
+ },
39
+ {
40
+ pattern: /(?:trade-?off|tradeoff)[:\s]+(.{20,300}?)(?:\.|$|\n)/gi,
41
+ factType: 'decision',
42
+ name: 'tradeoff',
43
+ baseConfidence: 'high',
44
+ minLength: 25,
45
+ },
46
+ {
47
+ pattern: /##\s*(?:Why|Motivation|Rationale)\s*\n+(.{30,500}?)(?:\n##|\n\n|$)/gi,
48
+ factType: 'decision',
49
+ name: 'why-section',
50
+ baseConfidence: 'high',
51
+ minLength: 40,
52
+ },
53
+ {
54
+ pattern: /(?:the reason|reasoning)[:\s]+(.{20,250}?)(?:\.|$|\n)/gi,
55
+ factType: 'decision',
56
+ name: 'reasoning',
57
+ baseConfidence: 'medium',
58
+ minLength: 25,
59
+ },
60
+ {
61
+ pattern: /(?:this approach|this solution)\s+(.{20,200}?)(?:\.|$|\n)/gi,
62
+ factType: 'decision',
63
+ name: 'approach',
64
+ baseConfidence: 'medium',
65
+ minLength: 25,
66
+ },
67
+ ];
68
+ /**
69
+ * Gotcha patterns - extract warnings, workarounds, and caveats.
70
+ */
71
+ exports.GOTCHA_PATTERNS = [
72
+ {
73
+ pattern: /(?:careful|caution|warning)[:\s]+(.{15,250}?)(?:\.|$|\n)/gi,
74
+ factType: 'gotcha',
75
+ name: 'careful',
76
+ baseConfidence: 'high',
77
+ minLength: 20,
78
+ },
79
+ {
80
+ pattern: /(?:gotcha|caveat|pitfall)[:\s]+(.{15,250}?)(?:\.|$|\n)/gi,
81
+ factType: 'gotcha',
82
+ name: 'gotcha',
83
+ baseConfidence: 'high',
84
+ minLength: 20,
85
+ },
86
+ {
87
+ pattern: /(?:workaround|hack)[:\s]+(.{15,250}?)(?:\.|$|\n)/gi,
88
+ factType: 'gotcha',
89
+ name: 'workaround',
90
+ baseConfidence: 'high',
91
+ minLength: 20,
92
+ },
93
+ {
94
+ pattern: /(?:don't forget|remember to|make sure)\s+(.{15,200}?)(?:\.|$|\n)/gi,
95
+ factType: 'gotcha',
96
+ name: 'reminder',
97
+ baseConfidence: 'medium',
98
+ minLength: 20,
99
+ },
100
+ {
101
+ pattern: /(?:important)[:\s]+(.{15,250}?)(?:\.|$|\n)/gi,
102
+ factType: 'gotcha',
103
+ name: 'important',
104
+ baseConfidence: 'medium',
105
+ minLength: 20,
106
+ },
107
+ {
108
+ pattern: /(?:note)[:\s]+(.{15,250}?)(?:\.|$|\n)/gi,
109
+ factType: 'gotcha',
110
+ name: 'note',
111
+ baseConfidence: 'low',
112
+ minLength: 20,
113
+ },
114
+ {
115
+ pattern: /(?:watch out|be aware|beware)[:\s]*(.{15,200}?)(?:\.|$|\n)/gi,
116
+ factType: 'gotcha',
117
+ name: 'watch-out',
118
+ baseConfidence: 'high',
119
+ minLength: 20,
120
+ },
121
+ {
122
+ pattern: /(?:breaking change)[:\s]*(.{15,300}?)(?:\.|$|\n)/gi,
123
+ factType: 'gotcha',
124
+ name: 'breaking-change',
125
+ baseConfidence: 'high',
126
+ minLength: 20,
127
+ },
128
+ ];
129
+ /**
130
+ * Convention patterns - extract coding standards and guidelines.
131
+ */
132
+ exports.CONVENTION_PATTERNS = [
133
+ {
134
+ pattern: /(?:convention|pattern|standard)[:\s]+(.{15,250}?)(?:\.|$|\n)/gi,
135
+ factType: 'convention',
136
+ name: 'convention',
137
+ baseConfidence: 'high',
138
+ minLength: 20,
139
+ },
140
+ {
141
+ pattern: /(?:always)\s+(.{10,200}?)(?:\.|$|\n)/gi,
142
+ factType: 'convention',
143
+ name: 'always',
144
+ baseConfidence: 'medium',
145
+ minLength: 15,
146
+ },
147
+ {
148
+ pattern: /(?:never)\s+(.{10,200}?)(?:\.|$|\n)/gi,
149
+ factType: 'convention',
150
+ name: 'never',
151
+ baseConfidence: 'medium',
152
+ minLength: 15,
153
+ },
154
+ {
155
+ pattern: /(?:prefer)\s+(.{10,200}?)(?:\.|$|\n)/gi,
156
+ factType: 'convention',
157
+ name: 'prefer',
158
+ baseConfidence: 'medium',
159
+ minLength: 15,
160
+ },
161
+ {
162
+ pattern: /(?:avoid)\s+(.{10,200}?)(?:\.|$|\n)/gi,
163
+ factType: 'convention',
164
+ name: 'avoid',
165
+ baseConfidence: 'medium',
166
+ minLength: 15,
167
+ },
168
+ {
169
+ pattern: /(?:should\s+(?:always|never))\s+(.{15,200}?)(?:\.|$|\n)/gi,
170
+ factType: 'convention',
171
+ name: 'should-rule',
172
+ baseConfidence: 'high',
173
+ minLength: 20,
174
+ },
175
+ {
176
+ pattern: /(?:naming convention|naming pattern)[:\s]+(.{15,200}?)(?:\.|$|\n)/gi,
177
+ factType: 'convention',
178
+ name: 'naming',
179
+ baseConfidence: 'high',
180
+ minLength: 20,
181
+ },
182
+ ];
183
+ /**
184
+ * All patterns combined for bulk matching.
185
+ */
186
+ exports.ALL_PATTERNS = [
187
+ ...exports.DECISION_PATTERNS,
188
+ ...exports.GOTCHA_PATTERNS,
189
+ ...exports.CONVENTION_PATTERNS,
190
+ ];
191
+ /**
192
+ * Extract all pattern matches from text.
193
+ *
194
+ * @param text - Source text to search
195
+ * @param patterns - Patterns to match against (defaults to ALL_PATTERNS)
196
+ * @returns Array of matches found
197
+ */
198
+ function extractPatternMatches(text, patterns = exports.ALL_PATTERNS) {
199
+ if (!text || text.trim().length === 0) {
200
+ return [];
201
+ }
202
+ const matches = [];
203
+ const seenTexts = new Set();
204
+ for (const patternDef of patterns) {
205
+ // Clone regex to reset lastIndex for global patterns
206
+ // Ensure 'g' flag is present to prevent infinite loops with exec()
207
+ const flags = patternDef.pattern.flags.includes('g')
208
+ ? patternDef.pattern.flags
209
+ : `${patternDef.pattern.flags}g`;
210
+ const regex = new RegExp(patternDef.pattern.source, flags);
211
+ regex.lastIndex = 0; // Reset to be defensive
212
+ let match;
213
+ while ((match = regex.exec(text)) !== null) {
214
+ const extractedText = match[1]?.trim();
215
+ // Skip if no capture group or too short
216
+ if (!extractedText || extractedText.length < patternDef.minLength) {
217
+ continue;
218
+ }
219
+ // Skip duplicates (same text already extracted)
220
+ const normalizedText = extractedText.toLowerCase();
221
+ if (seenTexts.has(normalizedText)) {
222
+ continue;
223
+ }
224
+ seenTexts.add(normalizedText);
225
+ // Adjust confidence based on text length
226
+ let confidence = patternDef.baseConfidence;
227
+ if (extractedText.length > 100) {
228
+ // Longer, more substantive matches get higher confidence
229
+ if (confidence === 'low')
230
+ confidence = 'medium';
231
+ }
232
+ else if (extractedText.length < 30) {
233
+ // Very short matches get lower confidence
234
+ if (confidence === 'high')
235
+ confidence = 'medium';
236
+ else if (confidence === 'medium')
237
+ confidence = 'low';
238
+ }
239
+ matches.push({
240
+ text: extractedText,
241
+ factType: patternDef.factType,
242
+ patternName: patternDef.name,
243
+ confidence,
244
+ startIndex: match.index,
245
+ });
246
+ }
247
+ }
248
+ return matches;
249
+ }
250
+ /**
251
+ * Extract matches for a specific fact type.
252
+ *
253
+ * @param text - Source text to search
254
+ * @param factType - Type of facts to extract
255
+ * @returns Array of matches for the specified type
256
+ */
257
+ function extractByFactType(text, factType) {
258
+ const patterns = exports.ALL_PATTERNS.filter(p => p.factType === factType);
259
+ return extractPatternMatches(text, patterns);
260
+ }
261
+ //# sourceMappingURL=HeuristicPatterns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeuristicPatterns.js","sourceRoot":"","sources":["../../../../../src/lib/infrastructure/services/patterns/HeuristicPatterns.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAgOH,sDA0DC;AASD,8CAMC;AArRD;;GAEG;AACU,QAAA,iBAAiB,GAAkC;IAC9D;QACE,OAAO,EAAE,+CAA+C;QACxD,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,gBAAgB;QACtB,cAAc,EAAE,QAAQ;QACxB,SAAS,EAAE,EAAE;KACd;IACD;QACE,OAAO,EAAE,wDAAwD;QACjE,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,YAAY;QAClB,cAAc,EAAE,MAAM;QACtB,SAAS,EAAE,EAAE;KACd;IACD;QACE,OAAO,EAAE,gEAAgE;QACzE,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,YAAY;QAClB,cAAc,EAAE,MAAM;QACtB,SAAS,EAAE,EAAE;KACd;IACD;QACE,OAAO,EAAE,wDAAwD;QACjE,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,UAAU;QAChB,cAAc,EAAE,MAAM;QACtB,SAAS,EAAE,EAAE;KACd;IACD;QACE,OAAO,EAAE,sEAAsE;QAC/E,QAAQ,EAAE,UAAU;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CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC;gBAClC,SAAS;YACX,CAAC;YACD,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YAE9B,yCAAyC;YACzC,IAAI,UAAU,GAAG,UAAU,CAAC,cAAc,CAAC;YAC3C,IAAI,aAAa,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;gBAC/B,yDAAyD;gBACzD,IAAI,UAAU,KAAK,KAAK;oBAAE,UAAU,GAAG,QAAQ,CAAC;YAClD,CAAC;iBAAM,IAAI,aAAa,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;gBACrC,0CAA0C;gBAC1C,IAAI,UAAU,KAAK,MAAM;oBAAE,UAAU,GAAG,QAAQ,CAAC;qBAC5C,IAAI,UAAU,KAAK,QAAQ;oBAAE,UAAU,GAAG,KAAK,CAAC;YACvD,CAAC;YAED,OAAO,CAAC,IAAI,CAAC;gBACX,IAAI,EAAE,aAAa;gBACnB,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,WAAW,EAAE,UAAU,CAAC,IAAI;gBAC5B,UAAU;gBACV,UAAU,EAAE,KAAK,CAAC,KAAK;aACxB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,iBAAiB,CAC/B,IAAY,EACZ,QAA2B;IAE3B,MAAM,QAAQ,GAAG,oBAAY,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;IACnE,OAAO,qBAAqB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Commit Extraction Prompt Builder.
3
+ *
4
+ * Constructs system and user prompts for LLM-based fact extraction
5
+ * from git commits. Requests structured JSON output with typed facts,
6
+ * confidence levels, and tags.
7
+ *
8
+ * Part of LISA-8: Phase 2 Git-Powered Memory Enrichment.
9
+ */
10
+ import type { IScoredCommit } from '../../../domain/interfaces/IGitTriageService';
11
+ import type { ICommitEnrichmentOptions } from '../../../domain/interfaces/ICommitEnricher';
12
+ /**
13
+ * Built prompt pair for the commit extraction LLM call.
14
+ */
15
+ export interface ICommitExtractionPrompt {
16
+ readonly system: string;
17
+ readonly user: string;
18
+ }
19
+ /**
20
+ * Build an extraction prompt from a batch of high-interest commits.
21
+ *
22
+ * @param commits - High-interest commits from triage
23
+ * @param options - Enrichment options
24
+ */
25
+ export declare function buildCommitExtractionPrompt(commits: readonly IScoredCommit[], options?: ICommitEnrichmentOptions): ICommitExtractionPrompt;
26
+ //# sourceMappingURL=commit-extraction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commit-extraction.d.ts","sourceRoot":"","sources":["../../../../../src/lib/infrastructure/services/prompts/commit-extraction.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,KAAK,EAAE,wBAAwB,EAAkB,MAAM,4CAA4C,CAAC;AAE3G;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAOD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,SAAS,aAAa,EAAE,EACjC,OAAO,GAAE,wBAA6B,GACrC,uBAAuB,CAiEzB"}
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ /**
3
+ * Commit Extraction Prompt Builder.
4
+ *
5
+ * Constructs system and user prompts for LLM-based fact extraction
6
+ * from git commits. Requests structured JSON output with typed facts,
7
+ * confidence levels, and tags.
8
+ *
9
+ * Part of LISA-8: Phase 2 Git-Powered Memory Enrichment.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.buildCommitExtractionPrompt = buildCommitExtractionPrompt;
13
+ /**
14
+ * Default maximum facts to extract per batch.
15
+ */
16
+ const DEFAULT_MAX_FACTS = 10;
17
+ /**
18
+ * Build an extraction prompt from a batch of high-interest commits.
19
+ *
20
+ * @param commits - High-interest commits from triage
21
+ * @param options - Enrichment options
22
+ */
23
+ function buildCommitExtractionPrompt(commits, options = {}) {
24
+ const extractTypes = options.extractTypes;
25
+ const maxFacts = Math.min(commits.length * 2, DEFAULT_MAX_FACTS);
26
+ const validTypes = extractTypes && extractTypes.length > 0
27
+ ? extractTypes
28
+ : [
29
+ 'feature',
30
+ 'decision',
31
+ 'refactor',
32
+ 'migration',
33
+ 'bugfix',
34
+ 'breaking-change',
35
+ 'convention',
36
+ 'dependency',
37
+ ];
38
+ const system = [
39
+ 'You are analyzing git commits to extract structured facts for project memory.',
40
+ 'Your task is to identify important information worth remembering long-term.',
41
+ '',
42
+ 'Fact types to extract:',
43
+ '- feature: New functionality or capability added to the project',
44
+ '- decision: Architecture or technology choice evident from the commit',
45
+ '- refactor: Code restructuring without behavior change',
46
+ '- migration: Data migration, API migration, or technology migration',
47
+ '- bugfix: Bug fix with root cause (what was broken and why)',
48
+ '- breaking-change: Changes that break backward compatibility',
49
+ '- convention: New patterns or coding conventions introduced',
50
+ '- dependency: Significant dependency additions, updates, or removals',
51
+ '',
52
+ 'Confidence levels:',
53
+ '- high: Clear from commit message, subject, or explicit description',
54
+ '- medium: Reasonably inferred from commit context and signals',
55
+ '- low: Tentative inference, may need verification',
56
+ '',
57
+ 'Guidelines:',
58
+ '- Each fact should be self-contained and understandable without the commit context.',
59
+ '- Include relevant file paths, technologies, or components in tags.',
60
+ '- For bugfixes, try to identify the root cause if evident from the message.',
61
+ '- Focus on facts that would be valuable for future developers.',
62
+ '- Do not extract trivial changes (formatting, typos, version bumps).',
63
+ `- Extract at most ${maxFacts} facts total across all commits.`,
64
+ extractTypes && extractTypes.length > 0
65
+ ? `- Only extract facts of these types: ${extractTypes.join(', ')}`
66
+ : '- Extract facts of any type listed above.',
67
+ '',
68
+ 'Respond with ONLY a valid JSON object in this exact format:',
69
+ '{',
70
+ ' "facts": [',
71
+ ' {',
72
+ ' "text": "Clear description of the fact",',
73
+ ` "type": "one of: ${validTypes.join(', ')}",`,
74
+ ' "confidence": "high | medium | low",',
75
+ ' "tags": ["relevant", "tags"],',
76
+ ' "commitSha": "short SHA of the source commit",',
77
+ ' "rationale": "Why this fact is worth remembering"',
78
+ ' }',
79
+ ' ]',
80
+ '}',
81
+ ].join('\n');
82
+ const user = formatCommitsForPrompt(commits);
83
+ return { system, user };
84
+ }
85
+ /**
86
+ * Format commits into a structured prompt section.
87
+ */
88
+ function formatCommitsForPrompt(commits) {
89
+ const parts = [];
90
+ parts.push('## Commits to Analyze');
91
+ parts.push('');
92
+ for (let i = 0; i < commits.length; i++) {
93
+ const { commit, stats, signals } = commits[i];
94
+ parts.push(`### Commit ${i + 1}: ${commit.shortSha}`);
95
+ parts.push(`**Subject:** ${commit.subject}`);
96
+ if (commit.body && commit.body.trim().length > 0) {
97
+ const truncatedBody = commit.body.length > 500
98
+ ? commit.body.slice(0, 500) + '...'
99
+ : commit.body;
100
+ parts.push(`**Body:** ${truncatedBody}`);
101
+ }
102
+ parts.push(`**Timestamp:** ${commit.timestamp.toISOString()}`);
103
+ parts.push(`**Author:** ${commit.author}`);
104
+ if (stats) {
105
+ parts.push(`**Files changed:** ${stats.filesChanged}`);
106
+ parts.push(`**Lines:** +${stats.insertions} -${stats.deletions}`);
107
+ if (stats.directoriesCreated.length > 0) {
108
+ parts.push(`**New directories:** ${stats.directoriesCreated.join(', ')}`);
109
+ }
110
+ }
111
+ // Format interest signals
112
+ const signalList = formatSignals(signals);
113
+ if (signalList.length > 0) {
114
+ parts.push(`**Signals:** ${signalList.join(', ')}`);
115
+ }
116
+ parts.push('');
117
+ }
118
+ return parts.join('\n');
119
+ }
120
+ /**
121
+ * Format interest signals into readable strings.
122
+ */
123
+ function formatSignals(signals) {
124
+ const result = [];
125
+ if (signals.largeDiffFiles) {
126
+ result.push('large-diff-files');
127
+ }
128
+ if (signals.largeDiffLines) {
129
+ result.push('large-diff-lines');
130
+ }
131
+ if (signals.mergeCommitWithPR && signals.prNumber) {
132
+ result.push(`merge-PR-#${signals.prNumber}`);
133
+ }
134
+ if (signals.hasConventionalPrefix && signals.conventionalType) {
135
+ result.push(`conventional:${signals.conventionalType}`);
136
+ }
137
+ if (signals.hasDecisionKeywords) {
138
+ result.push('decision-keywords');
139
+ }
140
+ if (signals.createsNewDirectory) {
141
+ result.push('new-directory');
142
+ }
143
+ if (signals.isTagAdjacent) {
144
+ result.push('tag-adjacent');
145
+ }
146
+ if (signals.hasLongMessageBody) {
147
+ result.push('detailed-message');
148
+ }
149
+ return result;
150
+ }
151
+ //# sourceMappingURL=commit-extraction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commit-extraction.js","sourceRoot":"","sources":["../../../../../src/lib/infrastructure/services/prompts/commit-extraction.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAwBH,kEAoEC;AA/ED;;GAEG;AACH,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B;;;;;GAKG;AACH,SAAgB,2BAA2B,CACzC,OAAiC,EACjC,UAAoC,EAAE;IAEtC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,iBAAiB,CAAC,CAAC;IAEjE,MAAM,UAAU,GAAsB,YAAY,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC;QAC3E,CAAC,CAAC,YAAY;QACd,CAAC,CAAE;YACC,SAAS;YACT,UAAU;YACV,UAAU;YACV,WAAW;YACX,QAAQ;YACR,iBAAiB;YACjB,YAAY;YACZ,YAAY;SACwB,CAAC;IAE3C,MAAM,MAAM,GAAG;QACb,+EAA+E;QAC/E,6EAA6E;QAC7E,EAAE;QACF,wBAAwB;QACxB,iEAAiE;Q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