@tonycasey/lisa 2.12.0 → 2.25.2

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 (245) hide show
  1. package/README.md +2 -2
  2. package/dist/lib/application/handlers/PromptSubmitHandler.js +2 -2
  3. package/dist/lib/application/handlers/PromptSubmitHandler.js.map +1 -1
  4. package/dist/lib/application/handlers/SessionStopHandler.d.ts.map +1 -1
  5. package/dist/lib/application/handlers/SessionStopHandler.js +12 -2
  6. package/dist/lib/application/handlers/SessionStopHandler.js.map +1 -1
  7. package/dist/lib/commands/init.js +3 -3
  8. package/dist/lib/commands/init.js.map +1 -1
  9. package/dist/lib/commands/knowledge.d.ts.map +1 -1
  10. package/dist/lib/commands/knowledge.js +449 -1
  11. package/dist/lib/commands/knowledge.js.map +1 -1
  12. package/dist/lib/domain/errors/LlmErrors.d.ts +41 -0
  13. package/dist/lib/domain/errors/LlmErrors.d.ts.map +1 -0
  14. package/dist/lib/domain/errors/LlmErrors.js +64 -0
  15. package/dist/lib/domain/errors/LlmErrors.js.map +1 -0
  16. package/dist/lib/domain/interfaces/IConsolidationService.d.ts +65 -0
  17. package/dist/lib/domain/interfaces/IConsolidationService.d.ts.map +1 -0
  18. package/dist/lib/domain/interfaces/IConsolidationService.js +21 -0
  19. package/dist/lib/domain/interfaces/IConsolidationService.js.map +1 -0
  20. package/dist/lib/domain/interfaces/ICurationService.d.ts +81 -0
  21. package/dist/lib/domain/interfaces/ICurationService.d.ts.map +1 -0
  22. package/dist/lib/domain/interfaces/ICurationService.js +65 -0
  23. package/dist/lib/domain/interfaces/ICurationService.js.map +1 -0
  24. package/dist/lib/domain/interfaces/IDeduplicationService.d.ts +67 -0
  25. package/dist/lib/domain/interfaces/IDeduplicationService.d.ts.map +1 -0
  26. package/dist/lib/domain/interfaces/IDeduplicationService.js +9 -0
  27. package/dist/lib/domain/interfaces/IDeduplicationService.js.map +1 -0
  28. package/dist/lib/domain/interfaces/ILlmConfigService.d.ts +36 -0
  29. package/dist/lib/domain/interfaces/ILlmConfigService.d.ts.map +1 -0
  30. package/dist/lib/domain/interfaces/ILlmConfigService.js +11 -0
  31. package/dist/lib/domain/interfaces/ILlmConfigService.js.map +1 -0
  32. package/dist/lib/domain/interfaces/ILlmGuard.d.ts +35 -0
  33. package/dist/lib/domain/interfaces/ILlmGuard.d.ts.map +1 -0
  34. package/dist/lib/domain/interfaces/ILlmGuard.js +12 -0
  35. package/dist/lib/domain/interfaces/ILlmGuard.js.map +1 -0
  36. package/dist/lib/domain/interfaces/ILlmService.d.ts +87 -0
  37. package/dist/lib/domain/interfaces/ILlmService.d.ts.map +1 -0
  38. package/dist/lib/domain/interfaces/ILlmService.js +40 -0
  39. package/dist/lib/domain/interfaces/ILlmService.js.map +1 -0
  40. package/dist/lib/domain/interfaces/ILlmUsageTracker.d.ts +60 -0
  41. package/dist/lib/domain/interfaces/ILlmUsageTracker.d.ts.map +1 -0
  42. package/dist/lib/domain/interfaces/ILlmUsageTracker.js +29 -0
  43. package/dist/lib/domain/interfaces/ILlmUsageTracker.js.map +1 -0
  44. package/dist/lib/domain/interfaces/IMemoryService.d.ts +90 -0
  45. package/dist/lib/domain/interfaces/IMemoryService.d.ts.map +1 -1
  46. package/dist/lib/domain/interfaces/INlCurationService.d.ts +75 -0
  47. package/dist/lib/domain/interfaces/INlCurationService.d.ts.map +1 -0
  48. package/dist/lib/domain/interfaces/INlCurationService.js +31 -0
  49. package/dist/lib/domain/interfaces/INlCurationService.js.map +1 -0
  50. package/dist/lib/domain/interfaces/IPreferenceStore.d.ts +46 -0
  51. package/dist/lib/domain/interfaces/IPreferenceStore.d.ts.map +1 -0
  52. package/dist/lib/domain/interfaces/IPreferenceStore.js +11 -0
  53. package/dist/lib/domain/interfaces/IPreferenceStore.js.map +1 -0
  54. package/dist/lib/domain/interfaces/IRecursionService.d.ts +10 -6
  55. package/dist/lib/domain/interfaces/IRecursionService.d.ts.map +1 -1
  56. package/dist/lib/domain/interfaces/ISummarizationService.d.ts +52 -0
  57. package/dist/lib/domain/interfaces/ISummarizationService.d.ts.map +1 -0
  58. package/dist/lib/domain/interfaces/ISummarizationService.js +11 -0
  59. package/dist/lib/domain/interfaces/ISummarizationService.js.map +1 -0
  60. package/dist/lib/domain/interfaces/ITaskTypeDetector.d.ts +34 -0
  61. package/dist/lib/domain/interfaces/ITaskTypeDetector.d.ts.map +1 -0
  62. package/dist/lib/domain/interfaces/ITaskTypeDetector.js +9 -0
  63. package/dist/lib/domain/interfaces/ITaskTypeDetector.js.map +1 -0
  64. package/dist/lib/domain/interfaces/ITranscriptEnricher.d.ts +68 -0
  65. package/dist/lib/domain/interfaces/ITranscriptEnricher.d.ts.map +1 -0
  66. package/dist/lib/domain/interfaces/ITranscriptEnricher.js +32 -0
  67. package/dist/lib/domain/interfaces/ITranscriptEnricher.js.map +1 -0
  68. package/dist/lib/domain/interfaces/IWorkSummary.d.ts +64 -0
  69. package/dist/lib/domain/interfaces/IWorkSummary.d.ts.map +1 -0
  70. package/dist/lib/domain/interfaces/IWorkSummary.js +13 -0
  71. package/dist/lib/domain/interfaces/IWorkSummary.js.map +1 -0
  72. package/dist/lib/domain/interfaces/dal/IMemoryRelationshipRepository.d.ts +46 -0
  73. package/dist/lib/domain/interfaces/dal/IMemoryRelationshipRepository.d.ts.map +1 -0
  74. package/dist/lib/domain/interfaces/dal/IMemoryRelationshipRepository.js +9 -0
  75. package/dist/lib/domain/interfaces/dal/IMemoryRelationshipRepository.js.map +1 -0
  76. package/dist/lib/domain/interfaces/dal/IMemoryRepository.d.ts +62 -1
  77. package/dist/lib/domain/interfaces/dal/IMemoryRepository.d.ts.map +1 -1
  78. package/dist/lib/domain/interfaces/dal/index.d.ts +3 -2
  79. package/dist/lib/domain/interfaces/dal/index.d.ts.map +1 -1
  80. package/dist/lib/domain/interfaces/dal/index.js.map +1 -1
  81. package/dist/lib/domain/interfaces/dal/types.d.ts +37 -0
  82. package/dist/lib/domain/interfaces/dal/types.d.ts.map +1 -1
  83. package/dist/lib/domain/interfaces/dal/types.js.map +1 -1
  84. package/dist/lib/domain/interfaces/index.d.ts +15 -1
  85. package/dist/lib/domain/interfaces/index.d.ts.map +1 -1
  86. package/dist/lib/domain/interfaces/index.js +21 -1
  87. package/dist/lib/domain/interfaces/index.js.map +1 -1
  88. package/dist/lib/domain/interfaces/types/ICapturedWork.d.ts +3 -0
  89. package/dist/lib/domain/interfaces/types/ICapturedWork.d.ts.map +1 -1
  90. package/dist/lib/domain/interfaces/types/ICapturedWork.js.map +1 -1
  91. package/dist/lib/domain/interfaces/types/IMemoryLifecycle.d.ts +56 -0
  92. package/dist/lib/domain/interfaces/types/IMemoryLifecycle.d.ts.map +1 -0
  93. package/dist/lib/domain/interfaces/types/IMemoryLifecycle.js +94 -0
  94. package/dist/lib/domain/interfaces/types/IMemoryLifecycle.js.map +1 -0
  95. package/dist/lib/domain/interfaces/types/IMemoryQuality.d.ts +113 -0
  96. package/dist/lib/domain/interfaces/types/IMemoryQuality.d.ts.map +1 -0
  97. package/dist/lib/domain/interfaces/types/IMemoryQuality.js +195 -0
  98. package/dist/lib/domain/interfaces/types/IMemoryQuality.js.map +1 -0
  99. package/dist/lib/domain/interfaces/types/IMemoryRelationship.d.ts +49 -0
  100. package/dist/lib/domain/interfaces/types/IMemoryRelationship.d.ts.map +1 -0
  101. package/dist/lib/domain/interfaces/types/IMemoryRelationship.js +62 -0
  102. package/dist/lib/domain/interfaces/types/IMemoryRelationship.js.map +1 -0
  103. package/dist/lib/domain/interfaces/types/ITaskType.d.ts +59 -0
  104. package/dist/lib/domain/interfaces/types/ITaskType.d.ts.map +1 -0
  105. package/dist/lib/domain/interfaces/types/ITaskType.js +104 -0
  106. package/dist/lib/domain/interfaces/types/ITaskType.js.map +1 -0
  107. package/dist/lib/domain/interfaces/types/index.d.ts +4 -0
  108. package/dist/lib/domain/interfaces/types/index.d.ts.map +1 -1
  109. package/dist/lib/domain/interfaces/types/index.js +33 -1
  110. package/dist/lib/domain/interfaces/types/index.js.map +1 -1
  111. package/dist/lib/domain/utils/deduplication.d.ts +38 -0
  112. package/dist/lib/domain/utils/deduplication.d.ts.map +1 -0
  113. package/dist/lib/domain/utils/deduplication.js +225 -0
  114. package/dist/lib/domain/utils/deduplication.js.map +1 -0
  115. package/dist/lib/domain/utils/index.d.ts +1 -0
  116. package/dist/lib/domain/utils/index.d.ts.map +1 -1
  117. package/dist/lib/domain/utils/index.js +6 -1
  118. package/dist/lib/domain/utils/index.js.map +1 -1
  119. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.d.ts +12 -2
  120. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.d.ts.map +1 -1
  121. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.js +14 -0
  122. package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.js.map +1 -1
  123. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.d.ts +25 -3
  124. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.d.ts.map +1 -1
  125. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.js +156 -1
  126. package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.js.map +1 -1
  127. package/dist/lib/infrastructure/di/bootstrap.d.ts.map +1 -1
  128. package/dist/lib/infrastructure/di/bootstrap.js +92 -2
  129. package/dist/lib/infrastructure/di/bootstrap.js.map +1 -1
  130. package/dist/lib/infrastructure/di/tokens.d.ts +24 -0
  131. package/dist/lib/infrastructure/di/tokens.d.ts.map +1 -1
  132. package/dist/lib/infrastructure/di/tokens.js +12 -0
  133. package/dist/lib/infrastructure/di/tokens.js.map +1 -1
  134. package/dist/lib/infrastructure/services/ConsolidationService.d.ts +21 -0
  135. package/dist/lib/infrastructure/services/ConsolidationService.d.ts.map +1 -0
  136. package/dist/lib/infrastructure/services/ConsolidationService.js +134 -0
  137. package/dist/lib/infrastructure/services/ConsolidationService.js.map +1 -0
  138. package/dist/lib/infrastructure/services/CurationService.d.ts +28 -0
  139. package/dist/lib/infrastructure/services/CurationService.d.ts.map +1 -0
  140. package/dist/lib/infrastructure/services/CurationService.js +112 -0
  141. package/dist/lib/infrastructure/services/CurationService.js.map +1 -0
  142. package/dist/lib/infrastructure/services/DeduplicationService.d.ts +21 -0
  143. package/dist/lib/infrastructure/services/DeduplicationService.d.ts.map +1 -0
  144. package/dist/lib/infrastructure/services/DeduplicationService.js +111 -0
  145. package/dist/lib/infrastructure/services/DeduplicationService.js.map +1 -0
  146. package/dist/lib/infrastructure/services/LlmConfigService.d.ts +19 -0
  147. package/dist/lib/infrastructure/services/LlmConfigService.d.ts.map +1 -0
  148. package/dist/lib/infrastructure/services/LlmConfigService.js +161 -0
  149. package/dist/lib/infrastructure/services/LlmConfigService.js.map +1 -0
  150. package/dist/lib/infrastructure/services/LlmDeduplicationEnhancer.d.ts +47 -0
  151. package/dist/lib/infrastructure/services/LlmDeduplicationEnhancer.d.ts.map +1 -0
  152. package/dist/lib/infrastructure/services/LlmDeduplicationEnhancer.js +176 -0
  153. package/dist/lib/infrastructure/services/LlmDeduplicationEnhancer.js.map +1 -0
  154. package/dist/lib/infrastructure/services/LlmGuard.d.ts +29 -0
  155. package/dist/lib/infrastructure/services/LlmGuard.d.ts.map +1 -0
  156. package/dist/lib/infrastructure/services/LlmGuard.js +92 -0
  157. package/dist/lib/infrastructure/services/LlmGuard.js.map +1 -0
  158. package/dist/lib/infrastructure/services/LlmService.d.ts +19 -0
  159. package/dist/lib/infrastructure/services/LlmService.d.ts.map +1 -0
  160. package/dist/lib/infrastructure/services/LlmService.js +253 -0
  161. package/dist/lib/infrastructure/services/LlmService.js.map +1 -0
  162. package/dist/lib/infrastructure/services/LlmUsageTracker.d.ts +25 -0
  163. package/dist/lib/infrastructure/services/LlmUsageTracker.d.ts.map +1 -0
  164. package/dist/lib/infrastructure/services/LlmUsageTracker.js +130 -0
  165. package/dist/lib/infrastructure/services/LlmUsageTracker.js.map +1 -0
  166. package/dist/lib/infrastructure/services/MemoryService.d.ts +29 -2
  167. package/dist/lib/infrastructure/services/MemoryService.d.ts.map +1 -1
  168. package/dist/lib/infrastructure/services/MemoryService.js +93 -0
  169. package/dist/lib/infrastructure/services/MemoryService.js.map +1 -1
  170. package/dist/lib/infrastructure/services/NlCurationService.d.ts +29 -0
  171. package/dist/lib/infrastructure/services/NlCurationService.d.ts.map +1 -0
  172. package/dist/lib/infrastructure/services/NlCurationService.js +276 -0
  173. package/dist/lib/infrastructure/services/NlCurationService.js.map +1 -0
  174. package/dist/lib/infrastructure/services/PreferenceStore.d.ts +19 -0
  175. package/dist/lib/infrastructure/services/PreferenceStore.d.ts.map +1 -0
  176. package/dist/lib/infrastructure/services/PreferenceStore.js +109 -0
  177. package/dist/lib/infrastructure/services/PreferenceStore.js.map +1 -0
  178. package/dist/lib/infrastructure/services/SessionCaptureService.d.ts +60 -19
  179. package/dist/lib/infrastructure/services/SessionCaptureService.d.ts.map +1 -1
  180. package/dist/lib/infrastructure/services/SessionCaptureService.js +474 -51
  181. package/dist/lib/infrastructure/services/SessionCaptureService.js.map +1 -1
  182. package/dist/lib/infrastructure/services/SummarizationService.d.ts +21 -0
  183. package/dist/lib/infrastructure/services/SummarizationService.d.ts.map +1 -0
  184. package/dist/lib/infrastructure/services/SummarizationService.js +132 -0
  185. package/dist/lib/infrastructure/services/SummarizationService.js.map +1 -0
  186. package/dist/lib/infrastructure/services/TranscriptEnricher.d.ts +23 -0
  187. package/dist/lib/infrastructure/services/TranscriptEnricher.d.ts.map +1 -0
  188. package/dist/lib/infrastructure/services/TranscriptEnricher.js +170 -0
  189. package/dist/lib/infrastructure/services/TranscriptEnricher.js.map +1 -0
  190. package/dist/lib/infrastructure/services/index.d.ts +12 -0
  191. package/dist/lib/infrastructure/services/index.d.ts.map +1 -1
  192. package/dist/lib/infrastructure/services/index.js +31 -1
  193. package/dist/lib/infrastructure/services/index.js.map +1 -1
  194. package/dist/lib/infrastructure/services/prompts/curation.d.ts +22 -0
  195. package/dist/lib/infrastructure/services/prompts/curation.d.ts.map +1 -0
  196. package/dist/lib/infrastructure/services/prompts/curation.js +73 -0
  197. package/dist/lib/infrastructure/services/prompts/curation.js.map +1 -0
  198. package/dist/lib/infrastructure/services/prompts/deduplication.d.ts +31 -0
  199. package/dist/lib/infrastructure/services/prompts/deduplication.d.ts.map +1 -0
  200. package/dist/lib/infrastructure/services/prompts/deduplication.js +52 -0
  201. package/dist/lib/infrastructure/services/prompts/deduplication.js.map +1 -0
  202. package/dist/lib/infrastructure/services/prompts/extraction.d.ts +27 -0
  203. package/dist/lib/infrastructure/services/prompts/extraction.d.ts.map +1 -0
  204. package/dist/lib/infrastructure/services/prompts/extraction.js +94 -0
  205. package/dist/lib/infrastructure/services/prompts/extraction.js.map +1 -0
  206. package/dist/lib/infrastructure/services/prompts/summarization.d.ts +25 -0
  207. package/dist/lib/infrastructure/services/prompts/summarization.d.ts.map +1 -0
  208. package/dist/lib/infrastructure/services/prompts/summarization.js +60 -0
  209. package/dist/lib/infrastructure/services/prompts/summarization.js.map +1 -0
  210. package/dist/lib/skills/common/type-mappings.d.ts.map +1 -1
  211. package/dist/lib/skills/common/type-mappings.js +5 -0
  212. package/dist/lib/skills/common/type-mappings.js.map +1 -1
  213. package/dist/lib/skills/memory/memory.d.ts +8 -2
  214. package/dist/lib/skills/memory/memory.d.ts.map +1 -1
  215. package/dist/lib/skills/memory/memory.js +27 -3
  216. package/dist/lib/skills/memory/memory.js.map +1 -1
  217. package/dist/lib/skills/shared/clients/Neo4jClient.d.ts.map +1 -1
  218. package/dist/lib/skills/shared/clients/Neo4jClient.js +75 -30
  219. package/dist/lib/skills/shared/clients/Neo4jClient.js.map +1 -1
  220. package/dist/lib/skills/shared/clients/interfaces/INeo4jClient.d.ts +16 -0
  221. package/dist/lib/skills/shared/clients/interfaces/INeo4jClient.d.ts.map +1 -1
  222. package/dist/lib/skills/shared/services/MemoryCliService.d.ts +28 -2
  223. package/dist/lib/skills/shared/services/MemoryCliService.d.ts.map +1 -1
  224. package/dist/lib/skills/shared/services/MemoryCliService.js +112 -5
  225. package/dist/lib/skills/shared/services/MemoryCliService.js.map +1 -1
  226. package/dist/lib/skills/shared/services/MemoryService.d.ts.map +1 -1
  227. package/dist/lib/skills/shared/services/MemoryService.js +410 -1
  228. package/dist/lib/skills/shared/services/MemoryService.js.map +1 -1
  229. package/dist/lib/skills/shared/services/index.d.ts +1 -1
  230. package/dist/lib/skills/shared/services/index.d.ts.map +1 -1
  231. package/dist/lib/skills/shared/services/index.js +2 -1
  232. package/dist/lib/skills/shared/services/index.js.map +1 -1
  233. package/dist/lib/skills/shared/services/interfaces/IMemoryService.d.ts +148 -0
  234. package/dist/lib/skills/shared/services/interfaces/IMemoryService.d.ts.map +1 -1
  235. package/dist/lib/skills/shared/services/interfaces/IMemoryService.js +0 -4
  236. package/dist/lib/skills/shared/services/interfaces/IMemoryService.js.map +1 -1
  237. package/dist/opencode/lisa.js +3904 -507
  238. package/dist/package.json +16 -16
  239. package/dist/project/.lisa/skills/git/SKILL.md +4 -13
  240. package/dist/project/.lisa/skills/init-review/SKILL.md +1 -1
  241. package/dist/project/.lisa/skills/jira/SKILL.md +1 -1
  242. package/dist/project/.lisa/skills/lisa/SKILL.md +1 -1
  243. package/dist/project/.lisa/skills/memory/SKILL.md +1 -2
  244. package/dist/project/.lisa/skills/tasks/SKILL.md +3 -4
  245. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /**
3
+ * Transcript Enricher Interface.
4
+ *
5
+ * Defines the contract for LLM-powered extraction of structured facts
6
+ * from session transcripts. Extracts decisions, learnings, blockers,
7
+ * tasks, preferences, conventions, and gotchas with confidence levels.
8
+ *
9
+ * Part of Phase 6C: Enhanced Session Transcript Extraction.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EXTRACTED_FACT_TYPE_VALUES = void 0;
13
+ exports.isValidExtractedFactType = isValidExtractedFactType;
14
+ /**
15
+ * All valid extracted fact types.
16
+ */
17
+ exports.EXTRACTED_FACT_TYPE_VALUES = [
18
+ 'decision',
19
+ 'learning',
20
+ 'blocker',
21
+ 'task',
22
+ 'preference',
23
+ 'convention',
24
+ 'gotcha',
25
+ ];
26
+ /**
27
+ * Type guard for ExtractedFactType.
28
+ */
29
+ function isValidExtractedFactType(value) {
30
+ return exports.EXTRACTED_FACT_TYPE_VALUES.includes(value);
31
+ }
32
+ //# sourceMappingURL=ITranscriptEnricher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITranscriptEnricher.js","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/ITranscriptEnricher.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAkCH,4DAEC;AAlBD;;GAEG;AACU,QAAA,0BAA0B,GAAiC;IACtE,UAAU;IACV,UAAU;IACV,SAAS;IACT,MAAM;IACN,YAAY;IACZ,YAAY;IACZ,QAAQ;CACA,CAAC;AAEX;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IACpD,OAAO,kCAA0B,CAAC,QAAQ,CAAC,KAA0B,CAAC,CAAC;AACzE,CAAC"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Work Summary Interface.
3
+ *
4
+ * Represents a parsed summary of work performed during a coding session.
5
+ * Used by both the session capture service (infrastructure) and the
6
+ * transcript enricher (domain contract).
7
+ *
8
+ * Lives in the domain layer so that domain interfaces (ITranscriptEnricher)
9
+ * can reference it without crossing the architecture boundary.
10
+ */
11
+ import type { TaskType } from './types/ITaskType';
12
+ /**
13
+ * A detected user decision from transcript analysis.
14
+ */
15
+ export interface IDetectedDecision {
16
+ /** What was decided */
17
+ readonly text: string;
18
+ /** The confirming user message */
19
+ readonly userMessage: string;
20
+ /** Confidence score (0.0-1.0) based on pattern strength */
21
+ readonly confidence: number;
22
+ }
23
+ /**
24
+ * A detected error from transcript analysis.
25
+ */
26
+ export interface IDetectedError {
27
+ /** Error description */
28
+ readonly text: string;
29
+ /** Classification of the error type */
30
+ readonly errorType: 'stack-trace' | 'tool-failure' | 'retry-pattern';
31
+ /** Surrounding message context */
32
+ readonly context?: string;
33
+ }
34
+ /**
35
+ * Correlation between a file change and the user prompt that triggered it.
36
+ */
37
+ export interface IFilePromptCorrelation {
38
+ /** The modified/created file path */
39
+ readonly filePath: string;
40
+ /** The prompt text snippet that triggered the change */
41
+ readonly triggerSnippet: string;
42
+ }
43
+ /**
44
+ * Parsed work summary from a session transcript.
45
+ */
46
+ export interface IWorkSummary {
47
+ readonly messageCount: number;
48
+ readonly userPrompts: number;
49
+ readonly assistantResponses: number;
50
+ readonly toolCalls: number;
51
+ readonly filesCreated: readonly string[];
52
+ readonly filesModified: readonly string[];
53
+ readonly duration: number;
54
+ readonly summary: string;
55
+ /** Heuristic-detected user decisions (optional, populated by heuristic extractors) */
56
+ readonly detectedDecisions?: readonly IDetectedDecision[];
57
+ /** Heuristic-detected errors (optional, populated by heuristic extractors) */
58
+ readonly detectedErrors?: readonly IDetectedError[];
59
+ /** File-prompt correlations (optional, populated by heuristic extractors) */
60
+ readonly filePromptCorrelations?: readonly IFilePromptCorrelation[];
61
+ /** Detected task type from signal analysis (optional) */
62
+ readonly detectedTaskType?: TaskType;
63
+ }
64
+ //# sourceMappingURL=IWorkSummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IWorkSummary.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IWorkSummary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,uBAAuB;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,2DAA2D;IAC3D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;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used by both the session capture service (infrastructure) and the
7
+ * transcript enricher (domain contract).
8
+ *
9
+ * Lives in the domain layer so that domain interfaces (ITranscriptEnricher)
10
+ * can reference it without crossing the architecture boundary.
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ //# sourceMappingURL=IWorkSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IWorkSummary.js","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/IWorkSummary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Memory Relationship Repository Interface.
3
+ *
4
+ * Contract for storing and querying typed relationships between memory facts.
5
+ * Implementations may use Neo4j (MEMORY_RELATION edges) or other graph backends.
6
+ */
7
+ import type { IMemoryRelationship, MemoryRelationType } from '../types/IMemoryRelationship';
8
+ /**
9
+ * Options for querying memory relationships.
10
+ */
11
+ export interface IRelationshipQueryOptions {
12
+ /** Filter by relation type */
13
+ readonly relationType?: MemoryRelationType;
14
+ /** Direction of relationships to query */
15
+ readonly direction?: 'outgoing' | 'incoming' | 'both';
16
+ }
17
+ /**
18
+ * Repository for memory fact relationships.
19
+ */
20
+ export interface IMemoryRelationshipRepository {
21
+ /**
22
+ * Create a relationship between two memory facts.
23
+ *
24
+ * @param groupId - Group ID for scoping
25
+ * @param relationship - The relationship to create (without created_at)
26
+ */
27
+ createRelationship(groupId: string, relationship: Omit<IMemoryRelationship, 'created_at'>): Promise<void>;
28
+ /**
29
+ * Find relationships for a memory fact.
30
+ *
31
+ * @param groupId - Group ID for scoping
32
+ * @param uuid - UUID of the fact to find relationships for
33
+ * @param options - Optional query filters (type, direction)
34
+ */
35
+ findRelationships(groupId: string, uuid: string, options?: IRelationshipQueryOptions): Promise<readonly IMemoryRelationship[]>;
36
+ /**
37
+ * Remove a specific relationship between two facts.
38
+ *
39
+ * @param groupId - Group ID for scoping
40
+ * @param sourceUuid - UUID of the source fact
41
+ * @param targetUuid - UUID of the target fact
42
+ * @param relationType - Type of relationship to remove
43
+ */
44
+ removeRelationship(groupId: string, sourceUuid: string, targetUuid: string, relationType: MemoryRelationType): Promise<void>;
45
+ }
46
+ //# sourceMappingURL=IMemoryRelationshipRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMemoryRelationshipRepository.d.ts","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/dal/IMemoryRelationshipRepository.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAE5F;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,8BAA8B;IAC9B,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAC3C,0CAA0C;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;CACvD;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;;;OAKG;IACH,kBAAkB,CAChB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,GACpD,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;OAMG;IACH,iBAAiB,CACf,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,SAAS,mBAAmB,EAAE,CAAC,CAAC;IAE3C;;;;;;;OAOG;IACH,kBAAkB,CAChB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,kBAAkB,GAC/B,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Memory Relationship Repository Interface.
4
+ *
5
+ * Contract for storing and querying typed relationships between memory facts.
6
+ * Implementations may use Neo4j (MEMORY_RELATION edges) or other graph backends.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=IMemoryRelationshipRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMemoryRelationshipRepository.js","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/dal/IMemoryRelationshipRepository.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -5,7 +5,9 @@
5
5
  * Implementations may use MCP, Neo4j, or Zep Cloud as backend.
