agentic-qe 2.3.4 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/README.md +1 -1
  3. package/dist/agents/ApiContractValidatorAgent.d.ts +5 -0
  4. package/dist/agents/ApiContractValidatorAgent.d.ts.map +1 -1
  5. package/dist/agents/ApiContractValidatorAgent.js +41 -0
  6. package/dist/agents/ApiContractValidatorAgent.js.map +1 -1
  7. package/dist/agents/BaseAgent.d.ts +56 -49
  8. package/dist/agents/BaseAgent.d.ts.map +1 -1
  9. package/dist/agents/BaseAgent.js +208 -604
  10. package/dist/agents/BaseAgent.js.map +1 -1
  11. package/dist/agents/CodeComplexityAnalyzerAgent.d.ts +5 -0
  12. package/dist/agents/CodeComplexityAnalyzerAgent.d.ts.map +1 -1
  13. package/dist/agents/CodeComplexityAnalyzerAgent.js +47 -0
  14. package/dist/agents/CodeComplexityAnalyzerAgent.js.map +1 -1
  15. package/dist/agents/CoverageAnalyzerAgent.d.ts +26 -0
  16. package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -1
  17. package/dist/agents/CoverageAnalyzerAgent.js +149 -1
  18. package/dist/agents/CoverageAnalyzerAgent.js.map +1 -1
  19. package/dist/agents/DeploymentReadinessAgent.d.ts +5 -0
  20. package/dist/agents/DeploymentReadinessAgent.d.ts.map +1 -1
  21. package/dist/agents/DeploymentReadinessAgent.js +41 -0
  22. package/dist/agents/DeploymentReadinessAgent.js.map +1 -1
  23. package/dist/agents/FlakyTestHunterAgent.d.ts +7 -2
  24. package/dist/agents/FlakyTestHunterAgent.d.ts.map +1 -1
  25. package/dist/agents/FlakyTestHunterAgent.js +48 -104
  26. package/dist/agents/FlakyTestHunterAgent.js.map +1 -1
  27. package/dist/agents/FleetCommanderAgent.d.ts +5 -0
  28. package/dist/agents/FleetCommanderAgent.d.ts.map +1 -1
  29. package/dist/agents/FleetCommanderAgent.js +51 -0
  30. package/dist/agents/FleetCommanderAgent.js.map +1 -1
  31. package/dist/agents/PerformanceTesterAgent.d.ts +5 -0
  32. package/dist/agents/PerformanceTesterAgent.d.ts.map +1 -1
  33. package/dist/agents/PerformanceTesterAgent.js +44 -0
  34. package/dist/agents/PerformanceTesterAgent.js.map +1 -1
  35. package/dist/agents/ProductionIntelligenceAgent.d.ts +5 -0
  36. package/dist/agents/ProductionIntelligenceAgent.d.ts.map +1 -1
  37. package/dist/agents/ProductionIntelligenceAgent.js +46 -0
  38. package/dist/agents/ProductionIntelligenceAgent.js.map +1 -1
  39. package/dist/agents/QXPartnerAgent.js +52 -0
  40. package/dist/agents/QXPartnerAgent.js.map +1 -1
  41. package/dist/agents/QualityAnalyzerAgent.d.ts +5 -0
  42. package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -1
  43. package/dist/agents/QualityAnalyzerAgent.js +45 -0
  44. package/dist/agents/QualityAnalyzerAgent.js.map +1 -1
  45. package/dist/agents/QualityGateAgent.d.ts +40 -0
  46. package/dist/agents/QualityGateAgent.d.ts.map +1 -1
  47. package/dist/agents/QualityGateAgent.js +227 -1
  48. package/dist/agents/QualityGateAgent.js.map +1 -1
  49. package/dist/agents/RegressionRiskAnalyzerAgent.d.ts +5 -0
  50. package/dist/agents/RegressionRiskAnalyzerAgent.d.ts.map +1 -1
  51. package/dist/agents/RegressionRiskAnalyzerAgent.js +46 -0
  52. package/dist/agents/RegressionRiskAnalyzerAgent.js.map +1 -1
  53. package/dist/agents/RequirementsValidatorAgent.d.ts +5 -0
  54. package/dist/agents/RequirementsValidatorAgent.d.ts.map +1 -1
  55. package/dist/agents/RequirementsValidatorAgent.js +42 -0
  56. package/dist/agents/RequirementsValidatorAgent.js.map +1 -1
  57. package/dist/agents/SecurityScannerAgent.d.ts +5 -0
  58. package/dist/agents/SecurityScannerAgent.d.ts.map +1 -1
  59. package/dist/agents/SecurityScannerAgent.js +39 -0
  60. package/dist/agents/SecurityScannerAgent.js.map +1 -1
  61. package/dist/agents/TestDataArchitectAgent.d.ts +5 -0
  62. package/dist/agents/TestDataArchitectAgent.d.ts.map +1 -1
  63. package/dist/agents/TestDataArchitectAgent.js +46 -0
  64. package/dist/agents/TestDataArchitectAgent.js.map +1 -1
  65. package/dist/agents/TestExecutorAgent.d.ts +6 -1
  66. package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
  67. package/dist/agents/TestExecutorAgent.js +52 -46
  68. package/dist/agents/TestExecutorAgent.js.map +1 -1
  69. package/dist/agents/TestGeneratorAgent.d.ts +5 -0
  70. package/dist/agents/TestGeneratorAgent.d.ts.map +1 -1
  71. package/dist/agents/TestGeneratorAgent.js +51 -35
  72. package/dist/agents/TestGeneratorAgent.js.map +1 -1
  73. package/dist/agents/adapters/CoordinatorAdapter.d.ts +47 -0
  74. package/dist/agents/adapters/CoordinatorAdapter.d.ts.map +1 -0
  75. package/dist/agents/adapters/CoordinatorAdapter.js +266 -0
  76. package/dist/agents/adapters/CoordinatorAdapter.js.map +1 -0
  77. package/dist/agents/adapters/LearningEngineAdapter.d.ts +45 -0
  78. package/dist/agents/adapters/LearningEngineAdapter.d.ts.map +1 -0
  79. package/dist/agents/adapters/LearningEngineAdapter.js +279 -0
  80. package/dist/agents/adapters/LearningEngineAdapter.js.map +1 -0
  81. package/dist/agents/adapters/LifecycleManagerAdapter.d.ts +45 -0
  82. package/dist/agents/adapters/LifecycleManagerAdapter.d.ts.map +1 -0
  83. package/dist/agents/adapters/LifecycleManagerAdapter.js +128 -0
  84. package/dist/agents/adapters/LifecycleManagerAdapter.js.map +1 -0
  85. package/dist/agents/adapters/MemoryServiceAdapter.d.ts +96 -0
  86. package/dist/agents/adapters/MemoryServiceAdapter.d.ts.map +1 -0
  87. package/dist/agents/adapters/MemoryServiceAdapter.js +266 -0
  88. package/dist/agents/adapters/MemoryServiceAdapter.js.map +1 -0
  89. package/dist/agents/adapters/index.d.ts +14 -0
  90. package/dist/agents/adapters/index.d.ts.map +1 -0
  91. package/dist/agents/adapters/index.js +25 -0
  92. package/dist/agents/adapters/index.js.map +1 -0
  93. package/dist/agents/lifecycle/AgentLifecycleManager.d.ts.map +1 -1
  94. package/dist/agents/lifecycle/AgentLifecycleManager.js +17 -8
  95. package/dist/agents/lifecycle/AgentLifecycleManager.js.map +1 -1
  96. package/dist/cli/index.js +68 -0
  97. package/dist/cli/index.js.map +1 -1
  98. package/dist/core/cache/BinaryCacheBuilder.d.ts +84 -0
  99. package/dist/core/cache/BinaryCacheBuilder.d.ts.map +1 -0
  100. package/dist/core/cache/BinaryCacheBuilder.js +225 -0
  101. package/dist/core/cache/BinaryCacheBuilder.js.map +1 -0
  102. package/dist/core/cache/BinaryCacheManager.d.ts +142 -0
  103. package/dist/core/cache/BinaryCacheManager.d.ts.map +1 -0
  104. package/dist/core/cache/BinaryCacheManager.js +354 -0
  105. package/dist/core/cache/BinaryCacheManager.js.map +1 -0
  106. package/dist/core/cache/BinaryCacheReader.d.ts +129 -0
  107. package/dist/core/cache/BinaryCacheReader.d.ts.map +1 -0
  108. package/dist/core/cache/BinaryCacheReader.js +243 -0
  109. package/dist/core/cache/BinaryCacheReader.js.map +1 -0
  110. package/dist/core/cache/BinaryMetadataCache.d.ts +533 -0
  111. package/dist/core/cache/BinaryMetadataCache.d.ts.map +1 -0
  112. package/dist/core/cache/BinaryMetadataCache.js +142 -0
  113. package/dist/core/cache/BinaryMetadataCache.js.map +1 -0
  114. package/dist/core/cache/CacheInvalidator.d.ts +103 -0
  115. package/dist/core/cache/CacheInvalidator.d.ts.map +1 -0
  116. package/dist/core/cache/CacheInvalidator.js +152 -0
  117. package/dist/core/cache/CacheInvalidator.js.map +1 -0
  118. package/dist/core/cache/CacheValidator.d.ts +69 -0
  119. package/dist/core/cache/CacheValidator.d.ts.map +1 -0
  120. package/dist/core/cache/CacheValidator.js +189 -0
  121. package/dist/core/cache/CacheValidator.js.map +1 -0
  122. package/dist/core/cache/MessagePackSerializer.d.ts +163 -0
  123. package/dist/core/cache/MessagePackSerializer.d.ts.map +1 -0
  124. package/dist/core/cache/MessagePackSerializer.js +274 -0
  125. package/dist/core/cache/MessagePackSerializer.js.map +1 -0
  126. package/dist/core/cache/index.d.ts +58 -0
  127. package/dist/core/cache/index.d.ts.map +1 -0
  128. package/dist/core/cache/index.js +102 -0
  129. package/dist/core/cache/index.js.map +1 -0
  130. package/dist/core/index.d.ts +2 -0
  131. package/dist/core/index.d.ts.map +1 -1
  132. package/dist/core/index.js +18 -0
  133. package/dist/core/index.js.map +1 -1
  134. package/dist/core/memory/HNSWVectorMemory.js +1 -1
  135. package/dist/core/memory/PatternStoreFactory.d.ts +28 -0
  136. package/dist/core/memory/PatternStoreFactory.d.ts.map +1 -1
  137. package/dist/core/memory/PatternStoreFactory.js +68 -3
  138. package/dist/core/memory/PatternStoreFactory.js.map +1 -1
  139. package/dist/core/platform/FileOperations.d.ts +124 -0
  140. package/dist/core/platform/FileOperations.d.ts.map +1 -0
  141. package/dist/core/platform/FileOperations.js +371 -0
  142. package/dist/core/platform/FileOperations.js.map +1 -0
  143. package/dist/core/platform/PlatformDetector.d.ts +53 -0
  144. package/dist/core/platform/PlatformDetector.d.ts.map +1 -0
  145. package/dist/core/platform/PlatformDetector.js +251 -0
  146. package/dist/core/platform/PlatformDetector.js.map +1 -0
  147. package/dist/core/platform/index.d.ts +12 -0
  148. package/dist/core/platform/index.d.ts.map +1 -0
  149. package/dist/core/platform/index.js +28 -0
  150. package/dist/core/platform/index.js.map +1 -0
  151. package/dist/core/strategies/AcceleratedLearningStrategy.d.ts +74 -0
  152. package/dist/core/strategies/AcceleratedLearningStrategy.d.ts.map +1 -0
  153. package/dist/core/strategies/AcceleratedLearningStrategy.js +200 -0
  154. package/dist/core/strategies/AcceleratedLearningStrategy.js.map +1 -0
  155. package/dist/core/strategies/AgentCoordinationStrategy.d.ts +157 -0
  156. package/dist/core/strategies/AgentCoordinationStrategy.d.ts.map +1 -0
  157. package/dist/core/strategies/AgentCoordinationStrategy.js +12 -0
  158. package/dist/core/strategies/AgentCoordinationStrategy.js.map +1 -0
  159. package/dist/core/strategies/AgentLearningStrategy.d.ts +200 -0
  160. package/dist/core/strategies/AgentLearningStrategy.d.ts.map +1 -0
  161. package/dist/core/strategies/AgentLearningStrategy.js +13 -0
  162. package/dist/core/strategies/AgentLearningStrategy.js.map +1 -0
  163. package/dist/core/strategies/AgentLifecycleStrategy.d.ts +116 -0
  164. package/dist/core/strategies/AgentLifecycleStrategy.d.ts.map +1 -0
  165. package/dist/core/strategies/AgentLifecycleStrategy.js +12 -0
  166. package/dist/core/strategies/AgentLifecycleStrategy.js.map +1 -0
  167. package/dist/core/strategies/AgentMemoryStrategy.d.ts +154 -0
  168. package/dist/core/strategies/AgentMemoryStrategy.d.ts.map +1 -0
  169. package/dist/core/strategies/AgentMemoryStrategy.js +13 -0
  170. package/dist/core/strategies/AgentMemoryStrategy.js.map +1 -0
  171. package/dist/core/strategies/DefaultCoordinationStrategy.d.ts +105 -0
  172. package/dist/core/strategies/DefaultCoordinationStrategy.d.ts.map +1 -0
  173. package/dist/core/strategies/DefaultCoordinationStrategy.js +332 -0
  174. package/dist/core/strategies/DefaultCoordinationStrategy.js.map +1 -0
  175. package/dist/core/strategies/DefaultLearningStrategy.d.ts +120 -0
  176. package/dist/core/strategies/DefaultLearningStrategy.d.ts.map +1 -0
  177. package/dist/core/strategies/DefaultLearningStrategy.js +365 -0
  178. package/dist/core/strategies/DefaultLearningStrategy.js.map +1 -0
  179. package/dist/core/strategies/DefaultLifecycleStrategy.d.ts +129 -0
  180. package/dist/core/strategies/DefaultLifecycleStrategy.d.ts.map +1 -0
  181. package/dist/core/strategies/DefaultLifecycleStrategy.js +297 -0
  182. package/dist/core/strategies/DefaultLifecycleStrategy.js.map +1 -0
  183. package/dist/core/strategies/DefaultMemoryStrategy.d.ts +91 -0
  184. package/dist/core/strategies/DefaultMemoryStrategy.d.ts.map +1 -0
  185. package/dist/core/strategies/DefaultMemoryStrategy.js +257 -0
  186. package/dist/core/strategies/DefaultMemoryStrategy.js.map +1 -0
  187. package/dist/core/strategies/DistributedMemoryStrategy.d.ts +85 -0
  188. package/dist/core/strategies/DistributedMemoryStrategy.d.ts.map +1 -0
  189. package/dist/core/strategies/DistributedMemoryStrategy.js +126 -0
  190. package/dist/core/strategies/DistributedMemoryStrategy.js.map +1 -0
  191. package/dist/core/strategies/index.d.ts +95 -0
  192. package/dist/core/strategies/index.d.ts.map +1 -0
  193. package/dist/core/strategies/index.js +65 -0
  194. package/dist/core/strategies/index.js.map +1 -0
  195. package/dist/learning/PerformanceOptimizer.js +2 -2
  196. package/dist/learning/PerformanceOptimizer.js.map +1 -1
  197. package/dist/learning/capture/ExperienceExtractor.d.ts +219 -0
  198. package/dist/learning/capture/ExperienceExtractor.d.ts.map +1 -0
  199. package/dist/learning/capture/ExperienceExtractor.js +536 -0
  200. package/dist/learning/capture/ExperienceExtractor.js.map +1 -0
  201. package/dist/learning/capture/ExperienceStore.d.ts +196 -0
  202. package/dist/learning/capture/ExperienceStore.d.ts.map +1 -0
  203. package/dist/learning/capture/ExperienceStore.js +453 -0
  204. package/dist/learning/capture/ExperienceStore.js.map +1 -0
  205. package/dist/learning/scheduler/SleepScheduler.d.ts +2 -0
  206. package/dist/learning/scheduler/SleepScheduler.d.ts.map +1 -1
  207. package/dist/learning/scheduler/SleepScheduler.js +2 -0
  208. package/dist/learning/scheduler/SleepScheduler.js.map +1 -1
  209. package/dist/learning/synthesis/ClusteringEngine.d.ts +122 -0
  210. package/dist/learning/synthesis/ClusteringEngine.d.ts.map +1 -0
  211. package/dist/learning/synthesis/ClusteringEngine.js +356 -0
  212. package/dist/learning/synthesis/ClusteringEngine.js.map +1 -0
  213. package/dist/learning/transfer/TransferRegistry.d.ts +245 -0
  214. package/dist/learning/transfer/TransferRegistry.d.ts.map +1 -0
  215. package/dist/learning/transfer/TransferRegistry.js +410 -0
  216. package/dist/learning/transfer/TransferRegistry.js.map +1 -0
  217. package/dist/mcp/handlers/base-handler.d.ts +28 -1
  218. package/dist/mcp/handlers/base-handler.d.ts.map +1 -1
  219. package/dist/mcp/handlers/base-handler.js +41 -0
  220. package/dist/mcp/handlers/base-handler.js.map +1 -1
  221. package/dist/mcp/handlers/task-orchestrate.d.ts +11 -0
  222. package/dist/mcp/handlers/task-orchestrate.d.ts.map +1 -1
  223. package/dist/mcp/handlers/task-orchestrate.js +297 -4
  224. package/dist/mcp/handlers/task-orchestrate.js.map +1 -1
  225. package/dist/mcp/server-instructions.d.ts +1 -1
  226. package/dist/mcp/server-instructions.js +1 -1
  227. package/dist/mcp/services/AgentRegistry.d.ts +6 -1
  228. package/dist/mcp/services/AgentRegistry.d.ts.map +1 -1
  229. package/dist/mcp/services/AgentRegistry.js +34 -3
  230. package/dist/mcp/services/AgentRegistry.js.map +1 -1
  231. package/dist/output/AIActionSuggester.d.ts +98 -0
  232. package/dist/output/AIActionSuggester.d.ts.map +1 -0
  233. package/dist/output/AIActionSuggester.js +499 -0
  234. package/dist/output/AIActionSuggester.js.map +1 -0
  235. package/dist/output/CLIOutputHelper.d.ts +169 -0
  236. package/dist/output/CLIOutputHelper.d.ts.map +1 -0
  237. package/dist/output/CLIOutputHelper.js +320 -0
  238. package/dist/output/CLIOutputHelper.js.map +1 -0
  239. package/dist/output/OutputFormatter.d.ts +764 -0
  240. package/dist/output/OutputFormatter.d.ts.map +1 -0
  241. package/dist/output/OutputFormatter.js +125 -0
  242. package/dist/output/OutputFormatter.js.map +1 -0
  243. package/dist/output/OutputFormatterImpl.d.ts +131 -0
  244. package/dist/output/OutputFormatterImpl.d.ts.map +1 -0
  245. package/dist/output/OutputFormatterImpl.js +556 -0
  246. package/dist/output/OutputFormatterImpl.js.map +1 -0
  247. package/dist/output/examples.d.ts +38 -0
  248. package/dist/output/examples.d.ts.map +1 -0
  249. package/dist/output/examples.js +503 -0
  250. package/dist/output/examples.js.map +1 -0
  251. package/dist/output/index.d.ts +16 -0
  252. package/dist/output/index.d.ts.map +1 -0
  253. package/dist/output/index.js +58 -0
  254. package/dist/output/index.js.map +1 -0
  255. package/package.json +4 -1
