@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,28 @@
1
+ /**
2
+ * IFileSystem
3
+ *
4
+ * Minimal file system abstraction for application-layer services
5
+ * that need to read/write files without directly depending on Node's fs.
6
+ *
7
+ * Infrastructure provides the real implementation (NodeFileSystem);
8
+ * tests provide a mock.
9
+ */
10
+ /**
11
+ * File stat information.
12
+ */
13
+ export interface IFileStat {
14
+ /** File modification time in milliseconds since epoch. */
15
+ readonly mtimeMs: number;
16
+ }
17
+ /**
18
+ * Minimal file system operations.
19
+ */
20
+ export interface IFileSystem {
21
+ /** Read a file and return its content as a UTF-8 string. Throws if not found. */
22
+ readFile(filePath: string): Promise<string>;
23
+ /** Write content to a file. Creates parent directories if needed. */
24
+ writeFile(filePath: string, content: string): Promise<void>;
25
+ /** Get file stats. Returns null if file does not exist. */
26
+ stat(filePath: string): Promise<IFileStat | null>;
27
+ }
28
+ //# sourceMappingURL=IFileSystem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFileSystem.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IFileSystem.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE5C,qEAAqE;IACrE,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5D,2DAA2D;IAC3D,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;CACnD"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * IFileSystem
4
+ *
5
+ * Minimal file system abstraction for application-layer services
6
+ * that need to read/write files without directly depending on Node's fs.
7
+ *
8
+ * Infrastructure provides the real implementation (NodeFileSystem);
9
+ * tests provide a mock.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ //# sourceMappingURL=IFileSystem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFileSystem.js","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IFileSystem.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG"}
@@ -35,6 +35,66 @@ export interface IGitDiffOptions {
35
35
  /** Working directory for the git command. */
36
36
  readonly cwd?: string;
37
37
  }
38
+ /**
39
+ * Options for detailed git log operations (triage).
40
+ */
41
+ export interface IGitLogDetailedOptions {
42
+ /** Only show commits after this date (YYYY-MM-DD or ISO). */
43
+ readonly since?: string;
44
+ /** Only show commits before this date (YYYY-MM-DD or ISO). */
45
+ readonly until?: string;
46
+ /** Maximum number of commits to return. */
47
+ readonly maxCount?: number;
48
+ /** Working directory for the git command. */
49
+ readonly cwd?: string;
50
+ }
51
+ /**
52
+ * Parsed commit from detailed log.
53
+ */
54
+ export interface IGitLogCommit {
55
+ /** Full SHA. */
56
+ readonly sha: string;
57
+ /** Short SHA. */
58
+ readonly shortSha: string;
59
+ /** Parent SHAs (space-separated in raw form). */
60
+ readonly parentShas: readonly string[];
61
+ /** Commit subject. */
62
+ readonly subject: string;
63
+ /** Commit body (may be empty). */
64
+ readonly body: string;
65
+ /** Author name. */
66
+ readonly authorName: string;
67
+ /** Author email. */
68
+ readonly authorEmail: string;
69
+ /** Author timestamp (Unix epoch). */
70
+ readonly authorTimestamp: number;
71
+ /** Ref names (tags, branches) if any. */
72
+ readonly refNames: string;
73
+ }
74
+ /**
75
+ * Commit stat entry from --numstat.
76
+ */
77
+ export interface IGitCommitStatEntry {
78
+ /** Lines added (may be '-' for binary). */
79
+ readonly added: number | null;
80
+ /** Lines deleted (may be '-' for binary). */
81
+ readonly deleted: number | null;
82
+ /** File path. */
83
+ readonly path: string;
84
+ /** Whether file was added (new). */
85
+ readonly isNew: boolean;
86
+ /** Whether file was deleted. */
87
+ readonly isDeleted: boolean;
88
+ }
89
+ /**
90
+ * Tag information from git.
91
+ */
92
+ export interface IGitTag {
93
+ /** Tag name. */
94
+ readonly name: string;
95
+ /** Commit SHA the tag points to. */
96
+ readonly sha: string;
97
+ }
38
98
  /**
39
99
  * Git client interface for shell-free application layer code.
40
100
  */