6
6
  */
7
7
  import { IMemoryItem } from '../types/IMemoryResult';
8
- import { IQueryOptions, IMemoryQueryResult } from './types';
8
+ import type { MemoryLifecycle } from '../types/IMemoryLifecycle';
9
+ import type { ConfidenceLevel, SourceType } from '../types/IMemoryQuality';
10
+ import { IQueryOptions, IMemoryQueryResult, IExpirationFilter, IConflictGroup } from './types';
9
11
  /**
10
12
  * Options for saving memory.
11
13
  */
@@ -14,6 +16,14 @@ export interface IMemorySaveOptions {
14
16
  readonly tags?: readonly string[];
15
17
  /** Source identifier (e.g., 'session-stop', 'user-explicit') */
16
18
  readonly source?: string;
19
+ /** Lifecycle tier for retention control */
20
+ readonly lifecycle?: MemoryLifecycle;
21
+ /** Custom TTL override in milliseconds (overrides lifecycle default) */
22
+ readonly ttlMs?: number;
23
+ /** Confidence level for the fact */
24
+ readonly confidence?: ConfidenceLevel;
25
+ /** Source type for provenance tracking */
26
+ readonly sourceType?: SourceType;
17
27
  }
18
28
  /**
19
29
  * Memory repository read operations.
@@ -80,6 +90,47 @@ export interface IMemoryRepositoryCapabilities {
80
90
  */
