@tonycasey/lisa 2.2.0 → 2.11.5

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 (413) hide show
  1. package/dist/lib/application/handlers/PromptSubmitHandler.d.ts +22 -12
  2. package/dist/lib/application/handlers/PromptSubmitHandler.d.ts.map +1 -1
  3. package/dist/lib/application/handlers/PromptSubmitHandler.js +36 -13
  4. package/dist/lib/application/handlers/PromptSubmitHandler.js.map +1 -1
  5. package/dist/lib/application/handlers/SessionStartHandler.d.ts +58 -5
  6. package/dist/lib/application/handlers/SessionStartHandler.d.ts.map +1 -1
  7. package/dist/lib/application/handlers/SessionStartHandler.js +259 -44
  8. package/dist/lib/application/handlers/SessionStartHandler.js.map +1 -1
  9. package/dist/lib/application/handlers/SessionStopHandler.d.ts +29 -5
  10. package/dist/lib/application/handlers/SessionStopHandler.d.ts.map +1 -1
  11. package/dist/lib/application/handlers/SessionStopHandler.js +83 -11
  12. package/dist/lib/application/handlers/SessionStopHandler.js.map +1 -1
  13. package/dist/lib/application/handlers/index.d.ts +1 -0
  14. package/dist/lib/application/handlers/index.d.ts.map +1 -1
  15. package/dist/lib/application/handlers/index.js +13 -1
  16. package/dist/lib/application/handlers/index.js.map +1 -1
  17. package/dist/lib/application/handlers/pr/PrAddressHandler.d.ts +103 -0
  18. package/dist/lib/application/handlers/pr/PrAddressHandler.d.ts.map +1 -0
  19. package/dist/lib/application/handlers/pr/PrAddressHandler.js +354 -0
  20. package/dist/lib/application/handlers/pr/PrAddressHandler.js.map +1 -0
  21. package/dist/lib/application/handlers/pr/PrChecksHandler.d.ts +64 -0
  22. package/dist/lib/application/handlers/pr/PrChecksHandler.d.ts.map +1 -0
  23. package/dist/lib/application/handlers/pr/PrChecksHandler.js +154 -0
  24. package/dist/lib/application/handlers/pr/PrChecksHandler.js.map +1 -0
  25. package/dist/lib/application/handlers/pr/PrCommentsHandler.d.ts +81 -0
  26. package/dist/lib/application/handlers/pr/PrCommentsHandler.d.ts.map +1 -0
  27. package/dist/lib/application/handlers/pr/PrCommentsHandler.js +184 -0
  28. package/dist/lib/application/handlers/pr/PrCommentsHandler.js.map +1 -0
  29. package/dist/lib/application/handlers/pr/PrCreateHandler.d.ts +78 -0
  30. package/dist/lib/application/handlers/pr/PrCreateHandler.d.ts.map +1 -0
  31. package/dist/lib/application/handlers/pr/PrCreateHandler.js +230 -0
  32. package/dist/lib/application/handlers/pr/PrCreateHandler.js.map +1 -0
  33. package/dist/lib/application/handlers/pr/PrLinkHandler.d.ts +75 -0
  34. package/dist/lib/application/handlers/pr/PrLinkHandler.d.ts.map +1 -0
  35. package/dist/lib/application/handlers/pr/PrLinkHandler.js +151 -0
  36. package/dist/lib/application/handlers/pr/PrLinkHandler.js.map +1 -0
  37. package/dist/lib/application/handlers/pr/PrPollHandler.d.ts +161 -0
  38. package/dist/lib/application/handlers/pr/PrPollHandler.d.ts.map +1 -0
  39. package/dist/lib/application/handlers/pr/PrPollHandler.js +674 -0
  40. package/dist/lib/application/handlers/pr/PrPollHandler.js.map +1 -0
  41. package/dist/lib/application/handlers/pr/PrRememberHandler.d.ts +55 -0
  42. package/dist/lib/application/handlers/pr/PrRememberHandler.d.ts.map +1 -0
  43. package/dist/lib/application/handlers/pr/PrRememberHandler.js +75 -0
  44. package/dist/lib/application/handlers/pr/PrRememberHandler.js.map +1 -0
  45. package/dist/lib/application/handlers/pr/PrReviewHandler.d.ts +103 -0
  46. package/dist/lib/application/handlers/pr/PrReviewHandler.d.ts.map +1 -0
  47. package/dist/lib/application/handlers/pr/PrReviewHandler.js +334 -0
  48. package/dist/lib/application/handlers/pr/PrReviewHandler.js.map +1 -0
  49. package/dist/lib/application/handlers/pr/PrStatusHandler.d.ts +150 -0
  50. package/dist/lib/application/handlers/pr/PrStatusHandler.d.ts.map +1 -0
  51. package/dist/lib/application/handlers/pr/PrStatusHandler.js +389 -0
  52. package/dist/lib/application/handlers/pr/PrStatusHandler.js.map +1 -0
  53. package/dist/lib/application/handlers/pr/PrWatchHandler.d.ts +77 -0
  54. package/dist/lib/application/handlers/pr/PrWatchHandler.d.ts.map +1 -0
  55. package/dist/lib/application/handlers/pr/PrWatchHandler.js +174 -0
  56. package/dist/lib/application/handlers/pr/PrWatchHandler.js.map +1 -0
  57. package/dist/lib/application/handlers/pr/index.d.ts +25 -0
  58. package/dist/lib/application/handlers/pr/index.d.ts.map +1 -0
  59. package/dist/lib/application/handlers/pr/index.js +38 -0
  60. package/dist/lib/application/handlers/pr/index.js.map +1 -0
  61. package/dist/lib/application/interfaces/index.d.ts +1 -0
  62. package/dist/lib/application/interfaces/index.d.ts.map +1 -1
  63. package/dist/lib/application/mediator/IMediator.d.ts +73 -0
  64. package/dist/lib/application/mediator/IMediator.d.ts.map +1 -0
  65. package/dist/lib/application/mediator/IMediator.js +12 -0
  66. package/dist/lib/application/mediator/IMediator.js.map +1 -0
  67. package/dist/lib/application/mediator/Mediator.d.ts +29 -0
  68. package/dist/lib/application/mediator/Mediator.d.ts.map +1 -0
  69. package/dist/lib/application/mediator/Mediator.js +53 -0
  70. package/dist/lib/application/mediator/Mediator.js.map +1 -0
  71. package/dist/lib/application/mediator/index.d.ts +10 -0
  72. package/dist/lib/application/mediator/index.d.ts.map +1 -0
  73. package/dist/lib/application/mediator/index.js +18 -0
  74. package/dist/lib/application/mediator/index.js.map +1 -0
  75. package/dist/lib/application/mediator/requests/PromptSubmitRequest.d.ts +60 -0
  76. package/dist/lib/application/mediator/requests/PromptSubmitRequest.d.ts.map +1 -0
  77. package/dist/lib/application/mediator/requests/PromptSubmitRequest.js +35 -0
  78. package/dist/lib/application/mediator/requests/PromptSubmitRequest.js.map +1 -0
  79. package/dist/lib/application/mediator/requests/SessionStartRequest.d.ts +36 -0
  80. package/dist/lib/application/mediator/requests/SessionStartRequest.d.ts.map +1 -0
  81. package/dist/lib/application/mediator/requests/SessionStartRequest.js +32 -0
  82. package/dist/lib/application/mediator/requests/SessionStartRequest.js.map +1 -0
  83. package/dist/lib/application/mediator/requests/SessionStopRequest.d.ts +67 -0
  84. package/dist/lib/application/mediator/requests/SessionStopRequest.d.ts.map +1 -0
  85. package/dist/lib/application/mediator/requests/SessionStopRequest.js +35 -0
  86. package/dist/lib/application/mediator/requests/SessionStopRequest.js.map +1 -0
  87. package/dist/lib/application/mediator/requests/index.d.ts +9 -0
  88. package/dist/lib/application/mediator/requests/index.d.ts.map +1 -0
  89. package/dist/lib/application/mediator/requests/index.js +13 -0
  90. package/dist/lib/application/mediator/requests/index.js.map +1 -0
  91. package/dist/lib/cli.d.ts +2 -44
  92. package/dist/lib/cli.d.ts.map +1 -1
  93. package/dist/lib/cli.js +1380 -597
  94. package/dist/lib/cli.js.map +1 -1
  95. package/dist/lib/commands/docker.d.ts +20 -0
  96. package/dist/lib/commands/docker.d.ts.map +1 -0
  97. package/dist/lib/commands/docker.js +27 -0
  98. package/dist/lib/commands/docker.js.map +1 -0
  99. package/dist/lib/commands/doctor.d.ts +94 -0
  100. package/dist/lib/commands/doctor.d.ts.map +1 -0
  101. package/dist/lib/commands/doctor.js +716 -0
  102. package/dist/lib/commands/doctor.js.map +1 -0
  103. package/dist/lib/commands/index.d.ts +10 -0
  104. package/dist/lib/commands/index.d.ts.map +1 -0
  105. package/dist/lib/commands/index.js +31 -0
  106. package/dist/lib/commands/index.js.map +1 -0
  107. package/dist/lib/commands/init.d.ts +37 -0
  108. package/dist/lib/commands/init.d.ts.map +1 -0
  109. package/dist/lib/commands/init.js +589 -0
  110. package/dist/lib/commands/init.js.map +1 -0
  111. package/dist/lib/commands/shared/constants.d.ts +27 -0
  112. package/dist/lib/commands/shared/constants.d.ts.map +1 -0
  113. package/dist/lib/commands/shared/constants.js +46 -0
  114. package/dist/lib/commands/shared/constants.js.map +1 -0
  115. package/dist/lib/commands/shared/index.d.ts +5 -0
  116. package/dist/lib/commands/shared/index.d.ts.map +1 -0
  117. package/dist/lib/commands/shared/index.js +15 -0
  118. package/dist/lib/commands/shared/index.js.map +1 -0
  119. package/dist/lib/domain/index.d.ts +4 -2
  120. package/dist/lib/domain/index.d.ts.map +1 -1
  121. package/dist/lib/domain/index.js +5 -2
  122. package/dist/lib/domain/index.js.map +1 -1
  123. package/dist/lib/domain/interfaces/ICronService.d.ts +100 -0
  124. package/dist/lib/domain/interfaces/ICronService.d.ts.map +1 -0
  125. package/dist/lib/domain/interfaces/ICronService.js +9 -0
  126. package/dist/lib/domain/interfaces/ICronService.js.map +1 -0
  127. package/dist/lib/domain/interfaces/ILabelInference.d.ts +62 -0
  128. package/dist/lib/domain/interfaces/ILabelInference.d.ts.map +1 -0
  129. package/dist/lib/domain/interfaces/ILabelInference.js +11 -0
  130. package/dist/lib/domain/interfaces/ILabelInference.js.map +1 -0
  131. package/dist/lib/domain/interfaces/ILisaServices.d.ts +6 -0
  132. package/dist/lib/domain/interfaces/ILisaServices.d.ts.map +1 -1
  133. package/dist/lib/domain/interfaces/IMcpClient.d.ts +15 -2
  134. package/dist/lib/domain/interfaces/IMcpClient.d.ts.map +1 -1
  135. package/dist/lib/domain/interfaces/IMemoryService.d.ts +11 -1
  136. package/dist/lib/domain/interfaces/IMemoryService.d.ts.map +1 -1
  137. package/dist/lib/domain/interfaces/INotificationService.d.ts +81 -0
  138. package/dist/lib/domain/interfaces/INotificationService.d.ts.map +1 -0
  139. package/dist/lib/domain/interfaces/INotificationService.js +9 -0
  140. package/dist/lib/domain/interfaces/INotificationService.js.map +1 -0
  141. package/dist/lib/domain/interfaces/ISessionCaptureService.d.ts +2 -1
  142. package/dist/lib/domain/interfaces/ISessionCaptureService.d.ts.map +1 -1
  143. package/dist/lib/domain/interfaces/IStructuredLog.d.ts +162 -0
  144. package/dist/lib/domain/interfaces/IStructuredLog.d.ts.map +1 -0
  145. package/dist/lib/domain/interfaces/IStructuredLog.js +85 -0
  146. package/dist/lib/domain/interfaces/IStructuredLog.js.map +1 -0
  147. package/dist/lib/domain/interfaces/dal/IGithubClient.d.ts +42 -0
  148. package/dist/lib/domain/interfaces/dal/IGithubClient.d.ts.map +1 -0
  149. package/dist/lib/domain/interfaces/dal/IGithubClient.js +12 -0
  150. package/dist/lib/domain/interfaces/dal/IGithubClient.js.map +1 -0
  151. package/dist/lib/domain/interfaces/dal/IPullRequestRepository.d.ts +124 -0
  152. package/dist/lib/domain/interfaces/dal/IPullRequestRepository.d.ts.map +1 -0
  153. package/dist/lib/domain/interfaces/dal/IPullRequestRepository.js +13 -0
  154. package/dist/lib/domain/interfaces/dal/IPullRequestRepository.js.map +1 -0
  155. package/dist/lib/domain/interfaces/dal/index.d.ts +2 -0
  156. package/dist/lib/domain/interfaces/dal/index.d.ts.map +1 -1
  157. package/dist/lib/domain/interfaces/dal/index.js.map +1 -1
  158. package/dist/lib/domain/interfaces/index.d.ts +5 -1
  159. package/dist/lib/domain/interfaces/index.d.ts.map +1 -1
  160. package/dist/lib/domain/interfaces/index.js +6 -0
  161. package/dist/lib/domain/interfaces/index.js.map +1 -1
  162. package/dist/lib/domain/interfaces/types/IPullRequest.d.ts +120 -0
  163. package/dist/lib/domain/interfaces/types/IPullRequest.d.ts.map +1 -0
  164. package/dist/lib/domain/interfaces/types/IPullRequest.js +42 -0
  165. package/dist/lib/domain/interfaces/types/IPullRequest.js.map +1 -0
  166. package/dist/lib/domain/interfaces/types/ITask.d.ts +16 -0
  167. package/dist/lib/domain/interfaces/types/ITask.d.ts.map +1 -1
  168. package/dist/lib/domain/interfaces/types/ITask.js.map +1 -1
  169. package/dist/lib/domain/interfaces/types/index.d.ts +1 -0
  170. package/dist/lib/domain/interfaces/types/index.d.ts.map +1 -1
  171. package/dist/lib/domain/interfaces/types/index.js +4 -1
  172. package/dist/lib/domain/interfaces/types/index.js.map +1 -1
  173. package/dist/lib/domain/utils/cancellation.d.ts +111 -0
  174. package/dist/lib/domain/utils/cancellation.d.ts.map +1 -0
  175. package/dist/lib/domain/utils/cancellation.js +168 -0
  176. package/dist/lib/domain/utils/cancellation.js.map +1 -0
  177. package/dist/lib/domain/utils/index.d.ts +8 -0
  178. package/dist/lib/domain/utils/index.d.ts.map +1 -0
  179. package/dist/lib/domain/utils/index.js +16 -0
  180. package/dist/lib/domain/utils/index.js.map +1 -0
  181. package/dist/lib/infrastructure/adapters/claude/session-start.d.ts +1 -1
  182. package/dist/lib/infrastructure/adapters/claude/session-start.js +9 -11
  183. package/dist/lib/infrastructure/adapters/claude/session-start.js.map +1 -1
  184. package/dist/lib/infrastructure/adapters/claude/session-stop.d.ts +1 -5
  185. package/dist/lib/infrastructure/adapters/claude/session-stop.d.ts.map +1 -1
  186. package/dist/lib/infrastructure/adapters/claude/session-stop.js +12 -15
  187. package/dist/lib/infrastructure/adapters/claude/session-stop.js.map +1 -1
  188. package/dist/lib/infrastructure/adapters/claude/user-prompt-submit.d.ts +1 -1
  189. package/dist/lib/infrastructure/adapters/claude/user-prompt-submit.js +9 -11
  190. package/dist/lib/infrastructure/adapters/claude/user-prompt-submit.js.map +1 -1
  191. package/dist/lib/infrastructure/adapters/opencode/plugin.d.ts +2 -2
  192. package/dist/lib/infrastructure/adapters/opencode/plugin.d.ts.map +1 -1
  193. package/dist/lib/infrastructure/adapters/opencode/plugin.js +16 -21
  194. package/dist/lib/infrastructure/adapters/opencode/plugin.js.map +1 -1
  195. package/dist/lib/infrastructure/cli/index.d.ts +8 -0
  196. package/dist/lib/infrastructure/cli/index.d.ts.map +1 -0
  197. package/dist/lib/infrastructure/cli/index.js +15 -0
  198. package/dist/lib/infrastructure/cli/index.js.map +1 -0
  199. package/dist/lib/infrastructure/cli/io.d.ts +91 -0
  200. package/dist/lib/infrastructure/cli/io.d.ts.map +1 -0
  201. package/dist/lib/infrastructure/cli/io.js +128 -0
  202. package/dist/lib/infrastructure/cli/io.js.map +1 -0
  203. package/dist/lib/infrastructure/cron/CronService.d.ts +87 -0
  204. package/dist/lib/infrastructure/cron/CronService.d.ts.map +1 -0
  205. package/dist/lib/infrastructure/cron/CronService.js +571 -0
  206. package/dist/lib/infrastructure/cron/CronService.js.map +1 -0
  207. package/dist/lib/infrastructure/cron/index.d.ts +5 -0
  208. package/dist/lib/infrastructure/cron/index.d.ts.map +1 -0
  209. package/dist/lib/infrastructure/cron/index.js +10 -0
  210. package/dist/lib/infrastructure/cron/index.js.map +1 -0
  211. package/dist/lib/infrastructure/dal/connections/McpConnectionManager.js +1 -1
  212. package/dist/lib/infrastructure/dal/connections/McpConnectionManager.js.map +1 -1
  213. package/dist/lib/infrastructure/dal/index.d.ts +1 -1
  214. package/dist/lib/infrastructure/dal/index.d.ts.map +1 -1
  215. package/dist/lib/infrastructure/dal/index.js +2 -1
  216. package/dist/lib/infrastructure/dal/index.js.map +1 -1
  217. package/dist/lib/infrastructure/dal/repositories/index.d.ts +1 -1
  218. package/dist/lib/infrastructure/dal/repositories/index.d.ts.map +1 -1
  219. package/dist/lib/infrastructure/dal/repositories/index.js +3 -2
  220. package/dist/lib/infrastructure/dal/repositories/index.js.map +1 -1
  221. package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.d.ts.map +1 -1
  222. package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.js +6 -2
  223. package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.js.map +1 -1
  224. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jPullRequestRepository.d.ts +54 -0
  225. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jPullRequestRepository.d.ts.map +1 -0
  226. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jPullRequestRepository.js +561 -0
  227. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jPullRequestRepository.js.map +1 -0
  228. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.d.ts +5 -2
  229. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.d.ts.map +1 -1
  230. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.js +78 -45
  231. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.js.map +1 -1
  232. package/dist/lib/infrastructure/dal/repositories/neo4j/index.d.ts +1 -0
  233. package/dist/lib/infrastructure/dal/repositories/neo4j/index.d.ts.map +1 -1
  234. package/dist/lib/infrastructure/dal/repositories/neo4j/index.js +3 -1
  235. package/dist/lib/infrastructure/dal/repositories/neo4j/index.js.map +1 -1
  236. package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.d.ts.map +1 -1
  237. package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.js +6 -2
  238. package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.js.map +1 -1
  239. package/dist/lib/infrastructure/di/Container.d.ts +72 -0
  240. package/dist/lib/infrastructure/di/Container.d.ts.map +1 -0
  241. package/dist/lib/infrastructure/di/Container.js +182 -0
  242. package/dist/lib/infrastructure/di/Container.js.map +1 -0
  243. package/dist/lib/infrastructure/di/IContainer.d.ts +87 -0
  244. package/dist/lib/infrastructure/di/IContainer.d.ts.map +1 -0
  245. package/dist/lib/infrastructure/di/IContainer.js +11 -0
  246. package/dist/lib/infrastructure/di/IContainer.js.map +1 -0
  247. package/dist/lib/infrastructure/di/ServiceFactory.d.ts +6 -0
  248. package/dist/lib/infrastructure/di/ServiceFactory.d.ts.map +1 -1
  249. package/dist/lib/infrastructure/di/ServiceFactory.js +66 -0
  250. package/dist/lib/infrastructure/di/ServiceFactory.js.map +1 -1
  251. package/dist/lib/infrastructure/di/bootstrap.d.ts +43 -0
  252. package/dist/lib/infrastructure/di/bootstrap.d.ts.map +1 -0
  253. package/dist/lib/infrastructure/di/bootstrap.js +272 -0
  254. package/dist/lib/infrastructure/di/bootstrap.js.map +1 -0
  255. package/dist/lib/infrastructure/di/index.d.ts +6 -0
  256. package/dist/lib/infrastructure/di/index.d.ts.map +1 -1
  257. package/dist/lib/infrastructure/di/index.js +15 -1
  258. package/dist/lib/infrastructure/di/index.js.map +1 -1
  259. package/dist/lib/infrastructure/di/tokens.d.ts +70 -0
  260. package/dist/lib/infrastructure/di/tokens.d.ts.map +1 -0
  261. package/dist/lib/infrastructure/di/tokens.js +58 -0
  262. package/dist/lib/infrastructure/di/tokens.js.map +1 -0
  263. package/dist/lib/infrastructure/github/GithubClient.d.ts +129 -0
  264. package/dist/lib/infrastructure/github/GithubClient.d.ts.map +1 -0
  265. package/dist/lib/infrastructure/github/GithubClient.js +549 -0
  266. package/dist/lib/infrastructure/github/GithubClient.js.map +1 -0
  267. package/dist/lib/infrastructure/github/index.d.ts +8 -0
  268. package/dist/lib/infrastructure/github/index.d.ts.map +1 -0
  269. package/dist/lib/infrastructure/github/index.js +13 -0
  270. package/dist/lib/infrastructure/github/index.js.map +1 -0
  271. package/dist/lib/infrastructure/github/types.d.ts +145 -0
  272. package/dist/lib/infrastructure/github/types.d.ts.map +1 -0
  273. package/dist/lib/infrastructure/github/types.js +25 -0
  274. package/dist/lib/infrastructure/github/types.js.map +1 -0
  275. package/dist/lib/infrastructure/index.d.ts +4 -0
  276. package/dist/lib/infrastructure/index.d.ts.map +1 -1
  277. package/dist/lib/infrastructure/index.js +8 -0
  278. package/dist/lib/infrastructure/index.js.map +1 -1
  279. package/dist/lib/infrastructure/logging/Logger.d.ts +51 -4
  280. package/dist/lib/infrastructure/logging/Logger.d.ts.map +1 -1
  281. package/dist/lib/infrastructure/logging/Logger.js +127 -2
  282. package/dist/lib/infrastructure/logging/Logger.js.map +1 -1
  283. package/dist/lib/infrastructure/mcp/McpClient.d.ts +36 -1
  284. package/dist/lib/infrastructure/mcp/McpClient.d.ts.map +1 -1
  285. package/dist/lib/infrastructure/mcp/McpClient.js +68 -2
  286. package/dist/lib/infrastructure/mcp/McpClient.js.map +1 -1
  287. package/dist/lib/infrastructure/notifications/NotificationService.d.ts +90 -0
  288. package/dist/lib/infrastructure/notifications/NotificationService.d.ts.map +1 -0
  289. package/dist/lib/infrastructure/notifications/NotificationService.js +445 -0
  290. package/dist/lib/infrastructure/notifications/NotificationService.js.map +1 -0
  291. package/dist/lib/infrastructure/notifications/index.d.ts +7 -0
  292. package/dist/lib/infrastructure/notifications/index.d.ts.map +1 -0
  293. package/dist/lib/infrastructure/notifications/index.js +12 -0
  294. package/dist/lib/infrastructure/notifications/index.js.map +1 -0
  295. package/dist/lib/infrastructure/services/LabelInferenceService.d.ts +33 -0
  296. package/dist/lib/infrastructure/services/LabelInferenceService.d.ts.map +1 -0
  297. package/dist/lib/infrastructure/services/LabelInferenceService.js +225 -0
  298. package/dist/lib/infrastructure/services/LabelInferenceService.js.map +1 -0
  299. package/dist/lib/infrastructure/services/MemoryService.d.ts +23 -2
  300. package/dist/lib/infrastructure/services/MemoryService.d.ts.map +1 -1
  301. package/dist/lib/infrastructure/services/MemoryService.js +150 -55
  302. package/dist/lib/infrastructure/services/MemoryService.js.map +1 -1
  303. package/dist/lib/infrastructure/services/SessionCaptureService.d.ts +74 -20
  304. package/dist/lib/infrastructure/services/SessionCaptureService.d.ts.map +1 -1
  305. package/dist/lib/infrastructure/services/SessionCaptureService.js +331 -22
  306. package/dist/lib/infrastructure/services/SessionCaptureService.js.map +1 -1
  307. package/dist/lib/infrastructure/services/index.d.ts +1 -0
  308. package/dist/lib/infrastructure/services/index.d.ts.map +1 -1
  309. package/dist/lib/infrastructure/services/index.js +4 -1
  310. package/dist/lib/infrastructure/services/index.js.map +1 -1
  311. package/dist/lib/infrastructure/utils/index.d.ts +10 -0
  312. package/dist/lib/infrastructure/utils/index.d.ts.map +1 -0
  313. package/dist/lib/infrastructure/utils/index.js +26 -0
  314. package/dist/lib/infrastructure/utils/index.js.map +1 -0
  315. package/dist/lib/skills/common/type-mappings.d.ts.map +1 -1
  316. package/dist/lib/skills/common/type-mappings.js +6 -0
  317. package/dist/lib/skills/common/type-mappings.js.map +1 -1
  318. package/dist/lib/skills/github/github.d.ts +27 -0
  319. package/dist/lib/skills/github/github.d.ts.map +1 -0
  320. package/dist/lib/skills/github/github.js +408 -0
  321. package/dist/lib/skills/github/github.js.map +1 -0
  322. package/dist/lib/skills/memory/memory.js +3 -1
  323. package/dist/lib/skills/memory/memory.js.map +1 -1
  324. package/dist/lib/skills/shared/clients/GhCliClient.d.ts +17 -0
  325. package/dist/lib/skills/shared/clients/GhCliClient.d.ts.map +1 -0
  326. package/dist/lib/skills/shared/clients/GhCliClient.js +244 -0
  327. package/dist/lib/skills/shared/clients/GhCliClient.js.map +1 -0
  328. package/dist/lib/skills/shared/clients/McpClient.d.ts +12 -0
  329. package/dist/lib/skills/shared/clients/McpClient.d.ts.map +1 -1
  330. package/dist/lib/skills/shared/clients/McpClient.js +121 -76
  331. package/dist/lib/skills/shared/clients/McpClient.js.map +1 -1
  332. package/dist/lib/skills/shared/clients/Neo4jClient.d.ts.map +1 -1
  333. package/dist/lib/skills/shared/clients/Neo4jClient.js +12 -1
  334. package/dist/lib/skills/shared/clients/Neo4jClient.js.map +1 -1
  335. package/dist/lib/skills/shared/clients/index.d.ts +1 -0
  336. package/dist/lib/skills/shared/clients/index.d.ts.map +1 -1
  337. package/dist/lib/skills/shared/clients/index.js +4 -1
  338. package/dist/lib/skills/shared/clients/index.js.map +1 -1
  339. package/dist/lib/skills/shared/clients/interfaces/IGhCliClient.d.ts +56 -0
  340. package/dist/lib/skills/shared/clients/interfaces/IGhCliClient.d.ts.map +1 -0
  341. package/dist/lib/skills/shared/clients/interfaces/IGhCliClient.js +7 -0
  342. package/dist/lib/skills/shared/clients/interfaces/IGhCliClient.js.map +1 -0
  343. package/dist/lib/skills/shared/clients/interfaces/IZepClient.d.ts +7 -1
  344. package/dist/lib/skills/shared/clients/interfaces/IZepClient.d.ts.map +1 -1
  345. package/dist/lib/skills/shared/clients/interfaces/index.d.ts +1 -0
  346. package/dist/lib/skills/shared/clients/interfaces/index.d.ts.map +1 -1
  347. package/dist/lib/skills/shared/clients/interfaces/index.js +1 -0
  348. package/dist/lib/skills/shared/clients/interfaces/index.js.map +1 -1
  349. package/dist/lib/skills/shared/services/GitHubService.d.ts +169 -0
  350. package/dist/lib/skills/shared/services/GitHubService.d.ts.map +1 -0
  351. package/dist/lib/skills/shared/services/GitHubService.js +493 -0
  352. package/dist/lib/skills/shared/services/GitHubService.js.map +1 -0
  353. package/dist/lib/skills/shared/services/GitHubSyncService.d.ts +124 -0
  354. package/dist/lib/skills/shared/services/GitHubSyncService.d.ts.map +1 -0
  355. package/dist/lib/skills/shared/services/GitHubSyncService.js +412 -0
  356. package/dist/lib/skills/shared/services/GitHubSyncService.js.map +1 -0
  357. package/dist/lib/skills/shared/services/MemoryCliService.d.ts +2 -0
  358. package/dist/lib/skills/shared/services/MemoryCliService.d.ts.map +1 -1
  359. package/dist/lib/skills/shared/services/MemoryCliService.js +19 -2
  360. package/dist/lib/skills/shared/services/MemoryCliService.js.map +1 -1
  361. package/dist/lib/skills/shared/services/MemoryService.d.ts.map +1 -1
  362. package/dist/lib/skills/shared/services/MemoryService.js +26 -7
  363. package/dist/lib/skills/shared/services/MemoryService.js.map +1 -1
  364. package/dist/lib/skills/shared/services/TaskCliService.d.ts +6 -2
  365. package/dist/lib/skills/shared/services/TaskCliService.d.ts.map +1 -1
  366. package/dist/lib/skills/shared/services/TaskCliService.js +108 -7
  367. package/dist/lib/skills/shared/services/TaskCliService.js.map +1 -1
  368. package/dist/lib/skills/shared/services/TaskService.d.ts.map +1 -1
  369. package/dist/lib/skills/shared/services/TaskService.js +272 -42
  370. package/dist/lib/skills/shared/services/TaskService.js.map +1 -1
  371. package/dist/lib/skills/shared/services/index.d.ts +2 -0
  372. package/dist/lib/skills/shared/services/index.d.ts.map +1 -1
  373. package/dist/lib/skills/shared/services/index.js +7 -1
  374. package/dist/lib/skills/shared/services/index.js.map +1 -1
  375. package/dist/lib/skills/shared/services/interfaces/IMemoryService.d.ts +9 -1
  376. package/dist/lib/skills/shared/services/interfaces/IMemoryService.d.ts.map +1 -1
  377. package/dist/lib/skills/shared/services/interfaces/ITaskService.d.ts +65 -2
  378. package/dist/lib/skills/shared/services/interfaces/ITaskService.d.ts.map +1 -1
  379. package/dist/lib/skills/shared/utils/index.d.ts +1 -0
  380. package/dist/lib/skills/shared/utils/index.d.ts.map +1 -1
  381. package/dist/lib/skills/shared/utils/index.js +9 -1
  382. package/dist/lib/skills/shared/utils/index.js.map +1 -1
  383. package/dist/lib/skills/shared/utils/issue-refs.d.ts +127 -0
  384. package/dist/lib/skills/shared/utils/issue-refs.d.ts.map +1 -0
  385. package/dist/lib/skills/shared/utils/issue-refs.js +179 -0
  386. package/dist/lib/skills/shared/utils/issue-refs.js.map +1 -0
  387. package/dist/lib/skills/tasks/tasks.d.ts +5 -2
  388. package/dist/lib/skills/tasks/tasks.d.ts.map +1 -1
  389. package/dist/lib/skills/tasks/tasks.js +10 -3
  390. package/dist/lib/skills/tasks/tasks.js.map +1 -1
  391. package/dist/lib/utils/dateParser.d.ts +50 -0
  392. package/dist/lib/utils/dateParser.d.ts.map +1 -0
  393. package/dist/lib/utils/dateParser.js +152 -0
  394. package/dist/lib/utils/dateParser.js.map +1 -0
  395. package/dist/lib/utils/index.d.ts +5 -0
  396. package/dist/lib/utils/index.d.ts.map +1 -0
  397. package/dist/lib/utils/index.js +14 -0
  398. package/dist/lib/utils/index.js.map +1 -0
  399. package/dist/opencode/lisa.js +8627 -1312
  400. package/dist/package.json +1 -1
  401. package/dist/project/.lisa/assets/lisa-toast.png +0 -0
  402. package/dist/project/.lisa/rules/shared/git-rules.md +160 -47
  403. package/dist/project/.lisa/rules/shared/memory-rules.md +125 -0
  404. package/dist/project/.lisa/rules/shared/task-rules.md +209 -0
  405. package/dist/project/.lisa/skills/github/SKILL.md +415 -0
  406. package/dist/project/.lisa/skills/lisa/SKILL.md +22 -0
  407. package/dist/project/.lisa/skills/memory/SKILL.md +3 -2
  408. package/dist/project/.lisa/skills/pr/SKILL.md +520 -0
  409. package/package.json +6 -5
  410. package/dist/hooks/session-start.js +0 -5763
  411. package/dist/hooks/session-stop.js +0 -5348
  412. package/dist/hooks/user-prompt-submit.js +0 -5406
  413. package/dist/project/.claude/config.js +0 -40