@@ -0,0 +1,503 @@
1
+ "use strict";
2
+ /**
3
+ * AI Output Examples
4
+ *
5
+ * Example usage of the AI output formatting system.
6
+ * These examples demonstrate how to use the output formatter in various scenarios.
7
+ *
8
+ * @module output/examples
9
+ * @version 1.0.0
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.exampleTestResults = exampleTestResults;
13
+ exports.exampleCoverageReport = exampleCoverageReport;
14
+ exports.exampleAgentStatus = exampleAgentStatus;
15
+ exports.exampleQualityMetrics = exampleQualityMetrics;
16
+ exports.exampleStreamingOutput = exampleStreamingOutput;
17
+ exports.exampleEnvironmentDetection = exampleEnvironmentDetection;
18
+ exports.runAllExamples = runAllExamples;
19
+ const index_1 = require("./index");
20
+ // ==================== Example 1: Test Results ====================
21
+ /**
22
+ * Example: Output test results
23
+ */
24
+ function exampleTestResults() {
25
+ const testResults = {
26
+ summary: {
27
+ total: 150,
28
+ passed: 145,
29
+ failed: 3,
30
+ skipped: 2,
31
+ flaky: 1,
32
+ duration: 12543,
33
+ passRate: 96.67,
34
+ failureRate: 2.0,
35
+ flakyRate: 0.67
36
+ },
37
+ suites: [
38
+ {
39
+ name: 'UserService',
40
+ file: 'src/services/UserService.test.ts',
41
+ status: 'passed',
42
+ total: 25,
43
+ passed: 25,
44
+ failed: 0,
45
+ skipped: 0,
46
+ duration: 1234
47
+ },
48
+ {
49
+ name: 'ApiController',
50
+ file: 'src/controllers/ApiController.test.ts',
51
+ status: 'failed',
52
+ total: 30,
53
+ passed: 28,
54
+ failed: 2,
55
+ skipped: 0,
56
+ duration: 2345
57
+ }
58
+ ],
59
+ failures: [
60
+ {
61
+ testName: 'should handle concurrent requests',
62
+ suiteName: 'ApiController',
63
+ file: 'src/controllers/ApiController.test.ts',
64
+ line: 45,
65
+ error: {
66
+ message: 'Timeout: Expected response within 5000ms',
67
+ stack: 'Error: Timeout...\n at ApiController.test.ts:45:10',
68
+ type: 'TimeoutError'
69
+ },
70
+ duration: 5002,
71
+ retries: 0,
72
+ lastRun: '2025-12-12T10:30:00.000Z'
73
+ },
74
+ {
75
+ testName: 'should rollback on error',
76
+ suiteName: 'DatabaseService',
77
+ file: 'src/services/DatabaseService.test.ts',
78
+ line: 67,
79
+ error: {
80
+ message: 'Expected database to rollback transaction',
81
+ stack: 'Error: Expected database...\n at DatabaseService.test.ts:67:10',
82
+ type: 'AssertionError'
83
+ },
84
+ duration: 234,
85
+ retries: 0,
86
+ lastRun: '2025-12-12T10:30:05.000Z'
87
+ },
88
+ {
89
+ testName: 'should invalidate stale entries',
90
+ suiteName: 'CacheService',
91
+ file: 'src/services/CacheService.test.ts',
92
+ line: 89,
93
+ error: {
94
+ message: 'Cache entry still present after TTL expired',
95
+ stack: 'Error: Cache entry...\n at CacheService.test.ts:89:10',
96
+ type: 'AssertionError'
97
+ },
98
+ duration: 1005,
99
+ retries: 0,
100
+ lastRun: '2025-12-12T10:30:10.000Z'
101
+ }
102
+ ],
103
+ flaky: [
104
+ {
105
+ testName: 'should retry on network failure',
106
+ suiteName: 'NetworkService',
107
+ file: 'src/services/NetworkService.test.ts',
108
+ line: 67,
109
+ flakinessScore: 0.42,
110
+ failureRate: 0.15,
111
+ totalRuns: 100,
112
+ recentFailures: 3,
113
+ pattern: 'intermittent_timeout'
114
+ }
115
+ ],
116
+ coverage: {
117
+ overall: 87.5,
118
+ lines: {
119
+ total: 1000,
120
+ covered: 875,
121
+ uncovered: 125,
122
+ percentage: 87.5
123
+ },
124
+ branches: {
125
+ total: 200,
126
+ covered: 170,
127
+ uncovered: 30,
128
+ percentage: 85.0
129
+ },
130
+ functions: {
131
+ total: 150,
132
+ covered: 135,
133
+ uncovered: 15,
134
+ percentage: 90.0
135
+ },
136
+ statements: {
137
+ total: 950,
138
+ covered: 830,
139
+ uncovered: 120,
140
+ percentage: 87.37
141
+ }
142
+ }
143
+ };
144
+ // Output with auto-detection
145
+ (0, index_1.outputTestResults)(testResults);
146
+ // Output with explicit options
147
+ (0, index_1.outputTestResults)(testResults, {
148
+ agentVersion: '2.3.5',
149
+ framework: 'jest',
150
+ environment: 'development',
151
+ startTime: Date.now() - 12543
152
+ });
153
+ }
154
+ // ==================== Example 2: Coverage Report ====================
155
+ /**
156
+ * Example: Output coverage report
157
+ */
158
+ function exampleCoverageReport() {
159
+ const coverageReport = {
160
+ summary: {
161
+ overall: 87.5,
162
+ lines: {
163
+ total: 1000,
164
+ covered: 875,
165
+ uncovered: 125,
166
+ percentage: 87.5
167
+ },
168
+ branches: {
169
+ total: 200,
170
+ covered: 170,
171
+ uncovered: 30,
172
+ percentage: 85.0
173
+ },
174
+ functions: {
175
+ total: 150,
176
+ covered: 135,
177
+ uncovered: 15,
178
+ percentage: 90.0
179
+ },
180
+ statements: {
181
+ total: 950,
182
+ covered: 830,
183
+ uncovered: 120,
184
+ percentage: 87.37
185
+ }
186
+ },
187
+ trend: {
188
+ direction: 'improving',
189
+ change: 2.5,
190
+ previousCoverage: 85.0,
191
+ currentCoverage: 87.5
192
+ },
193
+ gaps: [
194
+ {
195
+ file: 'src/services/PaymentService.ts',
196
+ type: 'critical_path',
197
+ priority: 'critical',
198
+ coverage: {
199
+ lines: 45.5,
200
+ branches: 30.0,
201
+ functions: 50.0
202
+ },
203
+ uncoveredLines: [23, 24, 25, 45, 46, 67, 68, 89, 90],
204
+ uncoveredBranches: [
205
+ { line: 23, branch: 'else', condition: 'payment.amount > 1000' },
206
+ { line: 45, branch: 'catch', condition: 'error handling' }
207
+ ],
208
+ impact: 'high',
209
+ reason: 'Payment processing is business-critical with financial impact'
210
+ },
211
+ {
212
+ file: 'src/services/AuthService.ts',
213
+ type: 'error_handling',
214
+ priority: 'high',
215
+ coverage: {
216
+ lines: 65.0,
217
+ branches: 50.0,
218
+ functions: 70.0
219
+ },
220
+ uncoveredLines: [12, 13, 45, 46],
221
+ uncoveredBranches: [
222
+ { line: 12, branch: 'catch', condition: 'error handling' }
223
+ ],
224
+ impact: 'high',
225
+ reason: 'Authentication error handling not tested'
226
+ }
227
+ ],
228
+ files: [
229
+ {
230
+ path: 'src/services/UserService.ts',
231
+ lines: {
232
+ total: 100,
233
+ covered: 95,
234
+ uncovered: 5,
235
+ percentage: 95.0
236
+ },
237
+ branches: {
238
+ total: 20,
239
+ covered: 18,
240
+ uncovered: 2,
241
+ percentage: 90.0
242
+ },
243
+ functions: {
244
+ total: 15,
245
+ covered: 15,
246
+ uncovered: 0,
247
+ percentage: 100.0
248
+ },
249
+ uncoveredLines: [23, 45, 67, 89, 90],
250
+ uncoveredBranches: [
251
+ { line: 23, branch: 'else' },
252
+ { line: 45, branch: 'catch' }
253
+ ]
254
+ }
255
+ ]
256
+ };
257
+ (0, index_1.outputCoverageReport)(coverageReport);
258
+ }
259
+ // ==================== Example 3: Agent Status ====================
260
+ /**
261
+ * Example: Output agent status
262
+ */
263
+ function exampleAgentStatus() {
264
+ const agentStatus = {
265
+ agent: {
266
+ id: 'qe-test-generator',
267
+ name: 'Test Generator Agent',
268
+ version: '2.3.5',
269
+ status: 'active',
270
+ health: 'healthy',
271
+ capabilities: [
272
+ 'unit_test_generation',
273
+ 'integration_test_generation',
274
+ 'tdd_london_style',
275
+ 'tdd_chicago_style',
276
+ 'mock_generation'
277
+ ],
278
+ stats: {
279
+ totalExecutions: 1523,
280
+ successRate: 97.5,
281
+ averageDuration: 2345,
282
+ testsGenerated: 12456,
283
+ lastExecution: '2025-12-12T09:15:00.000Z'
284
+ },
285
+ learning: {
286
+ patternsLearned: 234,
287
+ confidenceScore: 0.89,
288
+ trainingIterations: 1523,
289
+ lastTraining: '2025-12-12T08:00:00.000Z'
290
+ }
291
+ },
292
+ dependencies: {
293
+ required: [
294
+ {
295
+ service: 'agentdb',
296
+ status: 'healthy',
297
+ version: '1.2.3',
298
+ latency: 5
299
+ },
300
+ {
301
+ service: 'vectordb',
302
+ status: 'healthy',
303
+ version: '0.5.0',
304
+ latency: 12
305
+ }
306
+ ],
307
+ optional: [
308
+ {
309
+ service: 'llm_provider',
310
+ status: 'healthy',
311
+ provider: 'anthropic',
312
+ model: 'claude-opus-4.5'
313
+ }
314
+ ]
315
+ },
316
+ configuration: {
317
+ maxConcurrency: 4,
318
+ timeout: 30000,
319
+ retryAttempts: 3,
320
+ learningEnabled: true,
321
+ memoryPersistence: true
322
+ }
323
+ };
324
+ (0, index_1.outputAgentStatus)(agentStatus);
325
+ }
326
+ // ==================== Example 4: Quality Metrics ====================
327
+ /**
328
+ * Example: Output quality metrics
329
+ */
330
+ function exampleQualityMetrics() {
331
+ const qualityMetrics = {
332
+ overallScore: 78.5,
333
+ grade: 'B',
334
+ dimensions: {
335
+ testCoverage: {
336
+ score: 87.5,
337
+ weight: 0.25,
338
+ status: 'good'
339
+ },
340
+ codeQuality: {
341
+ score: 75.0,
342
+ weight: 0.25,
343
+ status: 'fair'
344
+ },
345
+ security: {
346
+ score: 92.0,
347
+ weight: 0.2,
348
+ status: 'excellent'
349
+ },
350
+ performance: {
351
+ score: 68.0,
352
+ weight: 0.15,
353
+ status: 'needs_improvement'
354
+ },
355
+ maintainability: {
356
+ score: 72.0,
357
+ weight: 0.15,
358
+ status: 'fair'
359
+ }
360
+ },
361
+ qualityGates: {
362
+ passed: 7,
363
+ failed: 2,
364
+ total: 9,
365
+ gates: [
366
+ {
367
+ name: 'minimum_coverage',
368
+ status: 'passed',
369
+ actualValue: 87.5,
370
+ threshold: 80.0,
371
+ operator: 'gte'
372
+ },
373
+ {
374
+ name: 'max_complexity',
375
+ status: 'failed',
376
+ actualValue: 25,
377
+ threshold: 15,
378
+ operator: 'lte',
379
+ message: 'Cyclomatic complexity exceeds threshold in 3 files'
380
+ },
381
+ {
382
+ name: 'no_critical_vulnerabilities',
383
+ status: 'passed',
384
+ actualValue: 0,
385
+ threshold: 0,
386
+ operator: 'eq'
387
+ }
388
+ ]
389
+ },
390
+ codeSmells: {
391
+ total: 23,
392
+ byType: {
393
+ duplicate_code: 8,
394
+ long_method: 7,
395
+ large_class: 4,
396
+ long_parameter_list: 4
397
+ },
398
+ criticalSmells: [
399
+ {
400
+ type: 'long_method',
401
+ file: 'src/services/OrderProcessor.ts',
402
+ line: 45,
403
+ severity: 'major',
404
+ message: 'Method processOrder has 150 lines (threshold: 50)'
405
+ }
406
+ ]
407
+ },
408
+ technicalDebt: {
409
+ total: 45,
410
+ unit: 'hours',
411
+ byCategory: {
412
+ code_smells: 20,
413
+ complexity: 15,
414
+ duplications: 10
415
+ }
416
+ }
417
+ };
418
+ (0, index_1.outputQualityMetrics)(qualityMetrics);
419
+ }
420
+ // ==================== Example 5: Streaming Output ====================
421
+ /**
422
+ * Example: Streaming test execution
423
+ */
424
+ async function exampleStreamingOutput() {
425
+ const executionId = 'exec_test_20251212_103000';
426
+ const stream = (0, index_1.createStreamingOutput)(executionId, 'test_results');
427
+ // Start stream
428
+ stream.emitStart({
429
+ totalTests: 150,
430
+ estimatedDuration: 12000
431
+ });
432
+ // Simulate test execution with progress updates
433
+ for (let i = 1; i <= 6; i++) {
434
+ await sleep(2000);
435
+ stream.emitProgress({
436
+ completed: i * 25,
437
+ total: 150,
438
+ passed: i * 24,
439
+ failed: i === 6 ? 3 : 0,
440
+ elapsed: i * 2000
441
+ });
442
+ }
443
+ // Complete stream with full results
444
+ stream.emitComplete({
445
+ summary: {
446
+ total: 150,
447
+ passed: 145,
448
+ failed: 3,
449
+ skipped: 2,
450
+ duration: 12000,
451
+ passRate: 96.67,
452
+ failureRate: 2.0
453
+ }
454
+ });
455
+ }
456
+ // ==================== Example 6: Environment Detection ====================
457
+ /**
458
+ * Example: Detect environment and adjust output
459
+ */
460
+ function exampleEnvironmentDetection() {
461
+ const { isAIMode, isHumanMode, EnvironmentDetector } = require('./CLIOutputHelper');
462
+ console.log('Environment Detection:');
463
+ console.log(` AI Mode: ${isAIMode()}`);
464
+ console.log(` Human Mode: ${isHumanMode()}`);
465
+ console.log(` Claude Code: ${EnvironmentDetector.isClaudeCode()}`);
466
+ console.log(` Cursor AI: ${EnvironmentDetector.isCursorAI()}`);
467
+ console.log(` CI/CD: ${EnvironmentDetector.isCI()}`);
468
+ console.log(` CI Provider: ${EnvironmentDetector.detectCIProvider() || 'none'}`);
469
+ const ciInfo = EnvironmentDetector.getCIInfo();
470
+ if (ciInfo) {
471
+ console.log(` Build: ${ciInfo.provider} #${ciInfo.buildNumber}`);
472
+ if (ciInfo.buildUrl) {
473
+ console.log(` URL: ${ciInfo.buildUrl}`);
474
+ }
475
+ }
476
+ }
477
+ // ==================== Utility ====================
478
+ function sleep(ms) {
479
+ return new Promise(resolve => setTimeout(resolve, ms));
480
+ }
481
+ // ==================== Run Examples ====================
482
+ /**
483
+ * Run all examples
484
+ */
485
+ function runAllExamples() {
486
+ console.log('\n=== Example 1: Test Results ===');
487
+ exampleTestResults();
488
+ console.log('\n=== Example 2: Coverage Report ===');
489
+ exampleCoverageReport();
490
+ console.log('\n=== Example 3: Agent Status ===');
491
+ exampleAgentStatus();
492
+ console.log('\n=== Example 4: Quality Metrics ===');
493
+ exampleQualityMetrics();
494
+ console.log('\n=== Example 5: Streaming Output ===');
495
+ exampleStreamingOutput().catch(console.error);
496
+ console.log('\n=== Example 6: Environment Detection ===');
497
+ exampleEnvironmentDetection();
498
+ }
499
+ // Run examples if executed directly
500
+ if (require.main === module) {
501
+ runAllExamples();
502
+ }
503
+ //# sourceMappingURL=examples.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"examples.js","sourceRoot":"","sources":["../../src/output/examples.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAmBH,gDAmIC;AAOD,sDAqGC;AAOD,gDA+DC;AAOD,sDA0FC;AAOD,wDAmCC;AAOD,kEAkBC;AAaD,wCAkBC;AAzgBD,mCAUiB;AAEjB,oEAAoE;AAEpE;;GAEG;AACH,SAAgB,kBAAkB;IAChC,MAAM,WAAW,GAAoB;QACnC,OAAO,EAAE;YACP,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,GAAG;YACX,MAAM,EAAE,CAAC;YACT,OAAO,EAAE,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AE,CAAC,CAAC;QAClE,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;YACpB,OAAO,CAAC,GAAG,CAAC,UAAU,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;AACH,CAAC;AAED,oDAAoD;AAEpD,SAAS,KAAK,CAAC,EAAU;IACvB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,yDAAyD;AAEzD;;GAEG;AACH,SAAgB,cAAc;IAC5B,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IACjD,kBAAkB,EAAE,CAAC;IAErB,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;IACpD,qBAAqB,EAAE,CAAC;IAExB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IACjD,kBAAkB,EAAE,CAAC;IAErB,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;IACpD,qBAAqB,EAAE,CAAC;IAExB,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IACrD,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;IAC1D,2BAA2B,EAAE,CAAC;AAChC,CAAC;AAED,oCAAoC;AACpC,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,cAAc,EAAE,CAAC;AACnB,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Output Module - AI-Friendly Structured Output
3
+ *
4
+ * Exports all output-related types and utilities for structured AI output.
5
+ *
6
+ * @module output
7
+ * @version 1.0.0
8
+ */
9
+ export * from './OutputFormatter';
10
+ export * from './OutputFormatterImpl';
11
+ export * from './AIActionSuggester';
12
+ export { OutputMode, OutputType, ExecutionStatus, ActionPriority, StreamType, BaseAIOutput, ExecutionMetadata, ActionSuggestion, ActionAutomation, ActionImpact, OutputWarning, OutputError, TestResultsOutput, TestResultsData, TestSummary, TestSuite, TestFailure, FlakyTest, CoverageReportOutput, CoverageReportData, CoverageSummary, CoverageMetric, CoverageTrend, CoverageGap, FileCoverage, AgentStatusOutput, AgentStatusData, AgentInfo, AgentStats, LearningInfo, DependenciesStatus, Dependency, AgentConfiguration, QualityMetricsOutput, QualityMetricsData, QualityDimensions, QualityDimension, QualityGates, QualityGate, CodeSmells, CriticalSmell, TechnicalDebt, StreamStart, StreamProgress, StreamComplete, StreamError, OutputFormatter, OutputModeDetector, SCHEMA_VERSION, ActionTypes, PriorityWeights } from './OutputFormatter';
13
+ export { OutputFormatterImpl, outputFormatter } from './OutputFormatterImpl';
14
+ export { AIActionSuggester, actionSuggester } from './AIActionSuggester';
15
+ export { CLIOutputHelper, cliOutputHelper, StreamingOutputHelper, EnvironmentDetector, OutputOptions, outputTestResults, outputCoverageReport, outputAgentStatus, outputQualityMetrics, isAIMode, isHumanMode, createStreamingOutput } from './CLIOutputHelper';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/output/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EAEL,UAAU,EAGV,UAAU,EACV,eAAe,EACf,cAAc,EACd,UAAU,EAGV,YAAY,EACZ,iBAAiB,EAGjB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EAGZ,aAAa,EACb,WAAW,EAGX,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EAGT,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,aAAa,EACb,WAAW,EACX,YAAY,EAGZ,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAGlB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EAGb,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EAGX,eAAe,EAGf,kBAAkB,EAGlB,cAAc,EACd,WAAW,EACX,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGzE,OAAO,EACL,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,QAAQ,EACR,WAAW,EACX,qBAAqB,EACtB,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /**
3
+ * Output Module - AI-Friendly Structured Output
4
+ *
5
+ * Exports all output-related types and utilities for structured AI output.
6
+ *
7
+ * @module output
8
+ * @version 1.0.0
9
+ */
10
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ var desc = Object.getOwnPropertyDescriptor(m, k);
13
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
+ desc = { enumerable: true, get: function() { return m[k]; } };
15
+ }
16
+ Object.defineProperty(o, k2, desc);
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.createStreamingOutput = exports.isHumanMode = exports.isAIMode = exports.outputQualityMetrics = exports.outputAgentStatus = exports.outputCoverageReport = exports.outputTestResults = exports.EnvironmentDetector = exports.StreamingOutputHelper = exports.cliOutputHelper = exports.CLIOutputHelper = exports.actionSuggester = exports.AIActionSuggester = exports.outputFormatter = exports.OutputFormatterImpl = exports.PriorityWeights = exports.ActionTypes = exports.SCHEMA_VERSION = exports.OutputModeDetector = exports.OutputMode = void 0;
26
+ __exportStar(require("./OutputFormatter"), exports);
27
+ __exportStar(require("./OutputFormatterImpl"), exports);
28
+ __exportStar(require("./AIActionSuggester"), exports);
29
+ var OutputFormatter_1 = require("./OutputFormatter");
30
+ // Enums
31
+ Object.defineProperty(exports, "OutputMode", { enumerable: true, get: function () { return OutputFormatter_1.OutputMode; } });
32
+ // Utilities
33
+ Object.defineProperty(exports, "OutputModeDetector", { enumerable: true, get: function () { return OutputFormatter_1.OutputModeDetector; } });
34
+ // Constants
35
+ Object.defineProperty(exports, "SCHEMA_VERSION", { enumerable: true, get: function () { return OutputFormatter_1.SCHEMA_VERSION; } });
36
+ Object.defineProperty(exports, "ActionTypes", { enumerable: true, get: function () { return OutputFormatter_1.ActionTypes; } });
37
+ Object.defineProperty(exports, "PriorityWeights", { enumerable: true, get: function () { return OutputFormatter_1.PriorityWeights; } });
38
+ // Export implementation instances
39
+ var OutputFormatterImpl_1 = require("./OutputFormatterImpl");
40
+ Object.defineProperty(exports, "OutputFormatterImpl", { enumerable: true, get: function () { return OutputFormatterImpl_1.OutputFormatterImpl; } });
41
+ Object.defineProperty(exports, "outputFormatter", { enumerable: true, get: function () { return OutputFormatterImpl_1.outputFormatter; } });
42
+ var AIActionSuggester_1 = require("./AIActionSuggester");
43
+ Object.defineProperty(exports, "AIActionSuggester", { enumerable: true, get: function () { return AIActionSuggester_1.AIActionSuggester; } });
44
+ Object.defineProperty(exports, "actionSuggester", { enumerable: true, get: function () { return AIActionSuggester_1.actionSuggester; } });
45
+ // Export CLI helpers
46
+ var CLIOutputHelper_1 = require("./CLIOutputHelper");
47
+ Object.defineProperty(exports, "CLIOutputHelper", { enumerable: true, get: function () { return CLIOutputHelper_1.CLIOutputHelper; } });
48
+ Object.defineProperty(exports, "cliOutputHelper", { enumerable: true, get: function () { return CLIOutputHelper_1.cliOutputHelper; } });
49
+ Object.defineProperty(exports, "StreamingOutputHelper", { enumerable: true, get: function () { return CLIOutputHelper_1.StreamingOutputHelper; } });
50
+ Object.defineProperty(exports, "EnvironmentDetector", { enumerable: true, get: function () { return CLIOutputHelper_1.EnvironmentDetector; } });
51
+ Object.defineProperty(exports, "outputTestResults", { enumerable: true, get: function () { return CLIOutputHelper_1.outputTestResults; } });
52
+ Object.defineProperty(exports, "outputCoverageReport", { enumerable: true, get: function () { return CLIOutputHelper_1.outputCoverageReport; } });
53
+ Object.defineProperty(exports, "outputAgentStatus", { enumerable: true, get: function () { return CLIOutputHelper_1.outputAgentStatus; } });
54
+ Object.defineProperty(exports, "outputQualityMetrics", { enumerable: true, get: function () { return CLIOutputHelper_1.outputQualityMetrics; } });
55
+ Object.defineProperty(exports, "isAIMode", { enumerable: true, get: function () { return CLIOutputHelper_1.isAIMode; } });
56
+ Object.defineProperty(exports, "isHumanMode", { enumerable: true, get: function () { return CLIOutputHelper_1.isHumanMode; } });
57
+ Object.defineProperty(exports, "createStreamingOutput", { enumerable: true, get: function () { return CLIOutputHelper_1.createStreamingOutput; } });
58
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/output/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;;;AAEH,oDAAkC;AAClC,wDAAsC;AACtC,sDAAoC;AAEpC,qDA6E2B;AA5EzB,QAAQ;AACR,6GAAA,UAAU,OAAA;AAoEV,YAAY;AACZ,qHAAA,kBAAkB,OAAA;AAElB,YAAY;AACZ,iHAAA,cAAc,OAAA;AACd,8GAAA,WAAW,OAAA;AACX,kHAAA,eAAe,OAAA;AAGjB,kCAAkC;AAClC,6DAA6E;AAApE,0HAAA,mBAAmB,OAAA;AAAE,sHAAA,eAAe,OAAA;AAC7C,yDAAyE;AAAhE,sHAAA,iBAAiB,OAAA;AAAE,oHAAA,eAAe,OAAA;AAE3C,qBAAqB;AACrB,qDAa2B;AAZzB,kHAAA,eAAe,OAAA;AACf,kHAAA,eAAe,OAAA;AACf,wHAAA,qBAAqB,OAAA;AACrB,sHAAA,mBAAmB,OAAA;AAEnB,oHAAA,iBAAiB,OAAA;AACjB,uHAAA,oBAAoB,OAAA;AACpB,oHAAA,iBAAiB,OAAA;AACjB,uHAAA,oBAAoB,OAAA;AACpB,2GAAA,QAAQ,OAAA;AACR,8GAAA,WAAW,OAAA;AACX,wHAAA,qBAAqB,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-qe",
3
- "version": "2.3.4",
3
+ "version": "2.4.0",
4
4
  "description": "Agentic Quality Engineering Fleet System - AI-driven quality management platform with 41 QE skills, learning, pattern reuse, ML-based flaky detection, Multi-Model Router (70-81% cost savings), streaming progress updates, 84 MCP tools with lazy loading (87% context reduction), and native TypeScript hooks",