81
91
  supportsWrite(): boolean;
82
92
  }
93
+ /**
94
+ * Expiration operations for memory repositories.
95
+ * Separated interface since not all backends support direct expiration.
96
+ */
97
+ export interface IMemoryRepositoryExpiration {
98
+ /**
99
+ * Expire a single fact by UUID.
100
+ * Sets expired_at timestamp on the fact.
101
+ * @param groupId - Group ID the fact belongs to
102
+ * @param uuid - UUID of the fact to expire
103
+ */
104
+ expire(groupId: string, uuid: string): Promise<void>;
105
+ /**
106
+ * Expire facts matching a filter.
107
+ * @param groupId - Group ID to filter within
108
+ * @param filter - Expiration filter criteria
109
+ * @returns Number of facts expired
110
+ */
111
+ expireByFilter(groupId: string, filter: IExpirationFilter): Promise<number>;
112
+ }
113
+ /**
114
+ * Quality operations for memory repositories.
115
+ * Separated interface since not all backends support quality queries.
116
+ */
117
+ export interface IMemoryRepositoryQuality {
118
+ /**
119
+ * Find facts at or above a minimum confidence level.
120
+ * @param groupIds - Group IDs to search
121
+ * @param minLevel - Minimum confidence level (inclusive)
122
+ * @param options - Additional query options
123
+ */
124
+ findByMinConfidence(groupIds: readonly string[], minLevel: ConfidenceLevel, options?: IQueryOptions): Promise<IMemoryQueryResult>;
125
+ /**
126
+ * Find groups of potentially conflicting facts.
127
+ * Detects facts sharing topic tags but with differing content.
128
+ * @param groupIds - Group IDs to search
129
+ * @param topic - Optional topic to filter conflicts by
130
+ * @param options - Additional query options
131
+ */
132
+ findConflicts(groupIds: readonly string[], topic?: string, options?: IQueryOptions): Promise<readonly IConflictGroup[]>;
133
+ }
83
134
  /**
84
135
  * Complete memory repository interface.
85
136
  */