@@ -69,5 +129,31 @@ export interface IGitClient {
69
129
  * @returns True if the ref exists.
70
130
  */
71
131
  refExists(ref: string, cwd?: string): boolean;
132
+ /**
133
+ * Get detailed commit log for triage analysis.
134
+ * Returns structured commit data including parents, body, refs.
135
+ * @param options - Log options.
136
+ * @returns Array of parsed commits.
137
+ */
138
+ logDetailed(options: IGitLogDetailedOptions): IGitLogCommit[];
139
+ /**
140
+ * Get file statistics for a specific commit.
141
+ * @param sha - Commit SHA.
142
+ * @param cwd - Working directory.
143
+ * @returns Array of stat entries per file.
144
+ */
145
+ getCommitStats(sha: string, cwd?: string): IGitCommitStatEntry[];
146
+ /**
147
+ * List all tags in the repository.
148
+ * @param cwd - Working directory.
149
+ * @returns Array of tag info.
150
+ */
151
+ listTags(cwd?: string): IGitTag[];
152
+ /**
153
+ * Get the total number of commits in the repository.
154
+ * @param cwd - Working directory.
155
+ * @returns Total commit count.
156
+ */
157
+ countCommits(cwd?: string): number;
72
158
  }
73
159
  //# sourceMappingURL=IGitClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IGitClient.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IGitClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,sDAAsD;IACtD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,gCAAgC;I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AS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE9C;;;;;OAKG;IACH,WAAW,CAAC,OAAO,EAAE,sBAAsB,GAAG,aAAa,EAAE,CAAC;IAE9D;;;;;OAKG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAAC;IAEjE;;;;OAIG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAC;IAElC;;;;OAIG;IACH,YAAY,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACpC"}
