@tonycasey/lisa 1.2.0 → 2.0.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 (565) hide show
  1. package/README.md +22 -15
  2. package/dist/hooks/session-start.js +43114 -0
  3. package/dist/hooks/session-stop.js +42699 -0
  4. package/dist/hooks/user-prompt-submit.js +42757 -0
  5. package/dist/lib/application/handlers/PromptSubmitHandler.d.ts +27 -0
  6. package/dist/lib/application/handlers/PromptSubmitHandler.d.ts.map +1 -0
  7. package/dist/lib/application/handlers/PromptSubmitHandler.js +53 -0
  8. package/dist/lib/application/handlers/PromptSubmitHandler.js.map +1 -0
  9. package/dist/lib/application/handlers/SessionStartHandler.d.ts +50 -0
  10. package/dist/lib/application/handlers/SessionStartHandler.d.ts.map +1 -0
  11. package/dist/lib/application/handlers/SessionStartHandler.js +448 -0
  12. package/dist/lib/application/handlers/SessionStartHandler.js.map +1 -0
  13. package/dist/lib/application/handlers/SessionStopHandler.d.ts +15 -0
  14. package/dist/lib/application/handlers/SessionStopHandler.d.ts.map +1 -0
  15. package/dist/lib/application/handlers/SessionStopHandler.js +35 -0
  16. package/dist/lib/application/handlers/SessionStopHandler.js.map +1 -0
  17. package/dist/lib/application/handlers/index.d.ts +8 -0
  18. package/dist/lib/application/handlers/index.d.ts.map +1 -0
  19. package/dist/lib/application/handlers/index.js +14 -0
  20. package/dist/lib/application/handlers/index.js.map +1 -0
  21. package/dist/lib/application/index.d.ts +13 -0
  22. package/dist/lib/application/index.d.ts.map +1 -0
  23. package/dist/lib/application/index.js +31 -0
  24. package/dist/lib/application/index.js.map +1 -0
  25. package/dist/lib/application/interfaces/ISessionStartResult.d.ts +22 -0
  26. package/dist/lib/application/interfaces/ISessionStartResult.d.ts.map +1 -0
  27. package/dist/lib/application/interfaces/ISessionStartResult.js +3 -0
  28. package/dist/lib/application/interfaces/ISessionStartResult.js.map +1 -0
  29. package/dist/lib/application/interfaces/index.d.ts +5 -0
  30. package/dist/lib/application/interfaces/index.d.ts.map +1 -0
  31. package/dist/lib/application/interfaces/index.js +6 -0
  32. package/dist/lib/application/interfaces/index.js.map +1 -0
  33. package/dist/lib/cli.d.ts +34 -0
  34. package/dist/lib/cli.d.ts.map +1 -0
  35. package/dist/lib/cli.js +664 -0
  36. package/dist/lib/cli.js.map +1 -0
  37. package/dist/lib/domain/errors/LisaError.d.ts +41 -0
  38. package/dist/lib/domain/errors/LisaError.d.ts.map +1 -0
  39. package/dist/lib/domain/errors/LisaError.js +69 -0
  40. package/dist/lib/domain/errors/LisaError.js.map +1 -0
  41. package/dist/lib/domain/errors/index.d.ts +5 -0
  42. package/dist/lib/domain/errors/index.d.ts.map +1 -0
  43. package/dist/lib/domain/errors/index.js +14 -0
  44. package/dist/lib/domain/errors/index.js.map +1 -0
  45. package/dist/lib/domain/index.d.ts +14 -0
  46. package/dist/lib/domain/index.d.ts.map +1 -0
  47. package/dist/lib/domain/index.js +33 -0
  48. package/dist/lib/domain/index.js.map +1 -0
  49. package/dist/lib/domain/interfaces/IEventEmitter.d.ts +32 -0
  50. package/dist/lib/domain/interfaces/IEventEmitter.d.ts.map +1 -0
  51. package/dist/lib/domain/interfaces/IEventEmitter.js +3 -0
  52. package/dist/lib/domain/interfaces/IEventEmitter.js.map +1 -0
  53. package/dist/lib/domain/interfaces/ILisaContext.d.ts +25 -0
  54. package/dist/lib/domain/interfaces/ILisaContext.d.ts.map +1 -0
  55. package/dist/lib/domain/interfaces/ILisaContext.js +3 -0
  56. package/dist/lib/domain/interfaces/ILisaContext.js.map +1 -0
  57. package/dist/lib/domain/interfaces/ILisaServices.d.ts +34 -0
  58. package/dist/lib/domain/interfaces/ILisaServices.d.ts.map +1 -0
  59. package/dist/lib/domain/interfaces/ILisaServices.js +3 -0
  60. package/dist/lib/domain/interfaces/ILisaServices.js.map +1 -0
  61. package/dist/lib/domain/interfaces/ILogger.d.ts +94 -0
  62. package/dist/lib/domain/interfaces/ILogger.d.ts.map +1 -0
  63. package/dist/lib/domain/interfaces/ILogger.js +3 -0
  64. package/dist/lib/domain/interfaces/ILogger.js.map +1 -0
  65. package/dist/lib/domain/interfaces/IMcpClient.d.ts +31 -0
  66. package/dist/lib/domain/interfaces/IMcpClient.d.ts.map +1 -0
  67. package/dist/lib/domain/interfaces/IMcpClient.js +3 -0
  68. package/dist/lib/domain/interfaces/IMcpClient.js.map +1 -0
  69. package/dist/lib/domain/interfaces/IMemoryService.d.ts +56 -0
  70. package/dist/lib/domain/interfaces/IMemoryService.d.ts.map +1 -0
  71. package/dist/lib/domain/interfaces/IMemoryService.js +3 -0
  72. package/dist/lib/domain/interfaces/IMemoryService.js.map +1 -0
  73. package/dist/lib/domain/interfaces/IRecursionService.d.ts +52 -0
  74. package/dist/lib/domain/interfaces/IRecursionService.d.ts.map +1 -0
  75. package/dist/lib/domain/interfaces/IRecursionService.js +3 -0
  76. package/dist/lib/domain/interfaces/IRecursionService.js.map +1 -0
  77. package/dist/lib/domain/interfaces/ISessionCaptureService.d.ts +16 -0
  78. package/dist/lib/domain/interfaces/ISessionCaptureService.d.ts.map +1 -0
  79. package/dist/lib/domain/interfaces/ISessionCaptureService.js +3 -0
  80. package/dist/lib/domain/interfaces/ISessionCaptureService.js.map +1 -0
  81. package/dist/lib/domain/interfaces/ITaskService.d.ts +52 -0
  82. package/dist/lib/domain/interfaces/ITaskService.d.ts.map +1 -0
  83. package/dist/lib/domain/interfaces/ITaskService.js +3 -0
  84. package/dist/lib/domain/interfaces/ITaskService.js.map +1 -0
  85. package/dist/lib/domain/interfaces/dal/IConnectionManager.d.ts +110 -0
  86. package/dist/lib/domain/interfaces/dal/IConnectionManager.d.ts.map +1 -0
  87. package/dist/lib/domain/interfaces/dal/IConnectionManager.js +8 -0
  88. package/dist/lib/domain/interfaces/dal/IConnectionManager.js.map +1 -0
  89. package/dist/lib/domain/interfaces/dal/IMemoryRepository.d.ts +93 -0
  90. package/dist/lib/domain/interfaces/dal/IMemoryRepository.d.ts.map +1 -0
  91. package/dist/lib/domain/interfaces/dal/IMemoryRepository.js +9 -0
  92. package/dist/lib/domain/interfaces/dal/IMemoryRepository.js.map +1 -0
  93. package/dist/lib/domain/interfaces/dal/IRepositoryRouter.d.ts +88 -0
  94. package/dist/lib/domain/interfaces/dal/IRepositoryRouter.d.ts.map +1 -0
  95. package/dist/lib/domain/interfaces/dal/IRepositoryRouter.js +23 -0
  96. package/dist/lib/domain/interfaces/dal/IRepositoryRouter.js.map +1 -0
  97. package/dist/lib/domain/interfaces/dal/ITaskRepository.d.ts +87 -0
  98. package/dist/lib/domain/interfaces/dal/ITaskRepository.d.ts.map +1 -0
  99. package/dist/lib/domain/interfaces/dal/ITaskRepository.js +9 -0
  100. package/dist/lib/domain/interfaces/dal/ITaskRepository.js.map +1 -0
  101. package/dist/lib/domain/interfaces/dal/index.d.ts +14 -0
  102. package/dist/lib/domain/interfaces/dal/index.d.ts.map +1 -0
  103. package/dist/lib/domain/interfaces/dal/index.js +15 -0
  104. package/dist/lib/domain/interfaces/dal/index.js.map +1 -0
  105. package/dist/lib/domain/interfaces/dal/types.d.ts +81 -0
  106. package/dist/lib/domain/interfaces/dal/types.d.ts.map +1 -0
  107. package/dist/lib/domain/interfaces/dal/types.js +28 -0
  108. package/dist/lib/domain/interfaces/dal/types.js.map +1 -0
  109. package/dist/lib/domain/interfaces/events/IMemoryEvent.d.ts +27 -0
  110. package/dist/lib/domain/interfaces/events/IMemoryEvent.d.ts.map +1 -0
  111. package/dist/lib/domain/interfaces/events/IMemoryEvent.js +26 -0
  112. package/dist/lib/domain/interfaces/events/IMemoryEvent.js.map +1 -0
  113. package/dist/lib/domain/interfaces/events/IPromptSubmitEvent.d.ts +20 -0
  114. package/dist/lib/domain/interfaces/events/IPromptSubmitEvent.d.ts.map +1 -0
  115. package/dist/lib/domain/interfaces/events/IPromptSubmitEvent.js +16 -0
  116. package/dist/lib/domain/interfaces/events/IPromptSubmitEvent.js.map +1 -0
  117. package/dist/lib/domain/interfaces/events/ISessionStartEvent.d.ts +19 -0
  118. package/dist/lib/domain/interfaces/events/ISessionStartEvent.d.ts.map +1 -0
  119. package/dist/lib/domain/interfaces/events/ISessionStartEvent.js +15 -0
  120. package/dist/lib/domain/interfaces/events/ISessionStartEvent.js.map +1 -0
  121. package/dist/lib/domain/interfaces/events/ISessionStopEvent.d.ts +22 -0
  122. package/dist/lib/domain/interfaces/events/ISessionStopEvent.d.ts.map +1 -0
  123. package/dist/lib/domain/interfaces/events/ISessionStopEvent.js +15 -0
  124. package/dist/lib/domain/interfaces/events/ISessionStopEvent.js.map +1 -0
  125. package/dist/lib/domain/interfaces/events/LisaEvent.d.ts +13 -0
  126. package/dist/lib/domain/interfaces/events/LisaEvent.d.ts.map +1 -0
  127. package/dist/lib/domain/interfaces/events/LisaEvent.js +3 -0
  128. package/dist/lib/domain/interfaces/events/LisaEvent.js.map +1 -0
  129. package/dist/lib/domain/interfaces/events/index.d.ts +9 -0
  130. package/dist/lib/domain/interfaces/events/index.d.ts.map +1 -0
  131. package/dist/lib/domain/interfaces/events/index.js +16 -0
  132. package/dist/lib/domain/interfaces/events/index.js.map +1 -0
  133. package/dist/lib/domain/interfaces/index.d.ts +16 -0
  134. package/dist/lib/domain/interfaces/index.d.ts.map +1 -0
  135. package/dist/lib/domain/interfaces/index.js +25 -0
  136. package/dist/lib/domain/interfaces/index.js.map +1 -0
  137. package/dist/lib/domain/interfaces/types/ICapturedWork.d.ts +14 -0
  138. package/dist/lib/domain/interfaces/types/ICapturedWork.d.ts.map +1 -0
  139. package/dist/lib/domain/interfaces/types/ICapturedWork.js +14 -0
  140. package/dist/lib/domain/interfaces/types/ICapturedWork.js.map +1 -0
  141. package/dist/lib/domain/interfaces/types/IMemoryResult.d.ts +39 -0
  142. package/dist/lib/domain/interfaces/types/IMemoryResult.d.ts.map +1 -0
  143. package/dist/lib/domain/interfaces/types/IMemoryResult.js +29 -0
  144. package/dist/lib/domain/interfaces/types/IMemoryResult.js.map +1 -0
  145. package/dist/lib/domain/interfaces/types/ITask.d.ts +46 -0
  146. package/dist/lib/domain/interfaces/types/ITask.d.ts.map +1 -0
  147. package/dist/lib/domain/interfaces/types/ITask.js +17 -0
  148. package/dist/lib/domain/interfaces/types/ITask.js.map +1 -0
  149. package/dist/lib/domain/interfaces/types/index.d.ts +7 -0
  150. package/dist/lib/domain/interfaces/types/index.d.ts.map +1 -0
  151. package/dist/lib/domain/interfaces/types/index.js +14 -0
  152. package/dist/lib/domain/interfaces/types/index.js.map +1 -0
  153. package/dist/lib/domain/types/ISOTimestamp.d.ts +19 -0
  154. package/dist/lib/domain/types/ISOTimestamp.d.ts.map +1 -0
  155. package/dist/lib/domain/types/ISOTimestamp.js +18 -0
  156. package/dist/lib/domain/types/ISOTimestamp.js.map +1 -0
  157. package/dist/lib/domain/types/index.d.ts +7 -0
  158. package/dist/lib/domain/types/index.d.ts.map +1 -0
  159. package/dist/lib/domain/types/index.js +12 -0
  160. package/dist/lib/domain/types/index.js.map +1 -0
  161. package/dist/lib/infrastructure/adapters/claude/index.d.ts +8 -0
  162. package/dist/lib/infrastructure/adapters/claude/index.d.ts.map +1 -0
  163. package/dist/lib/infrastructure/adapters/claude/index.js +18 -0
  164. package/dist/lib/infrastructure/adapters/claude/index.js.map +1 -0
  165. package/dist/lib/infrastructure/adapters/claude/session-start.d.ts +9 -0
  166. package/dist/lib/infrastructure/adapters/claude/session-start.d.ts.map +1 -0
  167. package/dist/lib/infrastructure/adapters/claude/session-start.js +54 -0
  168. package/dist/lib/infrastructure/adapters/claude/session-start.js.map +1 -0
  169. package/dist/lib/infrastructure/adapters/claude/session-stop.d.ts +13 -0
  170. package/dist/lib/infrastructure/adapters/claude/session-stop.d.ts.map +1 -0
  171. package/dist/lib/infrastructure/adapters/claude/session-stop.js +43 -0
  172. package/dist/lib/infrastructure/adapters/claude/session-stop.js.map +1 -0
  173. package/dist/lib/infrastructure/adapters/claude/stdin.d.ts +13 -0
  174. package/dist/lib/infrastructure/adapters/claude/stdin.d.ts.map +1 -0
  175. package/dist/lib/infrastructure/adapters/claude/stdin.js +36 -0
  176. package/dist/lib/infrastructure/adapters/claude/stdin.js.map +1 -0
  177. package/dist/lib/infrastructure/adapters/claude/user-prompt-submit.d.ts +13 -0
  178. package/dist/lib/infrastructure/adapters/claude/user-prompt-submit.d.ts.map +1 -0
  179. package/dist/lib/infrastructure/adapters/claude/user-prompt-submit.js +58 -0
  180. package/dist/lib/infrastructure/adapters/claude/user-prompt-submit.js.map +1 -0
  181. package/dist/lib/infrastructure/adapters/opencode/index.d.ts +7 -0
  182. package/dist/lib/infrastructure/adapters/opencode/index.d.ts.map +1 -0
  183. package/dist/lib/infrastructure/adapters/opencode/index.js +18 -0
  184. package/dist/lib/infrastructure/adapters/opencode/index.js.map +1 -0
  185. package/dist/lib/infrastructure/adapters/opencode/opencode-events.d.ts +73 -0
  186. package/dist/lib/infrastructure/adapters/opencode/opencode-events.d.ts.map +1 -0
  187. package/dist/lib/infrastructure/adapters/opencode/opencode-events.js +131 -0
  188. package/dist/lib/infrastructure/adapters/opencode/opencode-events.js.map +1 -0
  189. package/dist/lib/infrastructure/adapters/opencode/plugin.d.ts +60 -0
  190. package/dist/lib/infrastructure/adapters/opencode/plugin.d.ts.map +1 -0
  191. package/dist/lib/infrastructure/adapters/opencode/plugin.js +147 -0
  192. package/dist/lib/infrastructure/adapters/opencode/plugin.js.map +1 -0
  193. package/dist/lib/infrastructure/context/ContextDetector.d.ts +92 -0
  194. package/dist/lib/infrastructure/context/ContextDetector.d.ts.map +1 -0
  195. package/dist/lib/infrastructure/context/ContextDetector.js +415 -0
  196. package/dist/lib/infrastructure/context/ContextDetector.js.map +1 -0
  197. package/dist/lib/infrastructure/context/index.d.ts +5 -0
  198. package/dist/lib/infrastructure/context/index.d.ts.map +1 -0
  199. package/dist/lib/infrastructure/context/index.js +9 -0
  200. package/dist/lib/infrastructure/context/index.js.map +1 -0
  201. package/dist/lib/infrastructure/dal/RepositoryFactory.d.ts +71 -0
  202. package/dist/lib/infrastructure/dal/RepositoryFactory.d.ts.map +1 -0
  203. package/dist/lib/infrastructure/dal/RepositoryFactory.js +134 -0
  204. package/dist/lib/infrastructure/dal/RepositoryFactory.js.map +1 -0
  205. package/dist/lib/infrastructure/dal/connections/McpConnectionManager.d.ts +56 -0
  206. package/dist/lib/infrastructure/dal/connections/McpConnectionManager.d.ts.map +1 -0
  207. package/dist/lib/infrastructure/dal/connections/McpConnectionManager.js +98 -0
  208. package/dist/lib/infrastructure/dal/connections/McpConnectionManager.js.map +1 -0
  209. package/dist/lib/infrastructure/dal/connections/Neo4jConnectionManager.d.ts +60 -0
  210. package/dist/lib/infrastructure/dal/connections/Neo4jConnectionManager.d.ts.map +1 -0
  211. package/dist/lib/infrastructure/dal/connections/Neo4jConnectionManager.js +181 -0
  212. package/dist/lib/infrastructure/dal/connections/Neo4jConnectionManager.js.map +1 -0
  213. package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.d.ts +53 -0
  214. package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.d.ts.map +1 -0
  215. package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.js +168 -0
  216. package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.js.map +1 -0
  217. package/dist/lib/infrastructure/dal/connections/index.d.ts +9 -0
  218. package/dist/lib/infrastructure/dal/connections/index.d.ts.map +1 -0
  219. package/dist/lib/infrastructure/dal/connections/index.js +18 -0
  220. package/dist/lib/infrastructure/dal/connections/index.js.map +1 -0
  221. package/dist/lib/infrastructure/dal/index.d.ts +27 -0
  222. package/dist/lib/infrastructure/dal/index.d.ts.map +1 -0
  223. package/dist/lib/infrastructure/dal/index.js +50 -0
  224. package/dist/lib/infrastructure/dal/index.js.map +1 -0
  225. package/dist/lib/infrastructure/dal/repositories/index.d.ts +7 -0
  226. package/dist/lib/infrastructure/dal/repositories/index.d.ts.map +1 -0
  227. package/dist/lib/infrastructure/dal/repositories/index.js +19 -0
  228. package/dist/lib/infrastructure/dal/repositories/index.js.map +1 -0
  229. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.d.ts +54 -0
  230. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.d.ts.map +1 -0
  231. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.js +131 -0
  232. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.js.map +1 -0
  233. package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.d.ts +60 -0
  234. package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.d.ts.map +1 -0
  235. package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.js +182 -0
  236. package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.js.map +1 -0
  237. package/dist/lib/infrastructure/dal/repositories/mcp/index.d.ts +6 -0
  238. package/dist/lib/infrastructure/dal/repositories/mcp/index.d.ts.map +1 -0
  239. package/dist/lib/infrastructure/dal/repositories/mcp/index.js +11 -0
  240. package/dist/lib/infrastructure/dal/repositories/mcp/index.js.map +1 -0
  241. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.d.ts +47 -0
  242. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.d.ts.map +1 -0
  243. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.js +144 -0
  244. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.js.map +1 -0
  245. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.d.ts +46 -0
  246. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.d.ts.map +1 -0
  247. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.js +160 -0
  248. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.js.map +1 -0
  249. package/dist/lib/infrastructure/dal/repositories/neo4j/index.d.ts +6 -0
  250. package/dist/lib/infrastructure/dal/repositories/neo4j/index.d.ts.map +1 -0
  251. package/dist/lib/infrastructure/dal/repositories/neo4j/index.js +11 -0
  252. package/dist/lib/infrastructure/dal/repositories/neo4j/index.js.map +1 -0
  253. package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.d.ts +55 -0
  254. package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.d.ts.map +1 -0
  255. package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.js +165 -0
  256. package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.js.map +1 -0
  257. package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.d.ts +58 -0
  258. package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.d.ts.map +1 -0
  259. package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.js +206 -0
  260. package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.js.map +1 -0
  261. package/dist/lib/infrastructure/dal/repositories/zep/index.d.ts +6 -0
  262. package/dist/lib/infrastructure/dal/repositories/zep/index.d.ts.map +1 -0
  263. package/dist/lib/infrastructure/dal/repositories/zep/index.js +11 -0
  264. package/dist/lib/infrastructure/dal/repositories/zep/index.js.map +1 -0
  265. package/dist/lib/infrastructure/dal/routing/RepositoryRouter.d.ts +73 -0
  266. package/dist/lib/infrastructure/dal/routing/RepositoryRouter.d.ts.map +1 -0
  267. package/dist/lib/infrastructure/dal/routing/RepositoryRouter.js +170 -0
  268. package/dist/lib/infrastructure/dal/routing/RepositoryRouter.js.map +1 -0
  269. package/dist/lib/infrastructure/dal/routing/index.d.ts +5 -0
  270. package/dist/lib/infrastructure/dal/routing/index.d.ts.map +1 -0
  271. package/dist/lib/infrastructure/dal/routing/index.js +10 -0
  272. package/dist/lib/infrastructure/dal/routing/index.js.map +1 -0
  273. package/dist/lib/infrastructure/di/ServiceFactory.d.ts +44 -0
  274. package/dist/lib/infrastructure/di/ServiceFactory.d.ts.map +1 -0
  275. package/dist/lib/infrastructure/di/ServiceFactory.js +141 -0
  276. package/dist/lib/infrastructure/di/ServiceFactory.js.map +1 -0
  277. package/dist/lib/infrastructure/di/index.d.ts +5 -0
  278. package/dist/lib/infrastructure/di/index.d.ts.map +1 -0
  279. package/dist/lib/infrastructure/di/index.js +10 -0
  280. package/dist/lib/infrastructure/di/index.js.map +1 -0
  281. package/dist/lib/infrastructure/index.d.ts +17 -0
  282. package/dist/lib/infrastructure/index.d.ts.map +1 -0
  283. package/dist/lib/infrastructure/index.js +41 -0
  284. package/dist/lib/infrastructure/index.js.map +1 -0
  285. package/dist/lib/infrastructure/logging/Logger.d.ts +50 -0
  286. package/dist/lib/infrastructure/logging/Logger.d.ts.map +1 -0
  287. package/dist/lib/infrastructure/logging/Logger.js +167 -0
  288. package/dist/lib/infrastructure/logging/Logger.js.map +1 -0
  289. package/dist/lib/infrastructure/logging/context.d.ts +51 -0
  290. package/dist/lib/infrastructure/logging/context.d.ts.map +1 -0
  291. package/dist/lib/infrastructure/logging/context.js +77 -0
  292. package/dist/lib/infrastructure/logging/context.js.map +1 -0
  293. package/dist/lib/infrastructure/logging/factory.d.ts +36 -0
  294. package/dist/lib/infrastructure/logging/factory.d.ts.map +1 -0
  295. package/dist/lib/infrastructure/logging/factory.js +122 -0
  296. package/dist/lib/infrastructure/logging/factory.js.map +1 -0
  297. package/dist/lib/infrastructure/logging/index.d.ts +26 -0
  298. package/dist/lib/infrastructure/logging/index.d.ts.map +1 -0
  299. package/dist/lib/infrastructure/logging/index.js +45 -0
  300. package/dist/lib/infrastructure/logging/index.js.map +1 -0
  301. package/dist/lib/infrastructure/mcp/McpClient.d.ts +36 -0
  302. package/dist/lib/infrastructure/mcp/McpClient.d.ts.map +1 -0
  303. package/dist/lib/infrastructure/mcp/McpClient.js +155 -0
  304. package/dist/lib/infrastructure/mcp/McpClient.js.map +1 -0
  305. package/dist/lib/infrastructure/mcp/index.d.ts +5 -0
  306. package/dist/lib/infrastructure/mcp/index.d.ts.map +1 -0
  307. package/dist/lib/infrastructure/mcp/index.js +9 -0
  308. package/dist/lib/infrastructure/mcp/index.js.map +1 -0
  309. package/dist/lib/infrastructure/services/EventEmitter.d.ts +24 -0
  310. package/dist/lib/infrastructure/services/EventEmitter.d.ts.map +1 -0
  311. package/dist/lib/infrastructure/services/EventEmitter.js +41 -0
  312. package/dist/lib/infrastructure/services/EventEmitter.js.map +1 -0
  313. package/dist/lib/infrastructure/services/MemoryService.d.ts +48 -0
  314. package/dist/lib/infrastructure/services/MemoryService.d.ts.map +1 -0
  315. package/dist/lib/infrastructure/services/MemoryService.js +298 -0
  316. package/dist/lib/infrastructure/services/MemoryService.js.map +1 -0
  317. package/dist/lib/infrastructure/services/RecursionService.d.ts +50 -0
  318. package/dist/lib/infrastructure/services/RecursionService.d.ts.map +1 -0
  319. package/dist/lib/infrastructure/services/RecursionService.js +233 -0
  320. package/dist/lib/infrastructure/services/RecursionService.js.map +1 -0
  321. package/dist/lib/infrastructure/services/SessionCaptureService.d.ts +31 -0
  322. package/dist/lib/infrastructure/services/SessionCaptureService.d.ts.map +1 -0
  323. package/dist/lib/infrastructure/services/SessionCaptureService.js +38 -0
  324. package/dist/lib/infrastructure/services/SessionCaptureService.js.map +1 -0
  325. package/dist/lib/infrastructure/services/TaskService.d.ts +38 -0
  326. package/dist/lib/infrastructure/services/TaskService.d.ts.map +1 -0
  327. package/dist/lib/infrastructure/services/TaskService.js +227 -0
  328. package/dist/lib/infrastructure/services/TaskService.js.map +1 -0
  329. package/dist/lib/infrastructure/services/index.d.ts +9 -0
  330. package/dist/lib/infrastructure/services/index.d.ts.map +1 -0
  331. package/dist/lib/infrastructure/services/index.js +17 -0
  332. package/dist/lib/infrastructure/services/index.js.map +1 -0
  333. package/dist/lib/interfaces/IDockerClient.d.ts +6 -0
  334. package/dist/lib/interfaces/IDockerClient.d.ts.map +1 -0
  335. package/dist/lib/interfaces/IDockerClient.js +1 -0
  336. package/dist/lib/interfaces/IDockerClient.js.map +1 -0
  337. package/dist/lib/interfaces/IMcpClient.d.ts +7 -0
  338. package/dist/lib/interfaces/IMcpClient.d.ts.map +1 -0
  339. package/dist/lib/interfaces/IMcpClient.js +1 -0
  340. package/dist/lib/interfaces/IMcpClient.js.map +1 -0
  341. package/dist/lib/interfaces/IServices.d.ts +9 -0
  342. package/dist/lib/interfaces/IServices.d.ts.map +1 -0
  343. package/dist/lib/interfaces/IServices.js +1 -0
  344. package/dist/lib/interfaces/IServices.js.map +1 -0
  345. package/dist/lib/interfaces/ITemplateCopier.d.ts +6 -0
  346. package/dist/lib/interfaces/ITemplateCopier.d.ts.map +1 -0
  347. package/dist/lib/interfaces/ITemplateCopier.js +1 -0
  348. package/dist/lib/interfaces/ITemplateCopier.js.map +1 -0
  349. package/dist/lib/mcp.d.ts +5 -0
  350. package/dist/lib/mcp.d.ts.map +1 -0
  351. package/dist/lib/mcp.js +12 -1
  352. package/dist/lib/mcp.js.map +1 -0
  353. package/dist/lib/scanner/analyzer.d.ts +51 -0
  354. package/dist/lib/scanner/analyzer.d.ts.map +1 -0
  355. package/dist/lib/scanner/analyzer.js +6 -1
  356. package/dist/lib/scanner/analyzer.js.map +1 -0
  357. package/dist/lib/scanner/discovery.d.ts +25 -0
  358. package/dist/lib/scanner/discovery.d.ts.map +1 -0
  359. package/dist/lib/scanner/discovery.js +4 -3
  360. package/dist/lib/scanner/discovery.js.map +1 -0
  361. package/dist/lib/scanner/facts.d.ts +33 -0
  362. package/dist/lib/scanner/facts.d.ts.map +1 -0
  363. package/dist/lib/scanner/facts.js +23 -5
  364. package/dist/lib/scanner/facts.js.map +1 -0
  365. package/dist/lib/scanner/index.d.ts +31 -0
  366. package/dist/lib/scanner/index.d.ts.map +1 -0
  367. package/dist/lib/scanner/index.js +1 -6
  368. package/dist/lib/scanner/index.js.map +1 -0
  369. package/dist/lib/scanner/reviewer.d.ts +62 -0
  370. package/dist/lib/scanner/reviewer.d.ts.map +1 -0
  371. package/dist/lib/scanner/reviewer.js +26 -8
  372. package/dist/lib/scanner/reviewer.js.map +1 -0
  373. package/dist/lib/services.d.ts +7 -0
  374. package/dist/lib/services.d.ts.map +1 -0
  375. package/dist/lib/services.js +1 -0
  376. package/dist/lib/services.js.map +1 -0
  377. package/dist/opencode/lisa.js +43344 -0
  378. package/dist/package.json +15 -3
  379. package/dist/project/.lisa/.env.template +18 -0
  380. package/dist/{templates → project/.lisa}/rules/shared/git-rules.md +6 -6
  381. package/dist/project/.lisa/skills/common/group-id.d.ts.map +1 -0
  382. package/dist/{templates/agents → project/.lisa}/skills/common/group-id.js +1 -0
  383. package/dist/project/.lisa/skills/common/group-id.js.map +1 -0
  384. package/dist/project/.lisa/skills/common/type-mappings.d.ts.map +1 -0
  385. package/dist/project/.lisa/skills/common/type-mappings.js +93 -0
  386. package/dist/project/.lisa/skills/common/type-mappings.js.map +1 -0
  387. package/dist/{templates/agents → project/.lisa}/skills/git/SKILL.md +7 -7
  388. package/dist/project/.lisa/skills/git/scripts/bump-version.d.ts.map +1 -0
  389. package/dist/project/.lisa/skills/git/scripts/bump-version.js +58 -0
  390. package/dist/project/.lisa/skills/git/scripts/bump-version.js.map +1 -0
  391. package/dist/{templates/agents → project/.lisa}/skills/init-review/SKILL.md +2 -2
  392. package/dist/project/.lisa/skills/init-review/scripts/ai-enrich.d.ts.map +1 -0
  393. package/dist/project/.lisa/skills/init-review/scripts/ai-enrich.js +177 -0
  394. package/dist/project/.lisa/skills/init-review/scripts/ai-enrich.js.map +1 -0
  395. package/dist/project/.lisa/skills/init-review/scripts/init-review.d.ts.map +1 -0
  396. package/dist/project/.lisa/skills/init-review/scripts/init-review.js +143 -0
  397. package/dist/project/.lisa/skills/init-review/scripts/init-review.js.map +1 -0
  398. package/dist/project/.lisa/skills/jira/scripts/jira.d.ts.map +1 -0
  399. package/dist/project/.lisa/skills/jira/scripts/jira.js +159 -0
  400. package/dist/project/.lisa/skills/jira/scripts/jira.js.map +1 -0
  401. package/dist/{templates/agents → project/.lisa}/skills/lisa/SKILL.md +17 -15
  402. package/dist/project/.lisa/skills/lisa/scripts/compile-skills.d.ts.map +1 -0
  403. package/dist/project/.lisa/skills/lisa/scripts/compile-skills.js +75 -0
  404. package/dist/project/.lisa/skills/lisa/scripts/compile-skills.js.map +1 -0
  405. package/dist/project/.lisa/skills/lisa/scripts/storage.d.ts.map +1 -0
  406. package/dist/project/.lisa/skills/lisa/scripts/storage.js +114 -0
  407. package/dist/project/.lisa/skills/lisa/scripts/storage.js.map +1 -0
  408. package/dist/{templates/agents → project/.lisa}/skills/memory/SKILL.md +3 -3
  409. package/dist/project/.lisa/skills/memory/scripts/memory.d.ts.map +1 -0
  410. package/dist/project/.lisa/skills/memory/scripts/memory.js +95 -0
  411. package/dist/project/.lisa/skills/memory/scripts/memory.js.map +1 -0
  412. package/dist/{templates/agents → project/.lisa}/skills/prompt/SKILL.md +1 -1
  413. package/dist/project/.lisa/skills/prompt/scripts/prompt.d.ts.map +1 -0
  414. package/dist/project/.lisa/skills/prompt/scripts/prompt.js +80 -0
  415. package/dist/project/.lisa/skills/prompt/scripts/prompt.js.map +1 -0
  416. package/dist/project/.lisa/skills/shared/clients/McpClient.d.ts.map +1 -0
  417. package/dist/project/.lisa/skills/shared/clients/McpClient.js +117 -0
  418. package/dist/project/.lisa/skills/shared/clients/McpClient.js.map +1 -0
  419. package/dist/project/.lisa/skills/shared/clients/Neo4jClient.d.ts.map +1 -0
  420. package/dist/project/.lisa/skills/shared/clients/Neo4jClient.js +81 -0
  421. package/dist/project/.lisa/skills/shared/clients/Neo4jClient.js.map +1 -0
  422. package/dist/project/.lisa/skills/shared/clients/ZepClient.d.ts.map +1 -0
  423. package/dist/project/.lisa/skills/shared/clients/ZepClient.js +238 -0
  424. package/dist/project/.lisa/skills/shared/clients/ZepClient.js.map +1 -0
  425. package/dist/project/.lisa/skills/shared/clients/index.d.ts.map +1 -0
  426. package/dist/project/.lisa/skills/shared/clients/index.js +33 -0
  427. package/dist/project/.lisa/skills/shared/clients/index.js.map +1 -0
  428. package/dist/project/.lisa/skills/shared/clients/interfaces/IMcpClient.d.ts.map +1 -0
  429. package/dist/project/.lisa/skills/shared/clients/interfaces/IMcpClient.js +3 -0
  430. package/dist/project/.lisa/skills/shared/clients/interfaces/IMcpClient.js.map +1 -0
  431. package/dist/project/.lisa/skills/shared/clients/interfaces/INeo4jClient.d.ts.map +1 -0
  432. package/dist/project/.lisa/skills/shared/clients/interfaces/INeo4jClient.js +3 -0
  433. package/dist/project/.lisa/skills/shared/clients/interfaces/INeo4jClient.js.map +1 -0
  434. package/dist/project/.lisa/skills/shared/clients/interfaces/IZepClient.d.ts.map +1 -0
  435. package/dist/project/.lisa/skills/shared/clients/interfaces/IZepClient.js +3 -0
  436. package/dist/project/.lisa/skills/shared/clients/interfaces/IZepClient.js.map +1 -0
  437. package/dist/project/.lisa/skills/shared/clients/interfaces/index.d.ts.map +1 -0
  438. package/dist/project/.lisa/skills/shared/clients/interfaces/index.js +23 -0
  439. package/dist/project/.lisa/skills/shared/clients/interfaces/index.js.map +1 -0
  440. package/dist/project/.lisa/skills/shared/group-id.d.ts.map +1 -0
  441. package/dist/project/.lisa/skills/shared/group-id.js +18 -0
  442. package/dist/project/.lisa/skills/shared/group-id.js.map +1 -0
  443. package/dist/project/.lisa/skills/shared/index.d.ts.map +1 -0
  444. package/dist/project/.lisa/skills/shared/index.js +31 -0
  445. package/dist/project/.lisa/skills/shared/index.js.map +1 -0
  446. package/dist/project/.lisa/skills/shared/logger.d.ts.map +1 -0
  447. package/dist/project/.lisa/skills/shared/logger.js +18 -0
  448. package/dist/project/.lisa/skills/shared/logger.js.map +1 -0
  449. package/dist/project/.lisa/skills/shared/services/InitReviewService.d.ts.map +1 -0
  450. package/dist/project/.lisa/skills/shared/services/InitReviewService.js +287 -0
  451. package/dist/project/.lisa/skills/shared/services/InitReviewService.js.map +1 -0
  452. package/dist/project/.lisa/skills/shared/services/JiraService.d.ts.map +1 -0
  453. package/dist/project/.lisa/skills/shared/services/JiraService.js +257 -0
  454. package/dist/project/.lisa/skills/shared/services/JiraService.js.map +1 -0
  455. package/dist/project/.lisa/skills/shared/services/MemoryCliService.d.ts.map +1 -0
  456. package/dist/project/.lisa/skills/shared/services/MemoryCliService.js +36 -0
  457. package/dist/project/.lisa/skills/shared/services/MemoryCliService.js.map +1 -0
  458. package/dist/project/.lisa/skills/shared/services/MemoryService.d.ts.map +1 -0
  459. package/dist/project/.lisa/skills/shared/services/MemoryService.js +146 -0
  460. package/dist/project/.lisa/skills/shared/services/MemoryService.js.map +1 -0
  461. package/dist/project/.lisa/skills/shared/services/PromptService.d.ts.map +1 -0
  462. package/dist/project/.lisa/skills/shared/services/PromptService.js +53 -0
  463. package/dist/project/.lisa/skills/shared/services/PromptService.js.map +1 -0
  464. package/dist/project/.lisa/skills/shared/services/SkillCompilerService.d.ts.map +1 -0
  465. package/dist/project/.lisa/skills/shared/services/SkillCompilerService.js +115 -0
  466. package/dist/project/.lisa/skills/shared/services/SkillCompilerService.js.map +1 -0
  467. package/dist/project/.lisa/skills/shared/services/StorageService.d.ts.map +1 -0
  468. package/dist/project/.lisa/skills/shared/services/StorageService.js +257 -0
  469. package/dist/project/.lisa/skills/shared/services/StorageService.js.map +1 -0
  470. package/dist/project/.lisa/skills/shared/services/TaskCliService.d.ts.map +1 -0
  471. package/dist/project/.lisa/skills/shared/services/TaskCliService.js +40 -0
  472. package/dist/project/.lisa/skills/shared/services/TaskCliService.js.map +1 -0
  473. package/dist/project/.lisa/skills/shared/services/TaskService.d.ts.map +1 -0
  474. package/dist/project/.lisa/skills/shared/services/TaskService.js +158 -0
  475. package/dist/project/.lisa/skills/shared/services/TaskService.js.map +1 -0
  476. package/dist/project/.lisa/skills/shared/services/VersionService.d.ts.map +1 -0
  477. package/dist/project/.lisa/skills/shared/services/VersionService.js +88 -0
  478. package/dist/project/.lisa/skills/shared/services/VersionService.js.map +1 -0
  479. package/dist/project/.lisa/skills/shared/services/index.d.ts.map +1 -0
  480. package/dist/project/.lisa/skills/shared/services/index.js +47 -0
  481. package/dist/project/.lisa/skills/shared/services/index.js.map +1 -0
  482. package/dist/project/.lisa/skills/shared/services/interfaces/IMemoryService.d.ts.map +1 -0
  483. package/dist/project/.lisa/skills/shared/services/interfaces/IMemoryService.js +7 -0
  484. package/dist/project/.lisa/skills/shared/services/interfaces/IMemoryService.js.map +1 -0
  485. package/dist/project/.lisa/skills/shared/services/interfaces/ITaskService.d.ts.map +1 -0
  486. package/dist/project/.lisa/skills/shared/services/interfaces/ITaskService.js +7 -0
  487. package/dist/project/.lisa/skills/shared/services/interfaces/ITaskService.js.map +1 -0
  488. package/dist/project/.lisa/skills/shared/services/interfaces/index.d.ts.map +1 -0
  489. package/dist/project/.lisa/skills/shared/services/interfaces/index.js +22 -0
  490. package/dist/project/.lisa/skills/shared/services/interfaces/index.js.map +1 -0
  491. package/dist/project/.lisa/skills/shared/utils/FileCache.d.ts.map +1 -0
  492. package/dist/project/.lisa/skills/shared/utils/FileCache.js +119 -0
  493. package/dist/project/.lisa/skills/shared/utils/FileCache.js.map +1 -0
  494. package/dist/project/.lisa/skills/shared/utils/Logger.d.ts.map +1 -0
  495. package/dist/project/.lisa/skills/shared/utils/Logger.js +197 -0
  496. package/dist/project/.lisa/skills/shared/utils/Logger.js.map +1 -0
  497. package/dist/project/.lisa/skills/shared/utils/cache.d.ts.map +1 -0
  498. package/dist/project/.lisa/skills/shared/utils/cache.js +76 -0
  499. package/dist/project/.lisa/skills/shared/utils/cache.js.map +1 -0
  500. package/dist/project/.lisa/skills/shared/utils/cli.d.ts.map +1 -0
  501. package/dist/project/.lisa/skills/shared/utils/cli.js +87 -0
  502. package/dist/project/.lisa/skills/shared/utils/cli.js.map +1 -0
  503. package/dist/project/.lisa/skills/shared/utils/env.d.ts.map +1 -0
  504. package/dist/project/.lisa/skills/shared/utils/env.js +103 -0
  505. package/dist/project/.lisa/skills/shared/utils/env.js.map +1 -0
  506. package/dist/project/.lisa/skills/shared/utils/group-id.d.ts.map +1 -0
  507. package/dist/project/.lisa/skills/shared/utils/group-id.js +91 -0
  508. package/dist/project/.lisa/skills/shared/utils/group-id.js.map +1 -0
  509. package/dist/project/.lisa/skills/shared/utils/index.d.ts.map +1 -0
  510. package/dist/project/.lisa/skills/shared/utils/index.js +55 -0
  511. package/dist/project/.lisa/skills/shared/utils/index.js.map +1 -0
  512. package/dist/project/.lisa/skills/shared/utils/interfaces/ICache.d.ts.map +1 -0
  513. package/dist/project/.lisa/skills/shared/utils/interfaces/ICache.js +3 -0
  514. package/dist/project/.lisa/skills/shared/utils/interfaces/ICache.js.map +1 -0
  515. package/dist/project/.lisa/skills/shared/utils/interfaces/ILogger.d.ts.map +1 -0
  516. package/dist/project/.lisa/skills/shared/utils/interfaces/ILogger.js +3 -0
  517. package/dist/project/.lisa/skills/shared/utils/interfaces/ILogger.js.map +1 -0
  518. package/dist/project/.lisa/skills/shared/utils/interfaces/index.d.ts.map +1 -0
  519. package/dist/project/.lisa/skills/shared/utils/interfaces/index.js +22 -0
  520. package/dist/project/.lisa/skills/shared/utils/interfaces/index.js.map +1 -0
  521. package/dist/{templates/agents → project/.lisa}/skills/tasks/SKILL.md +2 -2
  522. package/dist/project/.lisa/skills/tasks/scripts/tasks.d.ts.map +1 -0
  523. package/dist/project/.lisa/skills/tasks/scripts/tasks.js +98 -0
  524. package/dist/project/.lisa/skills/tasks/scripts/tasks.js.map +1 -0
  525. package/package.json +31 -10
  526. package/scripts/postinstall.js +93 -60
  527. package/dist/cli.js +0 -414
  528. package/dist/templates/agents/.sample.env +0 -12
  529. package/dist/templates/agents/docs/EXTENDING-SKILLS.md +0 -291
  530. package/dist/templates/agents/docs/EXTENDING-rules.md +0 -57
  531. package/dist/templates/agents/docs/STORAGE_SETUP.md +0 -161
  532. package/dist/templates/agents/skills/git/scripts/bump-version.js +0 -112
  533. package/dist/templates/agents/skills/init-review/scripts/ai-enrich.js +0 -258
  534. package/dist/templates/agents/skills/init-review/scripts/init-review.js +0 -769
  535. package/dist/templates/agents/skills/jira/scripts/jira.js +0 -406
  536. package/dist/templates/agents/skills/lisa/scripts/compile-skills.js +0 -177
  537. package/dist/templates/agents/skills/lisa/scripts/storage.js +0 -374
  538. package/dist/templates/agents/skills/memory/scripts/memory.js +0 -533
  539. package/dist/templates/agents/skills/prompt/scripts/prompt.js +0 -184
  540. package/dist/templates/agents/skills/tasks/scripts/tasks.js +0 -489
  541. package/dist/templates/claude/config.js +0 -40
  542. package/dist/templates/claude/hooks/README.md +0 -158
  543. package/dist/templates/claude/hooks/common/complexity-rater.js +0 -290
  544. package/dist/templates/claude/hooks/common/context.js +0 -263
  545. package/dist/templates/claude/hooks/common/group-id.js +0 -188
  546. package/dist/templates/claude/hooks/common/mcp-client.js +0 -131
  547. package/dist/templates/claude/hooks/common/transcript-parser.js +0 -256
  548. package/dist/templates/claude/hooks/common/zep-client.js +0 -175
  549. package/dist/templates/claude/hooks/session-start.js +0 -511
  550. package/dist/templates/claude/hooks/session-stop-worker.js +0 -484
  551. package/dist/templates/claude/hooks/session-stop.js +0 -122
  552. package/dist/templates/claude/hooks/user-prompt-submit.js +0 -479
  553. package/dist/templates/claude/settings.json +0 -46
  554. package/dist/templates/docker/.env.lisa.example +0 -17
  555. /package/dist/{templates → project/.lisa}/docker/docker-compose.graphiti.yml +0 -0
  556. /package/dist/{templates → project/.lisa}/rules/shared/clean-architecture.md +0 -0
  557. /package/dist/{templates → project/.lisa}/rules/shared/code-quality-rules.md +0 -0
  558. /package/dist/{templates → project/.lisa}/rules/shared/git-rules.local.md +0 -0
  559. /package/dist/{templates → project/.lisa}/rules/shared/testing-principles.md +0 -0
  560. /package/dist/{templates → project/.lisa}/rules/typescript/coding-standards.md +0 -0
  561. /package/dist/{templates → project/.lisa}/rules/typescript/testing.md +0 -0
  562. /package/dist/{templates → project/.lisa}/rules/typescript/typescript-config-guide.md +0 -0
  563. /package/dist/{templates/agents → project/.lisa}/skills/git/scripts/poll-ci.sh +0 -0
  564. /package/dist/{templates/agents → project/.lisa}/skills/jira/SKILL.md +0 -0
  565. /package/dist/{templates/agents → project/.lisa}/skills/lisa/cache/.gitkeep +0 -0