@@ -90,4 +141,14 @@ export interface IMemoryRepository extends IMemoryRepositoryReader, IMemoryRepos
90
141
  */
91
142
  export interface IReadOnlyMemoryRepository extends IMemoryRepositoryReader, IMemoryRepositoryCapabilities {
92
143
  }
144
+ /**
145
+ * Read-only memory repository with expiration support (e.g., Neo4j direct).
146
+ */
147
+ export interface IReadOnlyMemoryRepositoryWithExpiration extends IReadOnlyMemoryRepository, IMemoryRepositoryExpiration {
148
+ }
149
+ /**
150
+ * Read-only memory repository with expiration and quality support.
151
+ */
152
+ export interface IReadOnlyMemoryRepositoryWithQuality extends IReadOnlyMemoryRepositoryWithExpiration, IMemoryRepositoryQuality {
153
+ }
93
154
  //# sourceMappingURL=IMemoryRepository.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IMemoryRepository.d.ts","sourceRoot":"","sources":["../../../../../src/lib/dom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AC,CAAC;IAErD;;;;;OAKG;IACH,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7E;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;OAKG;IACH,mBAAmB,CACjB,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE/B;;;;;;OAMG;IACH,aAAa,CACX,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,SAAS,cAAc,EAAE,CAAC,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,iBACf,SAAQ,uBAAuB,EAC7B,uBAAuB,EACvB,6BAA6B;CAAG;AAEpC;;GAEG;AACH,MAAM,WAAW,yBACf,SAAQ,uBAAuB,EAC7B,6BAA6B;CAAG;AAEpC;;GAEG;AACH,MAAM,WAAW,uCACf,SAAQ,yBAAyB,EAC/B,2BAA2B;CAAG;AAElC;;GAEG;AACH,MAAM,WAAW,oCACf,SAAQ,uCAAuC,EAC7C,wBAAwB;CAAG"}