5
5
  "main": "dist/cli/index.js",
6
6
  "types": "dist/cli/index.d.ts",
@@ -109,6 +109,7 @@
109
109
  "@babel/parser": "^7.24.0",
110
110
  "@babel/traverse": "^7.24.0",
111
111
  "@modelcontextprotocol/sdk": "^1.24.0",
112
+ "@msgpack/msgpack": "^3.1.2",
112
113
  "@opentelemetry/api": "^1.9.0",
113
114
  "@opentelemetry/auto-instrumentations-node": "^0.50.0",
114
115
  "@opentelemetry/exporter-metrics-otlp-grpc": "^0.55.0",
@@ -181,6 +182,7 @@
181
182
  "dotenv": "^17.2.3",
182
183
  "eslint": "^8.55.0",
183
184
  "eslint-plugin-security": "^3.0.1",
185
+ "glob": "^11.0.0",
184
186
  "graceful-fs": "^4.2.11",
185
187
  "istanbul-lib-coverage": "^3.2.2",
186
188
  "jest": "^30.2.0",
@@ -190,6 +192,7 @@
190
192
  "react": "^18.3.1",
191
193
  "rimraf": "^6.0.1",
192
194
  "stack-utils": "^2.0.6",
195
+ "tinybench": "^2.9.0",
193
196
  "ts-jest": "^29.4.4",
194
197
  "ts-node": "^10.9.1",
195
198
  "tsx": "^4.20.6",