@@ -0,0 +1,50 @@
1
+ import type { IRecursionService, IRecursionResult, IRecursionConfig, IMemoryService, ITaskService } from '../../domain';
2
+ /**
3
+ * Service for searching memory when planning.
4
+ *
5
+ * When a user submits a prompt in plan mode, this service searches
6
+ * memory for relevant context: previous decisions, learnings, and tasks.
7
+ */
8
+ export declare class RecursionService implements IRecursionService {
9
+ private readonly memory;
10
+ private readonly tasks;
11
+ private readonly config;
12
+ constructor(memory: IMemoryService, tasks: ITaskService, config?: Partial<IRecursionConfig>);
13
+ /**
14
+ * Check if recursion should run for a given prompt.
15
+ */
16
+ shouldRun(prompt: string, permissionMode: string): boolean;
17
+ /**
18
+ * Run memory recursion for a plan mode prompt.
19
+ */
20
+ run(prompt: string, groupIds: readonly string[]): Promise<IRecursionResult>;
21
+ /**
22
+ * Extract meaningful topics from a prompt.
23
+ */
24
+ private extractTopics;
25
+ /**
26
+ * Search memory for facts of a specific type.
27
+ */
28
+ private searchByType;
29
+ /**
30
+ * Search for related tasks.
31
+ */
32
+ private searchTasks;
33
+ /**
34
+ * Format a memory fact for display.
35
+ */
36
+ private formatFact;
37
+ /**
38
+ * Format a task for display.
39
+ */
40
+ private formatTask;
41
+ /**
42
+ * Get a tag value by prefix.
43
+ */
44
+ private getTag;
45
+ /**
46
+ * Build formatted summary output.
47
+ */
48
+ private buildSummary;
49
+ }
50
+ //# sourceMappingURL=RecursionService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecursionService.d.ts","sourceRoot":"","sources":["../../../../src/lib/infrastructure/services/RecursionService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,YAAY,EAGb,MAAM,cAAc,CAAC;AAkDtB;;;;;GAKG;AACH,qBAAa,gBAAiB,YAAW,iBAAiB;IAItD,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;gBAGvB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,YAAY,EACpC,MAAM,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC;IAKpC;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO;IAmB1D;;OAEG;IACG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAqDjF;;OAEG;IACH,OAAO,CAAC,aAAa;IAuBrB;;OAEG;YACW,YAAY;IAwB1B;;OAEG;YACW,WAAW;IAuBzB;;OAEG;IACH,OAAO,CAAC,UAAU;IAKlB;;OAEG;IACH,OAAO,CAAC,UAAU;IAQlB;;OAEG;IACH,OAAO,CAAC,MAAM;IAMd;;OAEG;IACH,OAAO,CAAC,YAAY;CAwBrB"}
@@ -0,0 +1,233 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RecursionService = void 0;
4
+ /**
5
+ * Default configuration for recursion.
6
+ */
7
+ const DEFAULT_CONFIG = {
8
+ minPromptLength: 20,
9
+ maxResultsPerType: 3,
10
+ queryTimeoutMs: 3000,
11
+ };
12
+ /**
13
+ * Common stop words to filter from topic extraction.
14
+ */
15
+ const STOP_WORDS = new Set([
16
+ 'the', 'a', 'an', 'is', 'are', 'was', 'were', 'be', 'been', 'being',
17
+ 'have', 'has', 'had', 'do', 'does', 'did', 'will', 'would', 'could',
18
+ 'should', 'may', 'might', 'must', 'shall', 'can', 'need', 'dare',
19
+ 'ought', 'used', 'to', 'of', 'in', 'for', 'on', 'with', 'at', 'by',
20
+ 'from', 'as', 'into', 'through', 'during', 'before', 'after', 'above',
21
+ 'below', 'between', 'under', 'again', 'further', 'then', 'once',
22
+ 'and', 'but', 'or', 'nor', 'so', 'yet', 'both', 'either', 'neither',
23
+ 'not', 'only', 'own', 'same', 'than', 'too', 'very', 'just', 'also',
24
+ 'now', 'here', 'there', 'when', 'where', 'why', 'how', 'all', 'each',
25
+ 'every', 'any', 'some', 'no', 'this', 'that', 'these', 'those',
26
+ 'what', 'which', 'who', 'whom', 'its', 'it', 'i', 'me', 'my', 'myself',
27
+ 'we', 'our', 'ours', 'ourselves', 'you', 'your', 'yours', 'yourself',
28
+ 'yourselves', 'he', 'him', 'his', 'himself', 'she', 'her', 'hers',
29
+ 'herself', 'they', 'them', 'their', 'theirs', 'themselves',
30
+ 'want', 'like', 'add', 'create', 'make', 'build', 'implement', 'write',
31
+ 'update', 'change', 'modify', 'remove', 'delete', 'fix', 'help', 'please',
32
+ 'using', 'use',
33
+ ]);
34
+ /**
35
+ * Technical patterns that should be prioritized in topic extraction.
36
+ */
37
+ const TECH_PATTERNS = /^(api|db|cache|auth|config|service|handler|controller|model|schema|test|hook|event|memory|task|session)$/i;
38
+ /**
39
+ * Empty result constant.
40
+ */
41
+ const EMPTY_RESULT = {
42
+ hasContext: false,
43
+ decisions: [],
44
+ learnings: [],
45
+ relatedTasks: [],
46
+ summary: '',
47
+ };
48
+ /**
49
+ * Service for searching memory when planning.
50
+ *
51
+ * When a user submits a prompt in plan mode, this service searches
52
+ * memory for relevant context: previous decisions, learnings, and tasks.
53
+ */
54
+ class RecursionService {
55
+ constructor(memory, tasks, config) {
56
+ this.memory = memory;
57
+ this.tasks = tasks;
58
+ this.config = { ...DEFAULT_CONFIG, ...config };
59
+ }
60
+ /**
61
+ * Check if recursion should run for a given prompt.
62
+ */
63
+ shouldRun(prompt, permissionMode) {
64
+ // Must be in plan mode
65
+ if (permissionMode !== 'plan') {
66
+ return false;
67
+ }
68
+ // Skip short prompts
69
+ if (prompt.length < this.config.minPromptLength) {
70
+ return false;
71
+ }
72
+ // Skip commands
73
+ if (prompt.trim().startsWith('/')) {
74
+ return false;
75
+ }
76
+ return true;
77
+ }
78
+ /**
79
+ * Run memory recursion for a plan mode prompt.
80
+ */
81
+ async run(prompt, groupIds) {
82
+ // Extract topics from prompt
83
+ const topics = this.extractTopics(prompt);
84
+ if (topics.length === 0) {
85
+ return EMPTY_RESULT;
86
+ }
87
+ // Build search query from topics
88
+ const query = topics.join(' ');
89
+ // Run searches in parallel with timeout
90
+ const timeoutPromise = new Promise((resolve) => {
91
+ setTimeout(() => resolve([[], [], []]), this.config.queryTimeoutMs);
92
+ });
93
+ const searchPromise = Promise.all([
94
+ this.searchByType(groupIds, query, 'decision'),
95
+ this.searchByType(groupIds, query, 'retrospective'),
96
+ this.searchTasks(groupIds, query),
97
+ ]);
98
+ let decisions = [];
99
+ let learnings = [];
100
+ let taskResults = [];
101
+ try {
102
+ [decisions, learnings, taskResults] = await Promise.race([searchPromise, timeoutPromise]);
103
+ }
104
+ catch {
105
+ // On error, return empty results
106
+ return EMPTY_RESULT;
107
+ }
108
+ // Format results
109
+ const formattedDecisions = decisions.map((d) => this.formatFact(d));
110
+ const formattedLearnings = learnings.map((l) => this.formatFact(l));
111
+ const formattedTasks = taskResults.map((t) => this.formatTask(t));
112
+ // Check if we found anything
113
+ const hasContext = formattedDecisions.length > 0 || formattedLearnings.length > 0 || formattedTasks.length > 0;
114
+ if (!hasContext) {
115
+ return EMPTY_RESULT;
116
+ }
117
+ return {
118
+ hasContext: true,
119
+ decisions: formattedDecisions,
120
+ learnings: formattedLearnings,
121
+ relatedTasks: formattedTasks,
122
+ summary: this.buildSummary(formattedDecisions, formattedLearnings, formattedTasks),
123
+ };
124
+ }
125
+ /**
126
+ * Extract meaningful topics from a prompt.
127
+ */
128
+ extractTopics(prompt) {
129
+ // Normalize and split
130
+ const words = prompt
131
+ .toLowerCase()
132
+ .replace(/[^a-z0-9\s-_]/g, ' ')
133
+ .split(/\s+/)
134
+ .filter((w) => w.length > 2 && !STOP_WORDS.has(w));
135
+ // Dedupe
136
+ const unique = [...new Set(words)];
137
+ // Prioritize technical terms and longer words
138
+ unique.sort((a, b) => {
139
+ const aIsTech = TECH_PATTERNS.test(a);
140
+ const bIsTech = TECH_PATTERNS.test(b);
141
+ if (aIsTech && !bIsTech)
142
+ return -1;
143
+ if (bIsTech && !aIsTech)
144
+ return 1;
145
+ return b.length - a.length;
146
+ });
147
+ return unique.slice(0, 5);
148
+ }
149
+ /**
150
+ * Search memory for facts of a specific type.
151
+ */
152
+ async searchByType(groupIds, query, type) {
153
+ try {
154
+ // Search with the query - the memory service will filter by tags if supported
155
+ const results = await this.memory.searchFacts(groupIds, `${type} ${query}`, this.config.maxResultsPerType * 2);
156
+ // Filter to items with matching type tag and limit results
157
+ const filtered = results
158
+ .filter((r) => r.tags?.some((t) => t === `type:${type}`))
159
+ .slice(0, this.config.maxResultsPerType);
160
+ return filtered;
161
+ }
162
+ catch {
163
+ return [];
164
+ }
165
+ }
166
+ /**
167
+ * Search for related tasks.
168
+ */
169
+ async searchTasks(groupIds, query) {
170
+ try {
171
+ // Use task service to get tasks
172
+ const allTasks = await this.tasks.getTasksSimple(groupIds);
173
+ // Filter tasks by query relevance (simple keyword matching)
174
+ const queryWords = query.toLowerCase().split(/\s+/);
175
+ const relevant = allTasks
176
+ .filter((task) => {
177
+ const title = task.title.toLowerCase();
178
+ return queryWords.some((word) => title.includes(word));
179
+ })
180
+ .slice(0, this.config.maxResultsPerType);
181
+ return relevant;
182
+ }
183
+ catch {
184
+ return [];
185
+ }
186
+ }
187
+ /**
188
+ * Format a memory fact for display.
189
+ */
190
+ formatFact(item) {
191
+ const text = item.fact || item.name || '<unknown>';
192
+ return text.length > 120 ? text.slice(0, 117) + '...' : text;
193
+ }
194
+ /**
195
+ * Format a task for display.
196
+ */
197
+ formatTask(task) {
198
+ const prefix = task.key ? `#${task.key}` : '';
199
+ const suffix = task.status && task.status !== 'unknown' ? ` (${task.status})` : '';
200
+ const text = `${prefix} ${task.title}${suffix}`.trim();
201
+ return text.length > 100 ? text.slice(0, 97) + '...' : text;
202
+ }
203
+ /**
204
+ * Get a tag value by prefix.
205
+ */
206
+ getTag(tags, prefix) {
207
+ if (!tags)
208
+ return null;
209
+ const tag = tags.find((t) => t.startsWith(prefix));
210
+ return tag ? tag.replace(prefix, '') : null;
211
+ }
212
+ /**
213
+ * Build formatted summary output.
214
+ */
215
+ buildSummary(decisions, learnings, tasks) {
216
+ const sections = [];
217
+ if (decisions.length > 0) {
218
+ sections.push('📌 Previous Decisions:');
219
+ decisions.forEach((d) => sections.push(` - ${d}`));
220
+ }
221
+ if (learnings.length > 0) {
222
+ sections.push('📝 Learnings:');
223
+ learnings.forEach((l) => sections.push(` - ${l}`));
224
+ }
225
+ if (tasks.length > 0) {
226
+ sections.push('📋 Related Tasks:');
227
+ tasks.forEach((t) => sections.push(` - ${t}`));
228
+ }
229
+ return sections.join('\n');
230
+ }
231
+ }
232
+ exports.RecursionService = RecursionService;
233
+ //# sourceMappingURL=RecursionService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecursionService.js","sourceRoot":"","sources":["../../../../src/lib/infrastructure/services/RecursionService.ts"],"names":[],"mappings":";;;AAUA;;GAEG;AACH,MAAM,cAAc,GAAqB;IACvC,eAAe,EAAE,EAAE;IACnB,iBAAiB,EAAE,CAAC;IACpB,cAAc,EAAE,IAAI;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC;IACzB,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO;IACnE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IACnE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM;IAChE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI;IACl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service for capturing session work.
4
+ *
5
+ * NOTE: This is a STUB implementation. The actual session capture logic
6
+ * lives in session-stop-worker.ts and is invoked via hooks (session-stop.ts).
7
+ *
8
+ * This stub exists to satisfy the ISessionCaptureService interface for
9
+ * library consumers who may want to integrate session capture differently.
10
+ *
11
+ * For the full implementation, see:
12
+ * - src/project/.claude/hooks/session-stop.ts (hook that spawns worker)
13
+ * - src/project/.claude/hooks/session-stop-worker.ts (actual capture logic)
14
+ *
15
+ * @see https://github.com/your-repo/issues/XXX for implementation tracking
16
+ */
17
+ export declare class SessionCaptureService implements ISessionCaptureService {
18
+ /**
19
+ * Capture work from the current session.
20
+ *
21
+ * STUB: Returns empty result. The actual implementation is in session-stop-worker.ts.
22
+ *
23
+ * A full implementation would:
24
+ * 1. Read session transcript from Claude's session files
25
+ * 2. Parse transcript for meaningful work (file changes, decisions)
26
+ * 3. Extract facts worth remembering using complexity rating
27
+ * 4. Save to Graphiti via MCP
28
+ */
29
+ captureSessionWork(_sessionId?: string): Promise<ICapturedWork>;
30
+ }
31
+ //# sourceMappingURL=SessionCaptureService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionCaptureService.d.ts","sourceRoot":"","sources":["../../../../src/lib/infrastructure/services/SessionCaptureService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG1E;;;;;;;;;;;;;;GAcG;AACH,qBAAa,qBAAsB,YAAW,sBAAsB;IAClE;;;;;;;;;;OAUG;IACG,kBAAkB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAItE"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SessionCaptureService = void 0;
4
+ const domain_1 = require("../../domain");
5
+ /**
6
+ * Service for capturing session work.
7
+ *
8
+ * NOTE: This is a STUB implementation. The actual session capture logic
9
+ * lives in session-stop-worker.ts and is invoked via hooks (session-stop.ts).
10
+ *
11
+ * This stub exists to satisfy the ISessionCaptureService interface for
12
+ * library consumers who may want to integrate session capture differently.
13
+ *
14
+ * For the full implementation, see:
15
+ * - src/project/.claude/hooks/session-stop.ts (hook that spawns worker)
16
+ * - src/project/.claude/hooks/session-stop-worker.ts (actual capture logic)
17
+ *
18
+ * @see https://github.com/your-repo/issues/XXX for implementation tracking
19
+ */
20
+ class SessionCaptureService {
21
+ /**
22
+ * Capture work from the current session.
23
+ *
24
+ * STUB: Returns empty result. The actual implementation is in session-stop-worker.ts.
25
+ *
26
+ * A full implementation would:
27
+ * 1. Read session transcript from Claude's session files
28
+ * 2. Parse transcript for meaningful work (file changes, decisions)
29
+ * 3. Extract facts worth remembering using complexity rating
30
+ * 4. Save to Graphiti via MCP
31
+ */
32
+ async captureSessionWork(_sessionId) {
33
+ // Return empty result - actual logic is in session-stop-worker.ts
34
+ return (0, domain_1.emptyCapturedWork)();
35
+ }
36
+ }
37
+ exports.SessionCaptureService = SessionCaptureService;
38
+ //# sourceMappingURL=SessionCaptureService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionCaptureService.js","sourceRoot":"","sources":["../../../../src/lib/infrastructure/services/SessionCaptureService.ts"],"names":[],"mappings":";;;AACA,yCAAiD;AAEjD;;;;;;;;;;;;;;GAcG;AACH,MAAa,qBAAqB;IAChC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,kBAAkB,CAAC,UAAmB;QAC1C,kEAAkE;QAClE,OAAO,IAAA,0BAAiB,GAAE,CAAC;IAC7B,CAAC;CACF;AAhBD,sDAgBC"}
@@ -0,0 +1,38 @@
1
+ import type { ITaskService, IMcpClient, ITask, ITaskInput, ITaskUpdate, ITaskCounts, ILogger } from '../../domain';
2
+ import type { IRepositoryRouter } from '../../domain/interfaces/dal';
3
+ /**
4
+ * Task service implementation.
5
+ * Supports both direct MCP and DAL router backends.
6
+ */
7
+ export declare class TaskService implements ITaskService {
8
+ private readonly mcp;
9
+ private readonly router?;
10
+ private readonly logger;
11
+ constructor(mcp: IMcpClient, router?: IRepositoryRouter | undefined, logger?: ILogger);
12
+ /**
13
+ * Get all tasks for a group.
14
+ */
15
+ getTasks(groupIds: readonly string[], aliases: readonly string[], branch: string | null): Promise<readonly ITask[]>;
16
+ /**
17
+ * Create a new task.
18
+ */
19
+ createTask(groupId: string, task: ITaskInput): Promise<ITask>;
20
+ /**
21
+ * Update an existing task.
22
+ */
23
+ updateTask(groupId: string, taskId: string, updates: ITaskUpdate): Promise<ITask>;
24
+ private getTaskId;
25
+ private getTaskNum;
26
+ private getTaskStatus;
27
+ /**
28
+ * Get task counts using DAL router (optimized for Neo4j).
29
+ * Falls back to in-memory counting if router not available.
30
+ */
31
+ getTaskCounts(groupIds: readonly string[]): Promise<ITaskCounts>;
32
+ /**
33
+ * Get tasks with simple interface (no aliases/branch).
34
+ * Uses DAL router when available.
35
+ */
36
+ getTasksSimple(groupIds: readonly string[]): Promise<readonly ITask[]>;
37
+ }
38
+ //# sourceMappingURL=TaskService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskService.d.ts","sourceRoot":"","sources":["../../../../src/lib/infrastructure/services/TaskService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAsBrE;;;GAGG;AACH,qBAAa,WAAY,YAAW,YAAY;IAI5C,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IAJ1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;gBAGd,GAAG,EAAE,UAAU,EACf,MAAM,CAAC,EAAE,iBAAiB,YAAA,EAC3C,MAAM,CAAC,EAAE,OAAO;IAKlB;;OAEG;IACG,QAAQ,CACZ,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,GACpB,OAAO,CAAC,SAAS,KAAK,EAAE,CAAC;IAiD5B;;OAEG;IACG,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC;IA+BnE;;OAEG;IACG,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC;IAkCvF,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,aAAa;IAOrB;;;OAGG;IACG,aAAa,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC;IAyCtE;;;OAGG;IACG,cAAc,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,KAAK,EAAE,CAAC;CAsD7E"}
@@ -0,0 +1,227 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaskService = void 0;
4
+ const context_1 = require("../context");
5
+ const logging_1 = require("../logging");
6
+ /**
7
+ * Task service implementation.
8
+ * Supports both direct MCP and DAL router backends.
9
+ */
10
+ class TaskService {
11
+ constructor(mcp, router, logger) {
12
+ this.mcp = mcp;
13
+ this.router = router;
14
+ this.logger = logger ?? new logging_1.NullLogger();
15
+ }
16
+ /**
17
+ * Get all tasks for a group.
18
+ */
19
+ async getTasks(groupIds, aliases, branch) {
20
+ this.logger.debug('Getting tasks', { groupIds, aliases, branch });
21
+ const tasks = [];
22
+ const seenUuids = new Set();
23
+ for (const alias of aliases) {
24
+ const taskParams = {
25
+ query: 'task',
26
+ tags: ['type:task', ...context_1.ContextDetector.repoTags({ repo: alias, branch })],
27
+ max_nodes: 200,
28
+ group_ids: [...groupIds],
29
+ };
30
+ const [taskResp] = await this.mcp.call('search_nodes', taskParams);
31
+ const nodes = taskResp?.result?.nodes || taskResp?.nodes || [];
32
+ for (const node of nodes) {
33
+ const uuid = node.uuid || `${node.name}-${node.fact}`;
34
+ if (seenUuids.has(uuid))
35
+ continue;
36
+ seenUuids.add(uuid);
37
+ const key = this.getTaskNum(node.tags) || this.getTaskId(node.tags);
38
+ if (!key)
39
+ continue;
40
+ tasks.push({
41
+ key,
42
+ status: this.getTaskStatus(node.tags),
43
+ title: node.name || node.fact || node.uuid || '<untitled>',
44
+ blocked: (node.tags || [])
45
+ .filter((t) => t.startsWith('blocked_by:'))
46
+ .map((t) => t.replace('blocked_by:', '')),
47
+ created_at: node.created_at,
48
+ });
49
+ }
50
+ }
51
+ // Sort by creation date descending
52
+ tasks.sort((a, b) => {
53
+ const ad = a.created_at ? new Date(a.created_at).getTime() : 0;
54
+ const bd = b.created_at ? new Date(b.created_at).getTime() : 0;
55
+ return bd - ad;
56
+ });
57
+ this.logger.info('Tasks loaded', { count: tasks.length });
58
+ return tasks;
59
+ }
60
+ /**
61
+ * Create a new task.
62
+ */
63
+ async createTask(groupId, task) {
64
+ this.logger.debug('Creating task', { groupId, title: task.title, status: task.status });
65
+ const taskId = `task-${Date.now()}`;
66
+ const tags = [
67
+ 'type:task',
68
+ `task_id:${taskId}`,
69
+ `status:${task.status || 'ready'}`,
70
+ ];
71
+ if (task.blocked) {
72
+ task.blocked.forEach((b) => tags.push(`blocked_by:${b}`));
73
+ }
74
+ await this.mcp.call('add_memory', {
75
+ content: task.title,
76
+ group_ids: [groupId],
77
+ tags,
78
+ });
79
+ this.logger.info('Task created', { taskId, status: task.status || 'ready' });
80
+ return {
81
+ key: taskId,
82
+ status: task.status || 'ready',
83
+ title: task.title,
84
+ blocked: task.blocked || [],
85
+ created_at: new Date().toISOString(),
86
+ };
87
+ }
88
+ /**
89
+ * Update an existing task.
90
+ */
91
+ async updateTask(groupId, taskId, updates) {
92
+ this.logger.debug('Updating task', { groupId, taskId, updates });
93
+ const tags = ['type:task', `task_id:${taskId}`];
94
+ if (updates.status) {
95
+ tags.push(`status:${updates.status}`);
96
+ }
97
+ if (updates.blocked) {
98
+ updates.blocked.forEach((b) => tags.push(`blocked_by:${b}`));
99
+ }
100
+ const content = updates.title || `Task ${taskId} updated`;
101
+ await this.mcp.call('add_memory', {
102
+ content,
103
+ group_ids: [groupId],
104
+ tags,
105
+ });
106
+ this.logger.info('Task updated', { taskId, status: updates.status });
107
+ return {
108
+ key: taskId,
109
+ status: updates.status || 'unknown',
110
+ title: updates.title || content,
111
+ blocked: updates.blocked || [],
112
+ created_at: new Date().toISOString(),
113
+ };
114
+ }
115
+ // --- Helper methods ---
116
+ getTaskId(tags = []) {
117
+ const t = tags.find((x) => x.startsWith('task_id:'));
118
+ return t ? t.replace('task_id:', '') : null;
119
+ }
120
+ getTaskNum(tags = []) {
121
+ const t = tags.find((x) => x.startsWith('task_num:'));
122
+ return t ? t.replace('task_num:', '') : null;
123
+ }
124
+ getTaskStatus(tags = []) {
125
+ const t = tags.find((x) => x.startsWith('status:'));
126
+ const status = t ? t.replace('status:', '').toLowerCase() : 'unknown';
127
+ const validStatuses = ['ready', 'in-progress', 'blocked', 'done', 'closed', 'unknown'];
128
+ return validStatuses.includes(status) ? status : 'unknown';
129
+ }
130
+ /**
131
+ * Get task counts using DAL router (optimized for Neo4j).
132
+ * Falls back to in-memory counting if router not available.
133
+ */
134
+ async getTaskCounts(groupIds) {
135
+ this.logger.debug('Getting task counts', { groupIds });
136
+ if (this.router) {
137
+ try {
138
+ const repo = this.router.getTaskRepository('aggregate');
139
+ if ('getCounts' in repo) {
140
+ const counts = await repo.getCounts(groupIds);
141
+ this.logger.debug('Task counts from DAL router', { counts });
142
+ return counts;
143
+ }
144
+ }
145
+ catch (error) {
146
+ this.logger.debug('DAL router aggregate failed, falling back to in-memory', {
147
+ error: error.message
148
+ });
149
+ }
150
+ }
151
+ // Fall back: load all tasks and count in memory
152
+ const tasks = await this.getTasksSimple(groupIds);
153
+ const counts = {
154
+ ready: 0,
155
+ 'in-progress': 0,
156
+ blocked: 0,
157
+ done: 0,
158
+ closed: 0,
159
+ unknown: 0,
160
+ };
161
+ for (const task of tasks) {
162
+ if (task.status in counts) {
163
+ counts[task.status]++;
164
+ }
165
+ else {
166
+ counts.unknown++;
167
+ }
168
+ }
169
+ this.logger.debug('Task counts computed in-memory', { counts });
170
+ return counts;
171
+ }
172
+ /**
173
+ * Get tasks with simple interface (no aliases/branch).
174
+ * Uses DAL router when available.
175
+ */
176
+ async getTasksSimple(groupIds) {
177
+ this.logger.debug('Getting tasks (simple)', { groupIds });
178
+ if (this.router) {
179
+ try {
180
+ const repo = this.router.getTaskRepository('list');
181
+ const result = await repo.findByGroupIds(groupIds, {
182
+ sort: { field: 'created_at', order: 'desc' },
183
+ limit: 200,
184
+ });
185
+ this.logger.debug('Tasks loaded via DAL router', { count: result.items.length });
186
+ return result.items;
187
+ }
188
+ catch (error) {
189
+ this.logger.debug('DAL router list failed, falling back to MCP', {
190
+ error: error.message
191
+ });
192
+ }
193
+ }
194
+ // Fall back to MCP path
195
+ const [taskResp] = await this.mcp.call('search_nodes', {
196
+ query: 'task',
197
+ tags: ['type:task'],
198
+ max_nodes: 200,
199
+ group_ids: [...groupIds],
200
+ });
201
+ const nodes = taskResp?.result?.nodes || taskResp?.nodes || [];
202
+ const tasks = [];
203
+ for (const node of nodes) {
204
+ const key = this.getTaskNum(node.tags) || this.getTaskId(node.tags);
205
+ if (!key)
206
+ continue;
207
+ tasks.push({
208
+ key,
209
+ status: this.getTaskStatus(node.tags),
210
+ title: node.name || node.fact || node.uuid || '<untitled>',
211
+ blocked: (node.tags || [])
212
+ .filter((t) => t.startsWith('blocked_by:'))
213
+ .map((t) => t.replace('blocked_by:', '')),
214
+ created_at: node.created_at,
215
+ });
216
+ }
217
+ const sorted = tasks.sort((a, b) => {
218
+ const ad = a.created_at ? new Date(a.created_at).getTime() : 0;
219
+ const bd = b.created_at ? new Date(b.created_at).getTime() : 0;
220
+ return bd - ad;
221
+ });
222
+ this.logger.debug('Tasks loaded via MCP', { count: sorted.length });
223
+ return sorted;
224
+ }
225
+ }
226
+ exports.TaskService = TaskService;
227
+ //# sourceMappingURL=TaskService.js.map