@@ -4,13 +4,14 @@
4
4
  * Provides abstractions for accessing memory and task data
5
5
  * across multiple backends (MCP, Neo4j, Zep Cloud).
6
6
  */
7
- export type { SortField, SortOrder, ISortOption, IQueryOptions, BackendSource, IQueryResult, IMemoryQueryResult, ITaskQueryResult, OperationType, } from './types';
7
+ export type { SortField, SortOrder, ISortOption, IQueryOptions, BackendSource, IQueryResult, IMemoryQueryResult, ITaskQueryResult, OperationType, IExpirationFilter, IQualityFilter, IConflictGroup, } from './types';
8
8
  export { DEFAULT_QUERY_OPTIONS, applyQueryDefaults, } from './types';
9
9
  export type { IConnectionConfig, IMcpConnectionConfig, INeo4jConnectionConfig, IZepConnectionConfig, IConnectionManager, IMcpConnectionManager, INeo4jConnectionManager, IZepConnectionManager, } from './IConnectionManager';
10
- export type { IMemorySaveOptions, IMemoryRepositoryReader, IMemoryRepositoryWriter, IMemoryRepositoryCapabilities, IMemoryRepository, IReadOnlyMemoryRepository, } from './IMemoryRepository';
10
+ export type { IMemorySaveOptions, IMemoryRepositoryReader, IMemoryRepositoryWriter, IMemoryRepositoryCapabilities, IMemoryRepositoryExpiration, IMemoryRepositoryQuality, IMemoryRepository, IReadOnlyMemoryRepository, IReadOnlyMemoryRepositoryWithExpiration, IReadOnlyMemoryRepositoryWithQuality, } from './IMemoryRepository';
11
11
  export type { ITaskRepositoryReader, ITaskRepositoryWriter, ITaskRepositoryCapabilities, ITaskRepository, IReadOnlyTaskRepository, } from './ITaskRepository';