@@ -0,0 +1,415 @@
1
+ ---
2
+ name: github
3
+ description: "GitHub Issues and Projects v2 management via gh CLI; triggers on 'github', 'create issue', 'list issues', 'github project', 'project board', 'sync tasks'."
4
+ ---
5
+
6
+ ## Purpose
7
+
8
+ Model-neutral helper to interact with GitHub Issues and Projects v2 using the gh CLI. Supports creating, listing, viewing, closing, and managing issues, managing GitHub Projects v2 boards, and bidirectional sync between Lisa tasks and GitHub Issues.
9
+
10
+ ## Triggers
11
+
12
+ Use when the user says:
13
+ - "create a github issue", "create issue", "new issue"
14
+ - "list github issues", "show issues", "open issues"
15
+ - "close issue", "reopen issue", "assign issue"
16
+ - "github project", "project board", "kanban"
17
+ - "add to project", "update project field", "move to column"
18
+ - "sync tasks with github", "import github issues", "export tasks to github"
19
+
20
+ ## Configuration
21
+
22
+ Uses existing `gh` CLI authentication. Verify with:
23
+ ```bash
24
+ gh auth status
25
+ ```
26
+
27
+ Alternatively, set `GITHUB_TOKEN` environment variable for CI/headless environments.
28
+
29
+ ## How to use
30
+
31
+ ### Issues
32
+
33
+ #### List Issues
34
+ ```bash
35
+ # List open issues
36
+ lisa github issues list --repo owner/repo
37
+
38
+ # List with filters
39
+ lisa github issues list --repo owner/repo --state open --labels bug,urgent --assignee @me --limit 20
40
+
41
+ # List all issues (including closed)
42
+ lisa github issues list --repo owner/repo --state all
43
+ ```
44
+
45
+ #### Create Issue
46
+ ```bash
47
+ # Basic issue
48
+ lisa github issues create --repo owner/repo --title "Bug: Login fails"
49
+
50
+ # With body and labels
51
+ lisa github issues create --repo owner/repo --title "Feature: Dark mode" --body "Add dark mode support" --labels enhancement,ui
52
+
53
+ # With assignee
54
+ lisa github issues create --repo owner/repo --title "Task" --assignee username
55
+ ```
56
+
57
+ #### View Issue
58
+ ```bash
59
+ lisa github issues view --repo owner/repo 123
60
+ ```
61
+
62
+ #### Close/Reopen Issue
63
+ ```bash
64
+ # Close as completed
65
+ lisa github issues close --repo owner/repo 123
66
+
67
+ # Close as not planned
68
+ lisa github issues close --repo owner/repo 123 --reason not_planned
69
+
70
+ # Reopen
71
+ lisa github issues reopen --repo owner/repo 123
72
+ ```
73
+
74
+ #### Assign Issue
75
+ ```bash
76
+ lisa github issues assign --repo owner/repo 123 --to username
77
+ lisa github issues assign --repo owner/repo 123 --to user1,user2
78
+ ```
79
+
80
+ #### Label Issue
81
+ ```bash
82
+ # Add labels
83
+ lisa github issues label --repo owner/repo 123 --add bug,priority-high
84
+
85
+ # Remove labels
86
+ lisa github issues label --repo owner/repo 123 --remove wontfix
87
+
88
+ # Add and remove
89
+ lisa github issues label --repo owner/repo 123 --add in-progress --remove backlog
90
+ ```
91
+
92
+ ### Projects v2
93
+
94
+ #### List Projects
95
+ ```bash
96
+ lisa github projects list --repo owner/repo
97
+ lisa github projects list --repo owner/repo --limit 10
98
+ ```
99
+
100
+ #### View Project
101
+ ```bash
102
+ lisa github projects view --repo owner/repo 1
103
+ ```
104
+
105
+ #### List Project Items
106
+ ```bash
107
+ lisa github projects items --repo owner/repo 1
108
+ lisa github projects items --repo owner/repo 1 --limit 50
109
+ ```
110
+
111
+ #### List Project Fields
112
+ ```bash
113
+ # Get available fields and their options (useful for set-field)
114
+ lisa github projects fields --repo owner/repo 1
115
+ ```
116
+
117
+ #### Add Issue to Project
118
+ ```bash
119
+ # Add issue #123 to project #1
120
+ lisa github projects add --repo owner/repo 1 123
121
+ ```
122
+
123
+ #### Update Project Field
124
+ ```bash
125
+ # Set status field (e.g., move to "In Progress" column)
126
+ lisa github projects set-field --repo owner/repo 1 ITEM_ID --field Status --value "In Progress"
127
+
128
+ # Set priority
129
+ lisa github projects set-field --repo owner/repo 1 ITEM_ID --field Priority --value "High"
130
+ ```
131
+
132
+ **Note:** Use `projects fields` to get valid field names and options, and `projects items` to get item IDs.
133
+
134
+ ### Sync (Bidirectional Task Sync)
135
+
136
+ Sync Lisa tasks with GitHub Issues. Supports import, export, or bidirectional sync.
137
+
138
+ #### Import GitHub Issues as Lisa Tasks
139
+ ```bash
140
+ # Import all open issues from repo
141
+ lisa github sync --repo owner/repo --import
142
+
143
+ # Import issues with specific labels
144
+ lisa github sync --repo owner/repo --import --labels task,feature
145
+
146
+ # Preview import without making changes
147
+ lisa github sync --repo owner/repo --import --dry-run
148
+
149
+ # Specify group ID for Lisa tasks (default: owner-repo)
150
+ lisa github sync --repo owner/repo --import --group my-project
151
+ ```
152
+
153
+ #### Export Lisa Tasks to GitHub Issues
154
+ ```bash
155
+ # Export unlinked tasks as new GitHub issues
156
+ lisa github sync --repo owner/repo --export
157
+
158
+ # Preview export
159
+ lisa github sync --repo owner/repo --export --dry-run
160
+ ```
161
+
162
+ #### Bidirectional Sync
163
+ ```bash
164
+ # Full two-way sync (import + export + status updates)
165
+ lisa github sync --repo owner/repo
166
+
167
+ # Preview all changes
168
+ lisa github sync --repo owner/repo --dry-run
169
+ ```
170
+
171
+ #### Status Mapping
172
+
173
+ | Lisa Status | GitHub State | GitHub Labels |
174
+ |-------------|--------------|---------------|
175
+ | `ready`/`todo` | open | (none) |
176
+ | `in-progress` | open | `in-progress` |
177
+ | `blocked` | open | `blocked` |
178
+ | `done` | closed | (none) |
179
+
180
+ **Conflict Resolution:** When both Lisa and GitHub have changes, last-write-wins based on timestamps.
181
+
182
+ ## I/O Contract (examples)
183
+
184
+ ### Create Issue
185
+ ```json
186
+ {
187
+ "status": "ok",
188
+ "action": "create",
189
+ "issue": {
190
+ "number": 123,
191
+ "url": "https://github.com/owner/repo/issues/123",
192
+ "title": "Bug: Login fails"
193
+ }
194
+ }
195
+ ```
196
+
197
+ ### List Issues
198
+ ```json
199
+ {
200
+ "status": "ok",
201
+ "action": "list",
202
+ "issues": [
203
+ {
204
+ "number": 123,
205
+ "title": "Bug: Login fails",
206
+ "state": "open",
207
+ "labels": ["bug"],
208
+ "assignees": ["username"],
209
+ "url": "https://github.com/owner/repo/issues/123",
210
+ "createdAt": "2026-01-22T10:00:00Z",
211
+ "updatedAt": "2026-01-22T10:00:00Z"
212
+ }
213
+ ],
214
+ "total": 1
215
+ }
216
+ ```
217
+
218
+ ### View Issue
219
+ ```json
220
+ {
221
+ "status": "ok",
222
+ "action": "view",
223
+ "issue": {
224
+ "number": 123,
225
+ "title": "Bug: Login fails",
226
+ "body": "Steps to reproduce...",
227
+ "state": "open",
228
+ "labels": ["bug"],
229
+ "assignees": ["username"],
230
+ "url": "https://github.com/owner/repo/issues/123",
231
+ "createdAt": "2026-01-22T10:00:00Z",
232
+ "updatedAt": "2026-01-22T10:00:00Z",
233
+ "author": "reporter",
234
+ "milestone": "v1.0"
235
+ }
236
+ }
237
+ ```
238
+
239
+ ### List Projects
240
+ ```json
241
+ {
242
+ "status": "ok",
243
+ "action": "list",
244
+ "projects": [
245
+ {
246
+ "id": "PVT_kwDOABC123",
247
+ "number": 1,
248
+ "title": "Sprint Board",
249
+ "url": "https://github.com/orgs/owner/projects/1",
250
+ "closed": false,
251
+ "shortDescription": "Current sprint tasks"
252
+ }
253
+ ],
254
+ "total": 1
255
+ }
256
+ ```
257
+
258
+ ### Project Items
259
+ ```json
260
+ {
261
+ "status": "ok",
262
+ "action": "items",
263
+ "items": [
264
+ {
265
+ "id": "PVTI_abc123",
266
+ "type": "ISSUE",
267
+ "content": {
268
+ "number": 123,
269
+ "title": "Bug: Login fails",
270
+ "url": "https://github.com/owner/repo/issues/123",
271
+ "state": "OPEN"
272
+ },
273
+ "fieldValues": {
274
+ "Status": "In Progress",
275
+ "Priority": "High"
276
+ }
277
+ }
278
+ ],
279
+ "total": 1
280
+ }
281
+ ```
282
+
283
+ ### Project Fields
284
+ ```json
285
+ {
286
+ "status": "ok",
287
+ "action": "fields",
288
+ "fields": [
289
+ {
290
+ "id": "PVTF_abc123",
291
+ "name": "Status",
292
+ "dataType": "SINGLE_SELECT",
293
+ "options": [
294
+ { "id": "opt_1", "name": "Todo" },
295
+ { "id": "opt_2", "name": "In Progress" },
296
+ { "id": "opt_3", "name": "Done" }
297
+ ]
298
+ },
299
+ {
300
+ "id": "PVTF_def456",
301
+ "name": "Priority",
302
+ "dataType": "SINGLE_SELECT",
303
+ "options": [
304
+ { "id": "opt_a", "name": "Low" },
305
+ { "id": "opt_b", "name": "Medium" },
306
+ { "id": "opt_c", "name": "High" }
307
+ ]
308
+ }
309
+ ]
310
+ }
311
+ ```
312
+
313
+ ### Sync Result
314
+ ```json
315
+ {
316
+ "status": "ok",
317
+ "action": "sync",
318
+ "direction": "bidirectional",
319
+ "dryRun": false,
320
+ "summary": {
321
+ "imported": 3,
322
+ "exported": 2,
323
+ "updated": 1,
324
+ "skipped": 5,
325
+ "conflicts": 1
326
+ },
327
+ "imported": [
328
+ { "title": "Bug: Login fails", "issueNumber": 123, "issueUrl": "https://github.com/owner/repo/issues/123" }
329
+ ],
330
+ "exported": [
331
+ { "title": "Refactor auth module", "taskUuid": "abc123", "issueNumber": 456, "issueUrl": "https://github.com/owner/repo/issues/456" }
332
+ ],
333
+ "updated": [
334
+ { "title": "Update docs", "taskUuid": "def789", "issueNumber": 101, "issueUrl": "https://github.com/owner/repo/issues/101" }
335
+ ],
336
+ "conflicts": [
337
+ {
338
+ "taskUuid": "ghi012",
339
+ "taskTitle": "Fix tests",
340
+ "issueNumber": 102,
341
+ "reason": "Status mismatch: Lisa=\"in-progress\", GitHub=\"closed\"",
342
+ "resolution": "remote",
343
+ "localUpdatedAt": "2026-01-22T10:00:00Z",
344
+ "remoteUpdatedAt": "2026-01-22T11:00:00Z"
345
+ }
346
+ ]
347
+ }
348
+ ```
349
+
350
+ ### Error
351
+ ```json
352
+ {
353
+ "status": "error",
354
+ "error": "Not authenticated. Run: gh auth login"
355
+ }
356
+ ```
357
+
358
+ ## Workflow Examples
359
+
360
+ ### Bug Triage Workflow
361
+ ```bash
362
+ # 1. Create issue
363
+ lisa github issues create --repo owner/repo --title "Bug: Login fails" --labels bug,triage
364
+
365
+ # 2. Add to project board
366
+ lisa github projects add --repo owner/repo 1 123
367
+
368
+ # 3. Set initial status
369
+ lisa github projects set-field --repo owner/repo 1 ITEM_ID --field Status --value "Triage"
370
+
371
+ # 4. After investigation, update priority and move to backlog
372
+ lisa github issues label --repo owner/repo 123 --add priority-high --remove triage
373
+ lisa github projects set-field --repo owner/repo 1 ITEM_ID --field Status --value "Backlog"
374
+ ```
375
+
376
+ ### Sprint Planning Workflow
377
+ ```bash
378
+ # List items in backlog
379
+ lisa github projects items --repo owner/repo 1 --limit 50
380
+
381
+ # Move selected items to sprint
382
+ lisa github projects set-field --repo owner/repo 1 ITEM_ID --field Status --value "Todo"
383
+ lisa github issues assign --repo owner/repo 123 --to developer
384
+ ```
385
+
386
+ ### Task Sync Workflow
387
+ ```bash
388
+ # 1. Start of day: Import any new GitHub issues as Lisa tasks
389
+ lisa github sync --repo owner/repo --import
390
+
391
+ # 2. Work on tasks in Lisa (status updates tracked automatically)
392
+ lisa tasks update "Fix login bug" --status in-progress
393
+
394
+ # 3. End of day: Export new tasks and sync status changes
395
+ lisa github sync --repo owner/repo
396
+
397
+ # 4. Check what would sync before running
398
+ lisa github sync --repo owner/repo --dry-run
399
+ ```
400
+
401
+ ## Cross-model checklist
402
+ - Claude: Use JSON output for parsing; concise instructions
403
+ - Gemini: Explicit commands; minimal formatting
404
+ - All models: Always include --repo flag; parse JSON responses
405
+
406
+ ## Notes
407
+ - Requires `gh` CLI v2.0+ or `GITHUB_TOKEN` environment variable
408
+ - Projects v2 uses GraphQL API (requires appropriate permissions)
409
+ - Rate limits apply per GitHub API policies
410
+ - `--repo` flag is always required (no auto-detection)
411
+
412
+ ## See Also
413
+ - `/git` skill for PR creation, CI triggers, version bumping
414
+ - `/jira` skill for Jira integration (similar command structure)
415
+ - `/tasks` skill for Lisa's internal task management
@@ -112,6 +112,28 @@ When user asks for a retrospective, follow these steps:
112
112
  - `👧 lisa-> ` for conversational responses