@@ -0,0 +1,160 @@
1
+ /**
2
+ * Git Extractor Interface
3
+ *
4
+ * Defines the contract for heuristic-based extraction of structured facts
5
+ * from GitHub PR data (descriptions, review comments, linked issues).
6
+ * Complements the LLM-based CommitEnricher with fast, no-cost extraction.
7
+ *
8
+ * Part of LISA-9: Phase 3 Git-Powered Memory Extraction.
9
+ */
10
+ import type { ConfidenceLevel } from './types/IMemoryQuality';
11
+ /**
12
+ * Fact types that can be extracted via heuristics.
13
+ * Subset of memory types focused on patterns detectable without LLM.
14
+ */
15
+ export type HeuristicFactType = 'decision' | 'gotcha' | 'convention';
16
+ /**
17
+ * All valid heuristic fact types.
18
+ */
19
+ export declare const HEURISTIC_FACT_TYPE_VALUES: readonly HeuristicFactType[];
20
+ /**
21
+ * Type guard for HeuristicFactType.
22
+ */
23
+ export declare function isValidHeuristicFactType(value: string): value is HeuristicFactType;
24
+ /**
25
+ * Source of the extracted fact.
26
+ */
27
+ export type FactSource = 'pr-description' | 'review-comment' | 'issue-body' | 'commit-pattern';
28
+ /**
29
+ * All valid fact sources.
30
+ */
31
+ export declare const FACT_SOURCE_VALUES: readonly FactSource[];
32
+ /**
33
+ * A fact extracted via heuristic pattern matching (no LLM).
34
+ */
35
+ export interface IHeuristicFact {
36
+ /** Self-contained description of the fact. */
37
+ readonly text: string;
38
+ /** Type of fact extracted. */
39
+ readonly type: HeuristicFactType;
40
+ /** Source of the extraction. */
41
+ readonly source: FactSource;
42
+ /** Confidence level of the extraction. */
43
+ readonly confidence: ConfidenceLevel;
44
+ /** Relevant tags (file paths, technologies, components). */
45
+ readonly tags: readonly string[];
46
+ /** PR number if sourced from GitHub PR. */
47
+ readonly prNumber?: number;
48
+ /** Issue number if sourced from linked issue. */
49
+ readonly issueNumber?: number;
50
+ /** Commit SHA if sourced from commit pattern. */
51
+ readonly commitSha?: string;
52
+ /** Name of the pattern that matched. */
53
+ readonly matchedPattern?: string;
54
+ }
55
+ /**
56
+ * Enriched PR data fetched from GitHub API.
57
+ */
58
+ export interface IEnrichedPR {
59
+ /** PR number. */
60
+ readonly number: number;
61
+ /** PR title. */
62
+ readonly title: string;
63
+ /** PR description/body. */
64
+ readonly body: string;
65
+ /** PR author login. */
66
+ readonly author: string;
67
+ /** Review comments on the PR. */
68
+ readonly reviewComments: readonly IReviewComment[];
69
+ /** Issues linked to this PR. */
70
+ readonly linkedIssues: readonly ILinkedIssue[];
71
+ }
72
+ /**
73
+ * A review comment from a PR.
74
+ */
75
+ export interface IReviewComment {
76
+ /** Comment ID. */
77
+ readonly id: number;
78
+ /** Comment author login. */
79
+ readonly author: string;
80
+ /** Comment body text. */
81
+ readonly body: string;
82
+ /** File path if this is a line comment. */
83
+ readonly path?: string;
84
+ /** Whether this comment thread is resolved. */
85
+ readonly isResolved: boolean;
86
+ }
87
+ /**
88
+ * A linked issue from a PR.
89
+ */
90
+ export interface ILinkedIssue {
91
+ /** Issue number. */
92
+ readonly number: number;
93
+ /** Issue title. */
94
+ readonly title: string;
95
+ /** Issue body text. */
96
+ readonly body: string;
97
+ }
98
+ /**
99
+ * Result of heuristic extraction.
100
+ */
101
+ export interface IHeuristicExtractionResult {
102
+ /** Extracted facts from all processed PRs. */
103
+ readonly facts: readonly IHeuristicFact[];
104
+ /** Number of PRs that were processed. */
105
+ readonly prsProcessed: number;
106
+ /** Number of PRs that were skipped (already processed or fetch failed). */
107
+ readonly prsSkipped: number;
108
+ /** Number of patterns that matched. */
109
+ readonly patternsMatched: number;
110
+ }
111
+ /**
112
+ * Options for heuristic extraction.
113
+ */
114
+ export interface IHeuristicExtractionOptions {
115
+ /** Maximum PRs to process. Default: 10. */
116
+ readonly maxPRs?: number;
117
+ /** PR numbers to skip (e.g., already processed). */
118
+ readonly skipPRs?: readonly number[];
119
+ /** Restrict extraction to specific fact types. Default: all types. */
120
+ readonly extractTypes?: readonly HeuristicFactType[];
121
+ /** Minimum confidence level to include. Default: 'low'. */
122
+ readonly minConfidence?: ConfidenceLevel;
123
+ }
124
+ /**
125
+ * Service for heuristic-based fact extraction from GitHub PR data.
126
+ */
127
+ export interface IGitExtractor {
128
+ /**
129
+ * Extract facts from PRs linked to high-interest commits.
130
+ *
131
+ * Fetches PR descriptions, review comments, and linked issues,
132
+ * then applies pattern matching to extract decision, gotcha,
133
+ * and convention facts.
134
+ *
135
+ * @param prNumbers - PR numbers to process
136
+ * @param repo - Repository in "owner/repo" format
137
+ * @param options - Extraction options
138
+ * @returns Extracted facts, processing stats
139
+ */
140
+ extractFromPRs(prNumbers: readonly number[], repo: string, options?: IHeuristicExtractionOptions): Promise<IHeuristicExtractionResult>;
141
+ }
142
+ /**
143
+ * Interface for fetching GitHub PR/issue data.
144
+ * Abstracts the underlying GitHub client for testability.
145
+ */
146
+ export interface IGitHubDataFetcher {
147
+ /**
148
+ * Fetch enriched PR data including description, reviews, and linked issues.
149
+ *
150
+ * @param repo - Repository in "owner/repo" format
151
+ * @param prNumber - PR number to fetch
152
+ * @returns Enriched PR data, or null if fetch failed
153
+ */
154
+ fetchPR(repo: string, prNumber: number): Promise<IEnrichedPR | null>;
155
+ /**
156
+ * Check if GitHub API is available.
157
+ */
158
+ isAvailable(): Promise<boolean>;
159
+ }
160
+ //# sourceMappingURL=IGitExtractor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGitExtractor.d.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2BAA2B;IAC1C,2CAA2C;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,sEAAsE;IACtE,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACrD,2DAA2D;IAC3D,QAAQ,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;;;OAWG;IACH,cAAc,CACZ,SAAS,EAAE,SAAS,MAAM,EAAE,EAC5B,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACxC;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAErE;;OAEG;IACH,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACjC"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /**
3
+ * Git Extractor Interface
4
+ *
5
+ * Defines the contract for heuristic-based extraction of structured facts
6
+ * from GitHub PR data (descriptions, review comments, linked issues).
7
+ * Complements the LLM-based CommitEnricher with fast, no-cost extraction.
8
+ *
9
+ * Part of LISA-9: Phase 3 Git-Powered Memory Extraction.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FACT_SOURCE_VALUES = exports.HEURISTIC_FACT_TYPE_VALUES = void 0;
13
+ exports.isValidHeuristicFactType = isValidHeuristicFactType;
14
+ /**
15
+ * All valid heuristic fact types.
16
+ */
17
+ exports.HEURISTIC_FACT_TYPE_VALUES = [
18
+ 'decision',
19
+ 'gotcha',
20
+ 'convention',
21
+ ];
22
+ /**
23
+ * Type guard for HeuristicFactType.
24
+ */
25
+ function isValidHeuristicFactType(value) {
26
+ return exports.HEURISTIC_FACT_TYPE_VALUES.includes(value);
27
+ }
28
+ /**
29
+ * All valid fact sources.
30
+ */
31
+ exports.FACT_SOURCE_VALUES = [
32
+ 'pr-description',
33
+ 'review-comment',
34
+ 'issue-body',
35
+ 'commit-pattern',
36
+ ];
37
+ //# sourceMappingURL=IGitExtractor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGitExtractor.js","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IGitExtractor.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAsBH,4DAEC;AAdD;;GAEG;AACU,QAAA,0BAA0B,GAAiC;IACtE,UAAU;IACV,QAAQ;IACR,YAAY;CACJ,CAAC;AAEX;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IACpD,OAAO,kCAA0B,CAAC,QAAQ,CAAC,KAA0B,CAAC,CAAC;AACzE,CAAC;AAWD;;GAEG;AACU,QAAA,kBAAkB,GAA0B;IACvD,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;CACR,CAAC"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Git Indexing Service Interface
3
+ *
4
+ * Defines the contract for saving extracted git facts to memory with
5
+ * appropriate quality tags, lifecycle metadata, and deduplication.
6
+ *
7
+ * Part of LISA-10: Phase 4 Indexing.
8
+ */
9
+ import type { IHeuristicFact } from './IGitExtractor';
10
+ /**
11
+ * Conventional commit types that can be mapped to memory types.
12
+ */
13
+ export type ConventionalCommitType = 'feat' | 'fix' | 'refactor' | 'docs' | 'test' | 'chore' | 'style' | 'perf' | 'ci' | 'build';
14
+ /**
15
+ * Memory types derived from conventional commit types.
16
+ */
17
+ export type GitMemoryType = 'milestone' | 'gotcha' | 'decision' | 'convention';
18
+ /**
19
+ * All valid conventional commit types.
20
+ */
21
+ export declare const CONVENTIONAL_COMMIT_TYPES: readonly ConventionalCommitType[];
22
+ /**
23
+ * Mapping from conventional commit types to memory types.
24
+ * Returns null for types that should be skipped (e.g., chore).
25
+ */
26
+ export declare const COMMIT_TYPE_TO_MEMORY_TYPE: Readonly<Record<ConventionalCommitType, GitMemoryType | null>>;
27
+ /**
28
+ * Options for indexing git facts.
29
+ */
30
+ export interface IGitIndexingOptions {
31
+ /** Conventional commit type for memory type mapping. */
32
+ readonly conventionalType?: ConventionalCommitType;
33
+ /** Skip deduplication check. Default: false. */
34
+ readonly skipDeduplication?: boolean;
35
+ /** Similarity threshold for deduplication (0-1). Default: 0.85. */
36
+ readonly similarityThreshold?: number;
37
+ }
38
+ /**
39
+ * Result of git fact indexing.
40
+ */
41
+ export interface IGitIndexingResult {
42
+ /** Number of facts successfully indexed. */
43
+ readonly indexed: number;
44
+ /** Number of facts skipped (e.g., chore type). */
45
+ readonly skipped: number;
46
+ /** Number of duplicate facts not re-indexed. */
47
+ readonly duplicates: number;
48
+ }
49
+ /**
50
+ * Service for indexing extracted git facts to memory.
51
+ *
52
+ * Note: Group IDs are no longer used - the git repo provides scoping via git-mem.
53
+ */
54
+ export interface IGitIndexingService {
55
+ /**
56
+ * Index extracted facts to memory with quality tags and deduplication.
57
+ *
58
+ * Applies:
59
+ * - Quality defaults: source:code-analysis, confidence from fact, lifecycle:project
60
+ * - Memory type mapping based on conventional commit type
61
+ * - Deduplication against existing memories
62
+ *
63
+ * @param facts - Facts extracted from git history
64
+ * @param options - Indexing options
65
+ * @returns Indexing result with counts
66
+ */
67
+ indexFacts(facts: readonly IHeuristicFact[], options?: IGitIndexingOptions): Promise<IGitIndexingResult>;
68
+ }
69
+ //# sourceMappingURL=IGitIndexingService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGitIndexingService.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IGitIndexingService.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B,MAAM,GACN,KAAK,GACL,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,IAAI,GACJ,OAAO,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,sBAAsB,EAW7D,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,MAAM,CAAC,sBAAsB,EAAE,aAAa,GAAG,IAAI,CAAC,CAWrG,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IACnD,gDAAgD;IAChD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACrC,mEAAmE;IACnE,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,4CAA4C;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,kDAAkD;IAClD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;;OAWG;IACH,UAAU,CACR,KAAK,EAAE,SAAS,cAAc,EAAE,EAChC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAChC"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /**
3
+ * Git Indexing Service Interface
4
+ *
5
+ * Defines the contract for saving extracted git facts to memory with
6
+ * appropriate quality tags, lifecycle metadata, and deduplication.
7
+ *
8
+ * Part of LISA-10: Phase 4 Indexing.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.COMMIT_TYPE_TO_MEMORY_TYPE = exports.CONVENTIONAL_COMMIT_TYPES = void 0;
12
+ /**
13
+ * All valid conventional commit types.
14
+ */
15
+ exports.CONVENTIONAL_COMMIT_TYPES = [
16
+ 'feat',
17
+ 'fix',
18
+ 'refactor',
19
+ 'docs',
20
+ 'test',
21
+ 'chore',
22
+ 'style',
23
+ 'perf',
24
+ 'ci',
25
+ 'build',
26
+ ];
27
+ /**
28
+ * Mapping from conventional commit types to memory types.
29
+ * Returns null for types that should be skipped (e.g., chore).
30
+ */
31
+ exports.COMMIT_TYPE_TO_MEMORY_TYPE = {
32
+ feat: 'milestone',
33
+ fix: 'gotcha',
34
+ refactor: 'decision',
35
+ docs: 'convention',
36
+ test: 'convention',
37
+ chore: null, // Skip
38
+ style: null, // Skip
39
+ perf: 'decision',
40
+ ci: null, // Skip
41
+ build: null, // Skip
42
+ };
43
+ //# sourceMappingURL=IGitIndexingService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGitIndexingService.js","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IGitIndexingService.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAwBH;;GAEG;AACU,QAAA,yBAAyB,GAAsC;IAC1E,MAAM;IACN,KAAK;IACL,UAAU;IACV,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,IAAI;IACJ,OAAO;CACC,CAAC;AAEX;;;GAGG;AACU,QAAA,0BAA0B,GAAmE;IACxG,IAAI,EAAE,WAAW;IACjB,GAAG,EAAE,QAAQ;IACb,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,IAAI,EAAG,OAAO;IACrB,KAAK,EAAE,IAAI,EAAG,OAAO;IACrB,IAAI,EAAE,UAAU;IAChB,EAAE,EAAE,IAAI,EAAM,OAAO;IACrB,KAAK,EAAE,IAAI,EAAG,OAAO;CACtB,CAAC"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Git-mem Client Interface
3
+ *
4
+ * Contract for interacting with the git-mem CLI.
5
+ * Lives in the domain layer — implementations in infrastructure.
6
+ */
7
+ import type { IGitMemEntry, IRememberOptions, IRecallOptions, IContextOptions, IRetrofitOptions, IRetrofitResult } from '../../infrastructure/git-mem/types';
8
+ /**
9
+ * Client for git-mem CLI operations.
10
+ *
11
+ * All methods handle errors gracefully:
12
+ * - remember: returns false on failure
13
+ * - recall/context: return empty arrays on failure
14
+ * - retrofit: returns { success: false } on failure
15
+ */
16
+ export interface IGitMemClient {
17
+ /**
18
+ * Store a memory in git-mem.
19
+ * @param text - The memory content to store
20
+ * @param options - Type, lifecycle, confidence, tags, commit
21
+ * @returns true if stored successfully, false on error
22
+ */
23
+ remember(text: string, options?: IRememberOptions): Promise<boolean>;
24
+ /**
25
+ * Search and retrieve memories.
26
+ * @param query - Optional search text (empty returns all)
27
+ * @param options - Limit, type filter, since date, tag filter
28
+ * @returns Array of memory entries (empty on error)
29
+ */
30
+ recall(query?: string, options?: IRecallOptions): Promise<readonly IGitMemEntry[]>;
31
+ /**
32
+ * Get memories relevant to currently staged git changes.
33
+ * @param options - Limit and relevance threshold
34
+ * @returns Array of relevant memory entries (empty on error)
35
+ */
36
+ context(options?: IContextOptions): Promise<readonly IGitMemEntry[]>;
37
+ /**
38
+ * Scan commit history and extract memories.
39
+ * @param options - Since date, max commits, threshold, dry run
40
+ * @returns Result with success status and output
41
+ */
42
+ retrofit(options?: IRetrofitOptions): Promise<IRetrofitResult>;
43
+ }
44
+ //# sourceMappingURL=IGitMemClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGitMemClient.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IGitMemClient.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,eAAe,EAChB,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAErE;;;;;OAKG;IACH,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC,CAAC;IAEnF;;;;OAIG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC,CAAC;IAErE;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAChE"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Git-mem Client Interface
4
+ *
5
+ * Contract for interacting with the git-mem CLI.
6
+ * Lives in the domain layer — implementations in infrastructure.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=IGitMemClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGitMemClient.js","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IGitMemClient.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}