12
12
  export type { IPullRequestQueryOptions, IPullRequestQueryResult, IPullRequestRepositoryReader, IPullRequestRepositoryWriter, IPullRequestRepositoryCapabilities, IPullRequestRepository, } from './IPullRequestRepository';
13
13
  export type { IRoutingRule, IRouterConfig, IRepositoryRouter, RepositoryRouterFactory, } from './IRepositoryRouter';
14
14
  export { DEFAULT_ROUTING_RULES } from './IRepositoryRouter';
15
15
  export type { IGithubClient } from './IGithubClient';
16
+ export type { IRelationshipQueryOptions, IMemoryRelationshipRepository, } from './IMemoryRelationshipRepository';
16
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/dal/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,EAC7B,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAG7B,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,eAAe,EACf,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAG3B,YAAY,EACV,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,kCAAkC,EAClC,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAGlC,YAAY,EACV,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/dal/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,cAAc,GACf,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,EAC7B,2BAA2B,EAC3B,wBAAwB,EACxB,iBAAiB,EACjB,yBAAyB,EACzB,uCAAuC,EACvC,oCAAoC,GACrC,MAAM,qBAAqB,CAAC;AAG7B,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,eAAe,EACf,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAG3B,YAAY,EACV,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,kCAAkC,EAClC,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAGlC,YAAY,EACV,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,YAAY,EACV,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/dal/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAeH,iCAGiB;AAFf,8GAAA,qBAAqB,OAAA;AACrB,2GAAA,kBAAkB,OAAA;AAoDpB,yDAA4D;AAAnD,0HAAA,qBAAqB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/dal/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAkBH,iCAGiB;AAFf,8GAAA,qBAAqB,OAAA;AACrB,2GAAA,kBAAkB,OAAA;AAwDpB,yDAA4D;AAAnD,0HAAA,qBAAqB,OAAA"}
@@ -5,6 +5,8 @@
5
5
  */
6
6
  import { IMemoryItem } from '../types/IMemoryResult';
7
7
  import { ITask } from '../types/ITask';
8
+ import type { MemoryLifecycle } from '../types/IMemoryLifecycle';
9
+ import type { ConfidenceLevel, SourceType } from '../types/IMemoryQuality';
8
10
  /**
9
11
  * Fields that can be used for sorting.
10
12
  */
@@ -40,6 +42,8 @@ export interface IQueryOptions {
40
42
  readonly until?: Date;
41
43
  /** Include expired/invalidated facts */
42
44
  readonly includeExpired?: boolean;
45
+ /** Quality-based filtering */
46
+ readonly quality?: IQualityFilter;
43
47
  }
44
48
  /**
45
49
  * Backend source identifier.
@@ -78,4 +82,37 @@ export declare const DEFAULT_QUERY_OPTIONS: Required<Pick<IQueryOptions, 'limit'
78
82
  * Apply defaults to query options.
79
83
  */
80
84
  export declare function applyQueryDefaults(options?: IQueryOptions): IQueryOptions;
85
+ /**
86
+ * Filter criteria for expiring facts.
87
+ */
88
+ export interface IExpirationFilter {
89
+ /** Filter by lifecycle tier */
90
+ readonly lifecycle?: MemoryLifecycle;
91
+ /** Expire facts older than this date */
92
+ readonly olderThan?: Date;
93
+ /** Filter by tags (all must match) */
94
+ readonly tags?: readonly string[];
95
+ }
96
+ /**
97
+ * Filter criteria for quality-based queries.
98
+ */
99
+ export interface IQualityFilter {
100
+ /** Minimum confidence level (inclusive) */
101
+ readonly minConfidence?: ConfidenceLevel;
102
+ /** Filter by source type */
103
+ readonly sourceType?: SourceType;
104
+ /** Only include facts marked as curated */
105
+ readonly curatedOnly?: boolean;
106
+ }
107
+ /**
108
+ * A group of potentially conflicting facts sharing a topic.
109
+ */
110
+ export interface IConflictGroup {
111
+ /** Shared topic or tag that links these facts */
112
+ readonly topic: string;
113
+ /** The conflicting facts */
114
+ readonly facts: readonly IMemoryItem[];
115
+ /** When the conflict was detected */
116
+ readonly detectedAt: string;
117
+ }
81
118
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/dal/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,gB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CAAC,OAAuB;IACxD,OAAO;QACL,GAAG,6BAAqB;QACxB,GAAG,OAAO;KACX,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/dal/types.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAsGH,gDAKC;AApBD;;GAEG;AACU,QAAA,qBAAqB,GAE9B;IACF,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE;IAC5C,cAAc,EAAE,KAAK;CACtB,CAAC;AAEF;;GAEG;AACH,SAAgB,kBAAkB,CAAC,OAAuB;IACxD,OAAO;QACL,GAAG,6BAAqB;QACxB,GAAG,OAAO;KACX,CAAC;AACJ,CAAC"}
@@ -3,13 +3,15 @@
3
3
  * These live in the domain layer and have ZERO dependencies.
4
4
  */
5
5
  export { ILisaContext } from './ILisaContext';
6
- export { IMemoryReader, IMemoryWriter, IMemoryService, IMemoryDateOptions } from './IMemoryService';
6
+ export { IMemoryReader, IMemoryWriter, IMemoryService, IMemoryDateOptions, IMemoryRelationshipWriter, IMemoryServiceWithRelationships, IMemoryQualityReader, IMemoryServiceWithQuality } from './IMemoryService';
7
+ export type { IMemorySaveOptions } from './dal/IMemoryRepository';
7
8
  export { ITaskReader, ITaskWriter, ITaskService } from './ITaskService';
8
9
  export { IMcpClient } from './IMcpClient';
9
10
  export { ISessionCaptureService } from './ISessionCaptureService';
10
11
  export { EventHandler, IEventEmitter } from './IEventEmitter';
11
12
  export { ILisaServices } from './ILisaServices';
12
13
  export { IRecursionResult, IRecursionConfig, IRecursionService } from './IRecursionService';
14
+ export { ITaskTypeResult, ITaskTypeDetector } from './ITaskTypeDetector';
13
15
  export { LogLevel, ILoggerOptions, ILogger, LoggerFactory } from './ILogger';