113
113
  - For memory and task queries, include the storage mode at the end in parentheses:
114
114
  - Example: `👧 lisa-> Tasks: (neo4j)` or `👧 lisa-> Recent Memories: (zep-cloud)`
115
+
116
+ ### Task Display Rules
117
+ - **ALWAYS sort tasks by `created_at` descending** (newest first)
118
+ - Show the most recent tasks at the top of each section
119
+ - Include the date for each task (format: "Jan 23" or "Jan 23, 2026")
120
+ - Group by status (Active/In Progress, Pending/Todo, Completed/Done) but sort within each group by date
121
+ - Example format:
122
+ ```
123
+ 👧 lisa-> Tasks: (neo4j)
124
+
125
+ Active (3):
126
+ 1. 📋 Newest task here (Jan 23)
127
+ 2. 📋 Second newest (Jan 22)
128
+ 3. 📋 Third newest (Jan 20)
129
+
130
+ Completed (2):
131
+ 1. ✅ Recently completed (Jan 22)
132
+ 2. ✅ Older completed (Jan 15)
133
+ ```
134
+
135
+ ### Memory Display Rules
136
+ - Sort memories by `created_at` descending (newest first)
115
137
  - Example format:
116
138
  ```
117
139
  👧 lisa-> Recent Memories: (neo4j)
@@ -31,12 +31,13 @@ Organize facts into these categories (skip empty categories):
31
31
  6. **Open Items** - Pending tasks, known issues
32
32
 
33
33
  ### How to Summarize
34
+ - **ALWAYS sort memories by `created_at` descending** (newest first)
34
35
  - Group related facts together
35
36
  - Use bullet points for clarity
36
37
  - Include specific file names and paths when relevant
37
- - Mention dates/timeframes if available
38
+ - Include the date for each memory (format: "Jan 23" or "Jan 23, 2026")
38
39
  - Filter out expired or superseded facts (check `expired_at` field)
39
- - Prioritize recent facts over older ones
40
+ - Prioritize recent facts over older ones - show newest at top of each section
40
41
  - Extract the `fact` field from each item - that's the human-readable content
41
42
 
42
43
  ### Example Output Format