14
16
  export { LogEvents, LogEvent, ILogContext, IStructuredLog, IStructuredLogger, generateCorrelationId, deriveCompleteEvent, deriveErrorEvent, } from './IStructuredLog';
15
17
  export { ILabelInferenceResult, ILabelInferenceOptions, ILabelInferenceService, ILabelRule, } from './ILabelInference';
@@ -17,6 +19,18 @@ export { NotificationType, NotificationPriority, INotification, INotificationRes
17
19
  export { CronPlatform, CronStatus, ICronJobConfig, ICronConfig, ILisaGlobalConfig, ICronResult, ICronService, } from './ICronService';
18
20
  export type { IGitClient, IGitLogOptions, IGitDiffOptions } from './IGitClient';
19
21
  export type { IClaudeCliClient, IClaudePromptOptions } from './IClaudeCliClient';
22
+ export { type DuplicateReason, type IDuplicateGroup, type IDeduplicationResult, type IDeduplicationOptions, type IDeduplicationService, } from './IDeduplicationService';
23
+ export { type CurationMark, CURATION_MARK_VALUES, type ICurationService, isValidCurationMark, resolveCurationTag, parseCurationTag, } from './ICurationService';
24
+ export { type ConsolidationAction, CONSOLIDATION_ACTION_VALUES, type IConsolidationResult, type IConsolidationOptions, type IConsolidationService, } from './IConsolidationService';
25
+ export { type IPreference, type IPreferenceStore, } from './IPreferenceStore';
26
+ export { type LlmProvider, LLM_PROVIDER_VALUES, isValidLlmProvider, getDefaultLlmConfig, type ILlmConfig, type ILlmUsage, type ILlmResponse, type ILlmRequestOptions, type ILlmService, } from './ILlmService';
27
+ export { type ILlmConfigService, } from './ILlmConfigService';
28
+ export { type LlmFeature, LLM_FEATURE_VALUES, isValidLlmFeature, type ILlmUsageRecord, type ILlmUsageTracker, } from './ILlmUsageTracker';
29
+ export { type ILlmGuard, } from './ILlmGuard';
30
+ export { type ISummarizationResult, type ISummarizationOptions, type ISummarizationService, } from './ISummarizationService';
31
+ export { type ExtractedFactType, EXTRACTED_FACT_TYPE_VALUES, isValidExtractedFactType, type IExtractedFact, type IEnrichmentResult, type IEnrichmentOptions, type ITranscriptEnricher, } from './ITranscriptEnricher';
32
+ export { type IWorkSummary, type IDetectedDecision, type IDetectedError, type IFilePromptCorrelation, } from './IWorkSummary';
33
+ export { type NlCurationIntent, NL_CURATION_INTENT_VALUES, isValidNlCurationIntent, type INlOperation, type INlCurationPlan, type INlCurationResult, type INlCurationService, } from './INlCurationService';
20
34
  export * from './events';
21
35
  export * from './types';
22
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EACL,SAAS,EACT,QAAQ,EACR,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,YAAY,EACZ,UAAU,EACV,cA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AAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,UAAU,EACf,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,SAAS,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,iBAAiB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,sBAAsB,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,gBAAgB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,sBAAsB,CAAC;AAG9B,cAAc,UAAU,CAAC;AAGzB,cAAc,SAAS,CAAC"}
@@ -18,12 +18,32 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.deriveErrorEvent = exports.deriveCompleteEvent = exports.generateCorrelationId = exports.LogEvents = void 0;
21
+ exports.isValidNlCurationIntent = exports.NL_CURATION_INTENT_VALUES = exports.isValidExtractedFactType = exports.EXTRACTED_FACT_TYPE_VALUES = exports.isValidLlmFeature = exports.LLM_FEATURE_VALUES = exports.getDefaultLlmConfig = exports.isValidLlmProvider = exports.LLM_PROVIDER_VALUES = exports.CONSOLIDATION_ACTION_VALUES = exports.parseCurationTag = exports.resolveCurationTag = exports.isValidCurationMark = exports.CURATION_MARK_VALUES = exports.deriveErrorEvent = exports.deriveCompleteEvent = exports.generateCorrelationId = exports.LogEvents = void 0;
22
22
  var IStructuredLog_1 = require("./IStructuredLog");
23
23
  Object.defineProperty(exports, "LogEvents", { enumerable: true, get: function () { return IStructuredLog_1.LogEvents; } });
24
24
  Object.defineProperty(exports, "generateCorrelationId", { enumerable: true, get: function () { return IStructuredLog_1.generateCorrelationId; } });
25
25
  Object.defineProperty(exports, "deriveCompleteEvent", { enumerable: true, get: function () { return IStructuredLog_1.deriveCompleteEvent; } });
26
26
  Object.defineProperty(exports, "deriveErrorEvent", { enumerable: true, get: function () { return IStructuredLog_1.deriveErrorEvent; } });
27
+ var ICurationService_1 = require("./ICurationService");
28
+ Object.defineProperty(exports, "CURATION_MARK_VALUES", { enumerable: true, get: function () { return ICurationService_1.CURATION_MARK_VALUES; } });
29
+ Object.defineProperty(exports, "isValidCurationMark", { enumerable: true, get: function () { return ICurationService_1.isValidCurationMark; } });
30
+ Object.defineProperty(exports, "resolveCurationTag", { enumerable: true, get: function () { return ICurationService_1.resolveCurationTag; } });
31
+ Object.defineProperty(exports, "parseCurationTag", { enumerable: true, get: function () { return ICurationService_1.parseCurationTag; } });
32
+ var IConsolidationService_1 = require("./IConsolidationService");
33
+ Object.defineProperty(exports, "CONSOLIDATION_ACTION_VALUES", { enumerable: true, get: function () { return IConsolidationService_1.CONSOLIDATION_ACTION_VALUES; } });
34
+ var ILlmService_1 = require("./ILlmService");
35
+ Object.defineProperty(exports, "LLM_PROVIDER_VALUES", { enumerable: true, get: function () { return ILlmService_1.LLM_PROVIDER_VALUES; } });
36
+ Object.defineProperty(exports, "isValidLlmProvider", { enumerable: true, get: function () { return ILlmService_1.isValidLlmProvider; } });
37
+ Object.defineProperty(exports, "getDefaultLlmConfig", { enumerable: true, get: function () { return ILlmService_1.getDefaultLlmConfig; } });
38
+ var ILlmUsageTracker_1 = require("./ILlmUsageTracker");
39
+ Object.defineProperty(exports, "LLM_FEATURE_VALUES", { enumerable: true, get: function () { return ILlmUsageTracker_1.LLM_FEATURE_VALUES; } });
40
+ Object.defineProperty(exports, "isValidLlmFeature", { enumerable: true, get: function () { return ILlmUsageTracker_1.isValidLlmFeature; } });
41
+ var ITranscriptEnricher_1 = require("./ITranscriptEnricher");
42
+ Object.defineProperty(exports, "EXTRACTED_FACT_TYPE_VALUES", { enumerable: true, get: function () { return ITranscriptEnricher_1.EXTRACTED_FACT_TYPE_VALUES; } });
43
+ Object.defineProperty(exports, "isValidExtractedFactType", { enumerable: true, get: function () { return ITranscriptEnricher_1.isValidExtractedFactType; } });
44
+ var INlCurationService_1 = require("./INlCurationService");
45
+ Object.defineProperty(exports, "NL_CURATION_INTENT_VALUES", { enumerable: true, get: function () { return INlCurationService_1.NL_CURATION_INTENT_VALUES; } });
46
+ Object.defineProperty(exports, "isValidNlCurationIntent", { enumerable: true, get: function () { return INlCurationService_1.isValidNlCurationIntent; } });
27
47
  // Event interfaces
28
48
  __exportStar(require("./events"), exports);
29
49
  // Type interfaces (data structures)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAYH,mDAS0B;AARxB,2GAAA,SAAS,OAAA;AAKT,uHAAA,qBAAqB,OAAA;AACrB,qHAAA,mBAAmB,OAAA;AACnB,kHAAA,gBAAgB,OAAA;AA4BlB,mBAAmB;AACnB,2CAAyB;AAEzB,oCAAoC;AACpC,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/domain/interfaces/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAcH,mDAS0B;AARxB,2GAAA,SAAS,OAAA;AAKT,uHAAA,qBAAqB,OAAA;AACrB,qHAAA,mBAAmB,OAAA;AACnB,kHAAA,gBAAgB,OAAA;AAkClB,uDAO4B;AAL1B,wHAAA,oBAAoB,OAAA;AAEpB,uHAAA,mBAAmB,OAAA;AACnB,sHAAA,kBAAkB,OAAA;AAClB,oHAAA,gBAAgB,OAAA;AAElB,iEAMiC;AAJ/B,oIAAA,2BAA2B,OAAA;AAS7B,6CAUuB;AARrB,kHAAA,mBAAmB,OAAA;AACnB,iHAAA,kBAAkB,OAAA;AAClB,kHAAA,mBAAmB,OAAA;AAUrB,uDAM4B;AAJ1B,sHAAA,kBAAkB,OAAA;AAClB,qHAAA,iBAAiB,OAAA;AAYnB,6DAQ+B;AAN7B,iIAAA,0BAA0B,OAAA;AAC1B,+HAAA,wBAAwB,OAAA;AAY1B,2DAQ8B;AAN5B,+HAAA,yBAAyB,OAAA;AACzB,6HAAA,uBAAuB,OAAA;AAOzB,mBAAmB;AACnB,2CAAyB;AAEzB,oCAAoC;AACpC,0CAAwB"}
@@ -1,3 +1,4 @@
1
+ import type { IWorkSummary } from '../IWorkSummary';
1
2
  /**
2
3
  * Result from capturing session work.
3
4
  * Contains facts extracted from the session transcript.
@@ -6,6 +7,8 @@ export interface ICapturedWork {
6
7
  readonly facts: readonly string[];
7
8
  readonly complexity: 'low' | 'medium' | 'high';
8
9
  readonly summary?: string;
10
+ /** Optional parsed work summary with heuristic detections */
11
+ readonly work?: IWorkSummary;
9
12
  }
10
13
  /**
11
14
  * Create an empty captured work result.
@@ -1 +1 @@
1
- {"version":3,"file":"ICapturedWork.d.ts","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/types/ICapturedWork.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC/C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,aAAa,CAMjD"}
1
+ {"version":3,"file":"ICapturedWork.d.ts","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/types/ICapturedWork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC/C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,aAAa,CAMjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ICapturedWork.js","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/types/ICapturedWork.ts"],"names":[],"mappings":";;AAaA,8CAMC;AATD;;GAEG;AACH,SAAgB,iBAAiB;IAC/B,OAAO;QACL,KAAK,EAAE,EAAE;QACT,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,SAAS;KACnB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ICapturedWork.js","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/types/ICapturedWork.ts"],"names":[],"mappings":";;AAiBA,8CAMC;AATD;;GAEG;AACH,SAAgB,iBAAiB;IAC/B,OAAO;QACL,KAAK,EAAE,EAAE;QACT,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,SAAS;KACnB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Memory Lifecycle Types
3
+ *
4
+ * Defines lifecycle tiers for memory facts, controlling retention and expiration.
5
+ *
6
+ * Tiers:
7
+ * - permanent: Never expires (e.g., project conventions, key decisions)
8
+ * - project: Lives for the project lifetime, no automatic expiration
9
+ * - session: Expires after 24h (e.g., session-captured work)
10
+ * - ephemeral: Expires after 1h (e.g., user prompts, transient context)
11
+ */
12
+ /**
13
+ * Memory lifecycle tier.
14
+ */
15
+ export type MemoryLifecycle = 'permanent' | 'project' | 'session' | 'ephemeral';
16
+ /**
17
+ * All valid lifecycle values.
18
+ */
19
+ export declare const LIFECYCLE_VALUES: readonly MemoryLifecycle[];
20
+ /**
21
+ * Default TTL (in milliseconds) for each lifecycle tier.
22
+ * null means no automatic expiration.
23
+ */
24
+ export declare const LIFECYCLE_DEFAULTS: Readonly<Record<MemoryLifecycle, number | null>>;
25
+ /**
26
+ * Resolve a lifecycle tier to its corresponding tag string.
27
+ *
28
+ * @param lifecycle - The lifecycle tier
29
+ * @returns Tag string, e.g. 'lifecycle:permanent'
30
+ */
31
+ export declare function resolveLifecycleTag(lifecycle: MemoryLifecycle): string;
32
+ /**
33
+ * Parse the lifecycle tier from a tag array.
34
+ * Looks for tags matching 'lifecycle:<tier>'.
35
+ *
36
+ * @param tags - Array of tags to search
37
+ * @returns The lifecycle tier found, or 'project' as default
38
+ */
39
+ export declare function parseLifecycleTag(tags: readonly string[]): MemoryLifecycle;
40
+ /**
41
+ * Check if a string is a valid MemoryLifecycle value.
42
+ *
43
+ * @param value - The string to check
44
+ * @returns true if valid lifecycle tier
45
+ */
46
+ export declare function isValidLifecycle(value: string): value is MemoryLifecycle;
47
+ /**
48
+ * Compute the expiration date for a lifecycle tier.
49
+ *
50
+ * @param lifecycle - The lifecycle tier
51
+ * @param ttlMs - Optional custom TTL override in milliseconds
52
+ * @param now - Optional reference time (defaults to current time)
53
+ * @returns Expiration Date, or null if the tier never expires
54
+ */
55
+ export declare function computeExpiresAt(lifecycle: MemoryLifecycle, ttlMs?: number, now?: Date): Date | null;
56
+ //# sourceMappingURL=IMemoryLifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMemoryLifecycle.d.ts","sourceRoot":"","sources":["../../../../../src/lib/domain/interfaces/types/IMemoryLifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,eAAe,EAK7C,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC,CAK/E,CAAC;AAOF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,CAEtE;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,eAAe,CAU1E;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAExE;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,eAAe,EAC1B,KAAK,CAAC,EAAE,MAAM,EACd,GAAG,CAAC,EAAE,IAAI,GACT,IAAI,GAAG,IAAI,CAOb"}