agentic-qe 2.7.1 → 2.7.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.
- package/CHANGELOG.md +105 -0
- package/README.md +2 -2
- package/dist/agents/CodeIntelligenceAgent.d.ts.map +1 -1
- package/dist/agents/CodeIntelligenceAgent.js +7 -5
- package/dist/agents/CodeIntelligenceAgent.js.map +1 -1
- package/dist/cli/commands/knowledge-graph.d.ts.map +1 -1
- package/dist/cli/commands/knowledge-graph.js +4 -2
- package/dist/cli/commands/knowledge-graph.js.map +1 -1
- package/dist/cli/commands/migrate/index.d.ts +14 -0
- package/dist/cli/commands/migrate/index.d.ts.map +1 -0
- package/dist/cli/commands/migrate/index.js +283 -0
- package/dist/cli/commands/migrate/index.js.map +1 -0
- package/dist/cli/formatters/KGOutputFormatter.d.ts.map +1 -1
- package/dist/cli/formatters/KGOutputFormatter.js +15 -6
- package/dist/cli/formatters/KGOutputFormatter.js.map +1 -1
- package/dist/cli/index.js +3 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init/database-init.d.ts.map +1 -1
- package/dist/cli/init/database-init.js +105 -0
- package/dist/cli/init/database-init.js.map +1 -1
- package/dist/code-intelligence/orchestrator/CodeIntelligenceOrchestrator.d.ts +9 -3
- package/dist/code-intelligence/orchestrator/CodeIntelligenceOrchestrator.d.ts.map +1 -1
- package/dist/code-intelligence/orchestrator/CodeIntelligenceOrchestrator.js +41 -3
- package/dist/code-intelligence/orchestrator/CodeIntelligenceOrchestrator.js.map +1 -1
- package/dist/code-intelligence/service/CodeIntelligenceService.js +1 -1
- package/dist/code-intelligence/service/CodeIntelligenceService.js.map +1 -1
- package/dist/core/memory/HNSWVectorMemory.js +1 -1
- package/dist/learning/QLearning.d.ts +9 -1
- package/dist/learning/QLearning.d.ts.map +1 -1
- package/dist/learning/QLearning.js +50 -1
- package/dist/learning/QLearning.js.map +1 -1
- package/dist/learning/metrics/LearningMetrics.d.ts +37 -0
- package/dist/learning/metrics/LearningMetrics.d.ts.map +1 -1
- package/dist/learning/metrics/LearningMetrics.js +73 -0
- package/dist/learning/metrics/LearningMetrics.js.map +1 -1
- package/dist/mcp/handlers/fleet-init.d.ts +10 -0
- package/dist/mcp/handlers/fleet-init.d.ts.map +1 -1
- package/dist/mcp/handlers/fleet-init.js +61 -0
- package/dist/mcp/handlers/fleet-init.js.map +1 -1
- package/dist/mcp/handlers/learning/learning-store-pattern.d.ts +13 -0
- package/dist/mcp/handlers/learning/learning-store-pattern.d.ts.map +1 -1
- package/dist/mcp/handlers/learning/learning-store-pattern.js +38 -0
- package/dist/mcp/handlers/learning/learning-store-pattern.js.map +1 -1
- package/dist/mcp/handlers/phase3/Phase3DomainTools.d.ts +89 -0
- package/dist/mcp/handlers/phase3/Phase3DomainTools.d.ts.map +1 -1
- package/dist/mcp/handlers/phase3/Phase3DomainTools.js +110 -1
- package/dist/mcp/handlers/phase3/Phase3DomainTools.js.map +1 -1
- package/dist/mcp/handlers/task-orchestrate.d.ts +27 -1
- package/dist/mcp/handlers/task-orchestrate.d.ts.map +1 -1
- package/dist/mcp/handlers/task-orchestrate.js +188 -8
- package/dist/mcp/handlers/task-orchestrate.js.map +1 -1
- package/dist/mcp/server-instructions.d.ts +1 -1
- package/dist/mcp/server-instructions.js +1 -1
- package/dist/mcp/server.d.ts +6 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +92 -2
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/services/AgentRegistry.d.ts +13 -0
- package/dist/mcp/services/AgentRegistry.d.ts.map +1 -1
- package/dist/mcp/services/AgentRegistry.js +66 -0
- package/dist/mcp/services/AgentRegistry.js.map +1 -1
- package/dist/mcp/tools/qe/quality-gates/evaluate-quality-gate.d.ts +55 -0
- package/dist/mcp/tools/qe/quality-gates/evaluate-quality-gate.d.ts.map +1 -1
- package/dist/mcp/tools/qe/quality-gates/evaluate-quality-gate.js +233 -0
- package/dist/mcp/tools/qe/quality-gates/evaluate-quality-gate.js.map +1 -1
- package/dist/mcp/tools/qe/quality-gates/index.d.ts +5 -2
- package/dist/mcp/tools/qe/quality-gates/index.d.ts.map +1 -1
- package/dist/mcp/tools/qe/quality-gates/index.js +10 -1
- package/dist/mcp/tools/qe/quality-gates/index.js.map +1 -1
- package/dist/mcp/tools.d.ts +1 -0
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +156 -1
- package/dist/mcp/tools.js.map +1 -1
- package/dist/persistence/migrations/all-migrations.d.ts +18 -0
- package/dist/persistence/migrations/all-migrations.d.ts.map +1 -0
- package/dist/persistence/migrations/all-migrations.js +624 -0
- package/dist/persistence/migrations/all-migrations.js.map +1 -0
- package/dist/persistence/migrations/index.d.ts +110 -0
- package/dist/persistence/migrations/index.d.ts.map +1 -0
- package/dist/persistence/migrations/index.js +303 -0
- package/dist/persistence/migrations/index.js.map +1 -0
- package/dist/planning/GOAPPlanner.d.ts +128 -0
- package/dist/planning/GOAPPlanner.d.ts.map +1 -0
- package/dist/planning/GOAPPlanner.js +630 -0
- package/dist/planning/GOAPPlanner.js.map +1 -0
- package/dist/planning/WorldStateBuilder.d.ts +150 -0
- package/dist/planning/WorldStateBuilder.d.ts.map +1 -0
- package/dist/planning/WorldStateBuilder.js +267 -0
- package/dist/planning/WorldStateBuilder.js.map +1 -0
- package/dist/planning/actions/fleet-actions.d.ts +78 -0
- package/dist/planning/actions/fleet-actions.d.ts.map +1 -0
- package/dist/planning/actions/fleet-actions.js +329 -0
- package/dist/planning/actions/fleet-actions.js.map +1 -0
- package/dist/planning/actions/index.d.ts +61 -0
- package/dist/planning/actions/index.d.ts.map +1 -0
- package/dist/planning/actions/index.js +159 -0
- package/dist/planning/actions/index.js.map +1 -0
- package/dist/planning/actions/orchestration-actions.d.ts +61 -0
- package/dist/planning/actions/orchestration-actions.d.ts.map +1 -0
- package/dist/planning/actions/orchestration-actions.js +395 -0
- package/dist/planning/actions/orchestration-actions.js.map +1 -0
- package/dist/planning/actions/quality-gate-actions.d.ts +160 -0
- package/dist/planning/actions/quality-gate-actions.d.ts.map +1 -0
- package/dist/planning/actions/quality-gate-actions.js +639 -0
- package/dist/planning/actions/quality-gate-actions.js.map +1 -0
- package/dist/planning/actions/test-strategy-actions.d.ts +70 -0
- package/dist/planning/actions/test-strategy-actions.d.ts.map +1 -0
- package/dist/planning/actions/test-strategy-actions.js +278 -0
- package/dist/planning/actions/test-strategy-actions.js.map +1 -0
- package/dist/planning/execution/PlanExecutor.d.ts +124 -0
- package/dist/planning/execution/PlanExecutor.d.ts.map +1 -0
- package/dist/planning/execution/PlanExecutor.js +405 -0
- package/dist/planning/execution/PlanExecutor.js.map +1 -0
- package/dist/planning/execution/index.d.ts +12 -0
- package/dist/planning/execution/index.d.ts.map +1 -0
- package/dist/planning/execution/index.js +18 -0
- package/dist/planning/execution/index.js.map +1 -0
- package/dist/planning/goals/TaskWorkflowGoals.d.ts +67 -0
- package/dist/planning/goals/TaskWorkflowGoals.d.ts.map +1 -0
- package/dist/planning/goals/TaskWorkflowGoals.js +208 -0
- package/dist/planning/goals/TaskWorkflowGoals.js.map +1 -0
- package/dist/planning/goals/index.d.ts +10 -0
- package/dist/planning/goals/index.d.ts.map +1 -0
- package/dist/planning/goals/index.js +19 -0
- package/dist/planning/goals/index.js.map +1 -0
- package/dist/planning/index.d.ts +34 -0
- package/dist/planning/index.d.ts.map +1 -0
- package/dist/planning/index.js +176 -0
- package/dist/planning/index.js.map +1 -0
- package/dist/planning/integration/GOAPQualityGateIntegration.d.ts +229 -0
- package/dist/planning/integration/GOAPQualityGateIntegration.d.ts.map +1 -0
- package/dist/planning/integration/GOAPQualityGateIntegration.js +582 -0
- package/dist/planning/integration/GOAPQualityGateIntegration.js.map +1 -0
- package/dist/planning/integration/GOAPTaskOrchestration.d.ts +165 -0
- package/dist/planning/integration/GOAPTaskOrchestration.d.ts.map +1 -0
- package/dist/planning/integration/GOAPTaskOrchestration.js +490 -0
- package/dist/planning/integration/GOAPTaskOrchestration.js.map +1 -0
- package/dist/planning/integration/index.d.ts +14 -0
- package/dist/planning/integration/index.d.ts.map +1 -0
- package/dist/planning/integration/index.js +23 -0
- package/dist/planning/integration/index.js.map +1 -0
- package/dist/planning/types.d.ts +264 -0
- package/dist/planning/types.d.ts.map +1 -0
- package/dist/planning/types.js +63 -0
- package/dist/planning/types.js.map +1 -0
- package/dist/utils/Database.d.ts.map +1 -1
- package/dist/utils/Database.js +81 -2
- package/dist/utils/Database.js.map +1 -1
- package/package.json +6 -3
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Orchestration Actions for GOAP Planning
|
|
4
|
+
*
|
|
5
|
+
* These actions correspond to workflow steps in task orchestration.
|
|
6
|
+
* They enable dynamic workflow generation based on world state.
|
|
7
|
+
*
|
|
8
|
+
* @module planning/actions/orchestration-actions
|
|
9
|
+
* @version 1.0.0
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.orchestrationActions = exports.evaluateQualityGate = exports.analyzeBottlenecks = exports.runStressTests = exports.runLoadTests = exports.measurePerformanceBaseline = exports.fixSecurityIssues = exports.runSecurityScan = exports.improveCoverage = exports.measureCoverage = exports.executeIntegrationTests = exports.executeUnitTests = exports.generateBDDScenarios = exports.generateIntegrationTests = exports.generateUnitTests = exports.analyzeCoverageGaps = exports.analyzeChangeImpact = exports.analyzeCodebase = void 0;
|
|
13
|
+
exports.getOrchestrationActionsByCategory = getOrchestrationActionsByCategory;
|
|
14
|
+
exports.getActionsForTaskType = getActionsForTaskType;
|
|
15
|
+
/**
|
|
16
|
+
* Analysis Actions - Code analysis and impact assessment
|
|
17
|
+
*/
|
|
18
|
+
exports.analyzeCodebase = {
|
|
19
|
+
id: 'orch-analyze-codebase',
|
|
20
|
+
name: 'Analyze Codebase',
|
|
21
|
+
description: 'Perform comprehensive code analysis including complexity metrics',
|
|
22
|
+
agentType: 'qe-code-intelligence',
|
|
23
|
+
preconditions: {
|
|
24
|
+
'resources.timeRemaining': { gte: 300 },
|
|
25
|
+
'resources.parallelSlots': { gte: 1 },
|
|
26
|
+
'quality.complexityMeasured': { eq: false }
|
|
27
|
+
},
|
|
28
|
+
effects: {
|
|
29
|
+
'quality.complexityMeasured': { set: true },
|
|
30
|
+
'resources.timeRemaining': { decrease: 300 }
|
|
31
|
+
},
|
|
32
|
+
cost: 1.0,
|
|
33
|
+
durationEstimate: 300,
|
|
34
|
+
category: 'analysis'
|
|
35
|
+
};
|
|
36
|
+
exports.analyzeChangeImpact = {
|
|
37
|
+
id: 'orch-analyze-change-impact',
|
|
38
|
+
name: 'Analyze Change Impact',
|
|
39
|
+
description: 'Analyze code changes to identify impacted areas and required tests',
|
|
40
|
+
agentType: 'qe-coverage-analyzer',
|
|
41
|
+
preconditions: {
|
|
42
|
+
'resources.timeRemaining': { gte: 180 },
|
|
43
|
+
'context.impactAnalyzed': { eq: false }
|
|
44
|
+
},
|
|
45
|
+
effects: {
|
|
46
|
+
'context.impactAnalyzed': { set: true },
|
|
47
|
+
'resources.timeRemaining': { decrease: 180 }
|
|
48
|
+
},
|
|
49
|
+
cost: 1.0,
|
|
50
|
+
durationEstimate: 180,
|
|
51
|
+
category: 'analysis'
|
|
52
|
+
};
|
|
53
|
+
exports.analyzeCoverageGaps = {
|
|
54
|
+
id: 'orch-analyze-coverage-gaps',
|
|
55
|
+
name: 'Analyze Coverage Gaps',
|
|
56
|
+
description: 'Identify gaps in test coverage that need to be addressed',
|
|
57
|
+
agentType: 'qe-coverage-analyzer',
|
|
58
|
+
preconditions: {
|
|
59
|
+
'resources.timeRemaining': { gte: 120 },
|
|
60
|
+
'context.coverageGapsAnalyzed': { eq: false },
|
|
61
|
+
'coverage.measured': { eq: true } // Need coverage data first
|
|
62
|
+
},
|
|
63
|
+
effects: {
|
|
64
|
+
'context.coverageGapsAnalyzed': { set: true },
|
|
65
|
+
'resources.timeRemaining': { decrease: 120 }
|
|
66
|
+
},
|
|
67
|
+
cost: 1.5,
|
|
68
|
+
durationEstimate: 120,
|
|
69
|
+
category: 'analysis'
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Test Generation Actions
|
|
73
|
+
*/
|
|
74
|
+
exports.generateUnitTests = {
|
|
75
|
+
id: 'orch-generate-unit-tests',
|
|
76
|
+
name: 'Generate Unit Tests',
|
|
77
|
+
description: 'Generate unit tests for uncovered code',
|
|
78
|
+
agentType: 'qe-test-generator',
|
|
79
|
+
preconditions: {
|
|
80
|
+
'resources.timeRemaining': { gte: 600 },
|
|
81
|
+
'resources.parallelSlots': { gte: 1 },
|
|
82
|
+
'quality.complexityMeasured': { eq: true } // Need analysis first
|
|
83
|
+
},
|
|
84
|
+
effects: {
|
|
85
|
+
'coverage.line': { increase: 15 },
|
|
86
|
+
'coverage.branch': { increase: 10 },
|
|
87
|
+
'resources.timeRemaining': { decrease: 600 }
|
|
88
|
+
},
|
|
89
|
+
cost: 3.0,
|
|
90
|
+
durationEstimate: 600,
|
|
91
|
+
category: 'test'
|
|
92
|
+
};
|
|
93
|
+
exports.generateIntegrationTests = {
|
|
94
|
+
id: 'orch-generate-integration-tests',
|
|
95
|
+
name: 'Generate Integration Tests',
|
|
96
|
+
description: 'Generate integration tests for component interactions',
|
|
97
|
+
agentType: 'qe-test-generator',
|
|
98
|
+
preconditions: {
|
|
99
|
+
'resources.timeRemaining': { gte: 900 },
|
|
100
|
+
'resources.parallelSlots': { gte: 1 },
|
|
101
|
+
'quality.complexityMeasured': { eq: true }
|
|
102
|
+
},
|
|
103
|
+
effects: {
|
|
104
|
+
'quality.integrationTested': { set: true },
|
|
105
|
+
'coverage.line': { increase: 10 },
|
|
106
|
+
'resources.timeRemaining': { decrease: 900 }
|
|
107
|
+
},
|
|
108
|
+
cost: 4.0,
|
|
109
|
+
durationEstimate: 900,
|
|
110
|
+
category: 'test'
|
|
111
|
+
};
|
|
112
|
+
exports.generateBDDScenarios = {
|
|
113
|
+
id: 'orch-generate-bdd-scenarios',
|
|
114
|
+
name: 'Generate BDD Scenarios',
|
|
115
|
+
description: 'Generate behavior-driven development scenarios',
|
|
116
|
+
agentType: 'qe-test-generator',
|
|
117
|
+
preconditions: {
|
|
118
|
+
'resources.timeRemaining': { gte: 420 },
|
|
119
|
+
'context.impactAnalyzed': { eq: true },
|
|
120
|
+
'context.bddGenerated': { eq: false }
|
|
121
|
+
},
|
|
122
|
+
effects: {
|
|
123
|
+
'context.bddGenerated': { set: true },
|
|
124
|
+
'resources.timeRemaining': { decrease: 420 }
|
|
125
|
+
},
|
|
126
|
+
cost: 3.5,
|
|
127
|
+
durationEstimate: 420,
|
|
128
|
+
category: 'test'
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Test Execution Actions
|
|
132
|
+
*/
|
|
133
|
+
exports.executeUnitTests = {
|
|
134
|
+
id: 'orch-execute-unit-tests',
|
|
135
|
+
name: 'Execute Unit Tests',
|
|
136
|
+
description: 'Run the unit test suite',
|
|
137
|
+
agentType: 'qe-test-executor',
|
|
138
|
+
preconditions: {
|
|
139
|
+
'resources.timeRemaining': { gte: 180 },
|
|
140
|
+
'resources.parallelSlots': { gte: 1 },
|
|
141
|
+
'quality.testsMeasured': { eq: false }
|
|
142
|
+
},
|
|
143
|
+
effects: {
|
|
144
|
+
'quality.testsMeasured': { set: true },
|
|
145
|
+
'quality.testsPassing': { set: 85 }, // Will be updated with real value
|
|
146
|
+
'coverage.measured': { set: true },
|
|
147
|
+
'coverage.line': { set: 70 }, // Will be updated with real value
|
|
148
|
+
'resources.timeRemaining': { decrease: 180 }
|
|
149
|
+
},
|
|
150
|
+
cost: 1.5,
|
|
151
|
+
durationEstimate: 180,
|
|
152
|
+
category: 'test'
|
|
153
|
+
};
|
|
154
|
+
exports.executeIntegrationTests = {
|
|
155
|
+
id: 'orch-execute-integration-tests',
|
|
156
|
+
name: 'Execute Integration Tests',
|
|
157
|
+
description: 'Run the integration test suite',
|
|
158
|
+
agentType: 'qe-test-executor',
|
|
159
|
+
preconditions: {
|
|
160
|
+
'resources.timeRemaining': { gte: 600 },
|
|
161
|
+
'resources.parallelSlots': { gte: 1 },
|
|
162
|
+
'quality.testsMeasured': { eq: true } // Unit tests first
|
|
163
|
+
},
|
|
164
|
+
effects: {
|
|
165
|
+
'quality.integrationTested': { set: true },
|
|
166
|
+
'quality.testsPassing': { increase: 5 },
|
|
167
|
+
'resources.timeRemaining': { decrease: 600 }
|
|
168
|
+
},
|
|
169
|
+
cost: 3.0,
|
|
170
|
+
durationEstimate: 600,
|
|
171
|
+
category: 'test'
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Coverage Analysis Actions
|
|
175
|
+
*/
|
|
176
|
+
exports.measureCoverage = {
|
|
177
|
+
id: 'orch-measure-coverage',
|
|
178
|
+
name: 'Measure Test Coverage',
|
|
179
|
+
description: 'Collect and analyze test coverage metrics',
|
|
180
|
+
agentType: 'qe-coverage-analyzer',
|
|
181
|
+
preconditions: {
|
|
182
|
+
'resources.timeRemaining': { gte: 120 },
|
|
183
|
+
'quality.testsMeasured': { eq: true },
|
|
184
|
+
'coverage.measured': { eq: false }
|
|
185
|
+
},
|
|
186
|
+
effects: {
|
|
187
|
+
'coverage.measured': { set: true },
|
|
188
|
+
'resources.timeRemaining': { decrease: 120 }
|
|
189
|
+
},
|
|
190
|
+
cost: 1.0,
|
|
191
|
+
durationEstimate: 120,
|
|
192
|
+
category: 'coverage'
|
|
193
|
+
};
|
|
194
|
+
exports.improveCoverage = {
|
|
195
|
+
id: 'orch-improve-coverage',
|
|
196
|
+
name: 'Improve Test Coverage',
|
|
197
|
+
description: 'Generate additional tests to improve coverage',
|
|
198
|
+
agentType: 'qe-test-generator',
|
|
199
|
+
preconditions: {
|
|
200
|
+
'resources.timeRemaining': { gte: 600 },
|
|
201
|
+
'coverage.measured': { eq: true },
|
|
202
|
+
'coverage.line': { lt: 80 }
|
|
203
|
+
},
|
|
204
|
+
effects: {
|
|
205
|
+
'coverage.line': { increase: 15 },
|
|
206
|
+
'coverage.branch': { increase: 10 },
|
|
207
|
+
'resources.timeRemaining': { decrease: 600 }
|
|
208
|
+
},
|
|
209
|
+
cost: 4.0,
|
|
210
|
+
durationEstimate: 600,
|
|
211
|
+
category: 'coverage'
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Security Analysis Actions
|
|
215
|
+
*/
|
|
216
|
+
exports.runSecurityScan = {
|
|
217
|
+
id: 'orch-run-security-scan',
|
|
218
|
+
name: 'Run Security Scan',
|
|
219
|
+
description: 'Execute security vulnerability scan',
|
|
220
|
+
agentType: 'qe-security-scanner',
|
|
221
|
+
preconditions: {
|
|
222
|
+
'resources.timeRemaining': { gte: 300 },
|
|
223
|
+
'quality.securityMeasured': { eq: false }
|
|
224
|
+
},
|
|
225
|
+
effects: {
|
|
226
|
+
'quality.securityMeasured': { set: true },
|
|
227
|
+
'quality.securityScore': { set: 85 }, // Will be updated with real value
|
|
228
|
+
'resources.timeRemaining': { decrease: 300 }
|
|
229
|
+
},
|
|
230
|
+
cost: 2.0,
|
|
231
|
+
durationEstimate: 300,
|
|
232
|
+
category: 'security'
|
|
233
|
+
};
|
|
234
|
+
exports.fixSecurityIssues = {
|
|
235
|
+
id: 'orch-fix-security-issues',
|
|
236
|
+
name: 'Fix Security Issues',
|
|
237
|
+
description: 'Apply automated fixes for security vulnerabilities',
|
|
238
|
+
agentType: 'qe-security-scanner',
|
|
239
|
+
preconditions: {
|
|
240
|
+
'resources.timeRemaining': { gte: 600 },
|
|
241
|
+
'quality.securityMeasured': { eq: true },
|
|
242
|
+
'quality.securityScore': { lt: 70 }
|
|
243
|
+
},
|
|
244
|
+
effects: {
|
|
245
|
+
'quality.securityScore': { increase: 20 },
|
|
246
|
+
'resources.timeRemaining': { decrease: 600 }
|
|
247
|
+
},
|
|
248
|
+
cost: 5.0,
|
|
249
|
+
durationEstimate: 600,
|
|
250
|
+
category: 'security'
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Performance Testing Actions
|
|
254
|
+
*/
|
|
255
|
+
exports.measurePerformanceBaseline = {
|
|
256
|
+
id: 'orch-measure-performance-baseline',
|
|
257
|
+
name: 'Measure Performance Baseline',
|
|
258
|
+
description: 'Establish performance baseline metrics',
|
|
259
|
+
agentType: 'qe-performance-tester',
|
|
260
|
+
preconditions: {
|
|
261
|
+
'resources.timeRemaining': { gte: 300 },
|
|
262
|
+
'quality.performanceMeasured': { eq: false }
|
|
263
|
+
},
|
|
264
|
+
effects: {
|
|
265
|
+
'quality.performanceMeasured': { set: true },
|
|
266
|
+
'quality.performanceScore': { set: 75 }, // Will be updated with real value
|
|
267
|
+
'resources.timeRemaining': { decrease: 300 }
|
|
268
|
+
},
|
|
269
|
+
cost: 2.5,
|
|
270
|
+
durationEstimate: 300,
|
|
271
|
+
category: 'performance'
|
|
272
|
+
};
|
|
273
|
+
exports.runLoadTests = {
|
|
274
|
+
id: 'orch-run-load-tests',
|
|
275
|
+
name: 'Run Load Tests',
|
|
276
|
+
description: 'Execute load tests to validate scalability',
|
|
277
|
+
agentType: 'qe-performance-tester',
|
|
278
|
+
preconditions: {
|
|
279
|
+
'resources.timeRemaining': { gte: 900 },
|
|
280
|
+
'quality.performanceMeasured': { eq: true }
|
|
281
|
+
},
|
|
282
|
+
effects: {
|
|
283
|
+
'quality.performanceScore': { increase: 10 },
|
|
284
|
+
'resources.timeRemaining': { decrease: 900 }
|
|
285
|
+
},
|
|
286
|
+
cost: 4.0,
|
|
287
|
+
durationEstimate: 900,
|
|
288
|
+
category: 'performance'
|
|
289
|
+
};
|
|
290
|
+
exports.runStressTests = {
|
|
291
|
+
id: 'orch-run-stress-tests',
|
|
292
|
+
name: 'Run Stress Tests',
|
|
293
|
+
description: 'Execute stress tests to find breaking points',
|
|
294
|
+
agentType: 'qe-performance-tester',
|
|
295
|
+
preconditions: {
|
|
296
|
+
'resources.timeRemaining': { gte: 600 },
|
|
297
|
+
'quality.performanceMeasured': { eq: true }
|
|
298
|
+
},
|
|
299
|
+
effects: {
|
|
300
|
+
'quality.slaCompliant': { set: true },
|
|
301
|
+
'resources.timeRemaining': { decrease: 600 }
|
|
302
|
+
},
|
|
303
|
+
cost: 3.5,
|
|
304
|
+
durationEstimate: 600,
|
|
305
|
+
category: 'performance'
|
|
306
|
+
};
|
|
307
|
+
exports.analyzeBottlenecks = {
|
|
308
|
+
id: 'orch-analyze-bottlenecks',
|
|
309
|
+
name: 'Analyze Performance Bottlenecks',
|
|
310
|
+
description: 'Identify and analyze performance bottlenecks',
|
|
311
|
+
agentType: 'qe-performance-tester',
|
|
312
|
+
preconditions: {
|
|
313
|
+
'resources.timeRemaining': { gte: 240 },
|
|
314
|
+
'quality.performanceMeasured': { eq: true }
|
|
315
|
+
},
|
|
316
|
+
effects: {
|
|
317
|
+
'quality.performanceScore': { increase: 5 },
|
|
318
|
+
'resources.timeRemaining': { decrease: 240 }
|
|
319
|
+
},
|
|
320
|
+
cost: 2.0,
|
|
321
|
+
durationEstimate: 240,
|
|
322
|
+
category: 'performance'
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Quality Gate Actions
|
|
326
|
+
*/
|
|
327
|
+
exports.evaluateQualityGate = {
|
|
328
|
+
id: 'orch-evaluate-quality-gate',
|
|
329
|
+
name: 'Evaluate Quality Gate',
|
|
330
|
+
description: 'Make quality gate pass/fail decision',
|
|
331
|
+
agentType: 'qe-quality-gate',
|
|
332
|
+
preconditions: {
|
|
333
|
+
'resources.timeRemaining': { gte: 30 },
|
|
334
|
+
'quality.testsMeasured': { eq: true },
|
|
335
|
+
'quality.securityMeasured': { eq: true },
|
|
336
|
+
'quality.performanceMeasured': { eq: true },
|
|
337
|
+
'quality.gateEvaluated': { eq: false }
|
|
338
|
+
},
|
|
339
|
+
effects: {
|
|
340
|
+
'quality.gateEvaluated': { set: true },
|
|
341
|
+
'resources.timeRemaining': { decrease: 30 }
|
|
342
|
+
},
|
|
343
|
+
cost: 0.5,
|
|
344
|
+
durationEstimate: 30,
|
|
345
|
+
category: 'process'
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* All orchestration actions
|
|
349
|
+
*/
|
|
350
|
+
exports.orchestrationActions = [
|
|
351
|
+
// Analysis
|
|
352
|
+
exports.analyzeCodebase,
|
|
353
|
+
exports.analyzeChangeImpact,
|
|
354
|
+
exports.analyzeCoverageGaps,
|
|
355
|
+
// Test Generation
|
|
356
|
+
exports.generateUnitTests,
|
|
357
|
+
exports.generateIntegrationTests,
|
|
358
|
+
exports.generateBDDScenarios,
|
|
359
|
+
// Test Execution
|
|
360
|
+
exports.executeUnitTests,
|
|
361
|
+
exports.executeIntegrationTests,
|
|
362
|
+
// Coverage
|
|
363
|
+
exports.measureCoverage,
|
|
364
|
+
exports.improveCoverage,
|
|
365
|
+
// Security
|
|
366
|
+
exports.runSecurityScan,
|
|
367
|
+
exports.fixSecurityIssues,
|
|
368
|
+
// Performance
|
|
369
|
+
exports.measurePerformanceBaseline,
|
|
370
|
+
exports.runLoadTests,
|
|
371
|
+
exports.runStressTests,
|
|
372
|
+
exports.analyzeBottlenecks,
|
|
373
|
+
// Quality Gate
|
|
374
|
+
exports.evaluateQualityGate
|
|
375
|
+
];
|
|
376
|
+
/**
|
|
377
|
+
* Get actions by category
|
|
378
|
+
*/
|
|
379
|
+
function getOrchestrationActionsByCategory(category) {
|
|
380
|
+
return exports.orchestrationActions.filter(a => a.category === category);
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Get actions suitable for a specific task type
|
|
384
|
+
*/
|
|
385
|
+
function getActionsForTaskType(taskType) {
|
|
386
|
+
const categoryMap = {
|
|
387
|
+
'comprehensive-testing': ['analysis', 'test', 'coverage'],
|
|
388
|
+
'quality-gate': ['test', 'security', 'performance', 'process', 'coverage'],
|
|
389
|
+
'defect-prevention': ['analysis', 'test', 'coverage'],
|
|
390
|
+
'performance-validation': ['performance', 'analysis']
|
|
391
|
+
};
|
|
392
|
+
const categories = categoryMap[taskType] || [];
|
|
393
|
+
return exports.orchestrationActions.filter(a => categories.includes(a.category));
|
|
394
|
+
}
|
|
395
|
+
//# sourceMappingURL=orchestration-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestration-actions.js","sourceRoot":"","sources":["../../../src/planning/actions/orchestration-actions.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAkYH,8EAEC;AAKD,sDAUC;AA/YD;;GAEG;AACU,QAAA,eAAe,GAAe;IACzC,EAAE,EAAE,uBAAuB;IAC3B,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kEAAkE;IAC/E,SAAS,EAAE,sBAAsB;IACjC,aAAa,EAAE;QACb,yBAAyB,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE;QACvC,yBAAyB,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE;QACrC,4BAA4B,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE;KAC5C;IACD,OAAO,EAAE;QACP,4BAA4B,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE;QAC3C,yBAAyB,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE;KAC7C;IACD,IAAI,EAAE,GAAG;IACT,gBAAgB,EAAE,GAAG;IACrB,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEW,QAAA,mBAAmB,GAAe;IAC7C,EAAE,EAAE,4BAA4B;IAChC,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,oEAAoE;IACjF,SAAS,EAAE,sBAAsB;IACjC,aAAa,EAAE;QACb,yBAAyB,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE;QACvC,wBAAwB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE;KACxC;IACD,OAAO,EAAE;QACP,wBAAwB,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE;QACvC,yBAAyB,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE;KAC7C;IACD,IAAI,EAAE,GAAG;IACT,gBAAgB,EAAE,GAAG;IACrB,QAAQ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BAAc;IACd,0BAAkB;IAClB,eAAe;IACf,2BAAmB;CACpB,CAAC;AAEF;;GAEG;AACH,SAAgB,iCAAiC,CAAC,QAAgB;IAChE,OAAO,4BAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACnE,CAAC;AAED;;GAEG;AACH,SAAgB,qBAAqB,CAAC,QAAgB;IACpD,MAAM,WAAW,GAA6B;QAC5C,uBAAuB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC;QACzD,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC;QAC1E,mBAAmB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC;QACrD,wBAAwB,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC;KACtD,CAAC;IAEF,MAAM,UAAU,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC/C,OAAO,4BAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quality Gate GOAP Actions
|
|
3
|
+
*
|
|
4
|
+
* Actions for achieving quality gate goals:
|
|
5
|
+
* - Test execution and coverage
|
|
6
|
+
* - Security scanning
|
|
7
|
+
* - Performance validation
|
|
8
|
+
* - Code quality checks
|
|
9
|
+
*
|
|
10
|
+
* @module planning/actions/quality-gate-actions
|
|
11
|
+
* @version 1.0.0
|
|
12
|
+
*/
|
|
13
|
+
import { GOAPAction } from '../types';
|
|
14
|
+
/**
|
|
15
|
+
* Run unit tests action (MEASUREMENT ACTION)
|
|
16
|
+
*
|
|
17
|
+
* This action MEASURES the current state - it does NOT improve metrics.
|
|
18
|
+
* It sets measurement flags that enable improvement actions to run.
|
|
19
|
+
* Can only run once (precondition: not already measured).
|
|
20
|
+
*/
|
|
21
|
+
export declare const runUnitTests: GOAPAction;
|
|
22
|
+
/**
|
|
23
|
+
* Run integration tests action (MEASUREMENT ACTION)
|
|
24
|
+
*
|
|
25
|
+
* Measures integration test pass rate. Sets integration testing flag.
|
|
26
|
+
*/
|
|
27
|
+
export declare const runIntegrationTests: GOAPAction;
|
|
28
|
+
/**
|
|
29
|
+
* Generate missing tests action (IMPROVEMENT ACTION)
|
|
30
|
+
*
|
|
31
|
+
* Requires coverage to have been measured first.
|
|
32
|
+
*/
|
|
33
|
+
export declare const generateMissingTests: GOAPAction;
|
|
34
|
+
/**
|
|
35
|
+
* Run security scan action (MEASUREMENT ACTION)
|
|
36
|
+
*
|
|
37
|
+
* Measures security vulnerabilities. Sets measurement flag.
|
|
38
|
+
* Can only run once - improvement actions require this to run first.
|
|
39
|
+
*/
|
|
40
|
+
export declare const runSecurityScan: GOAPAction;
|
|
41
|
+
/**
|
|
42
|
+
* Fix critical vulnerabilities action (IMPROVEMENT ACTION)
|
|
43
|
+
*
|
|
44
|
+
* Requires security scan to have been run first.
|
|
45
|
+
*/
|
|
46
|
+
export declare const fixCriticalVulnerabilities: GOAPAction;
|
|
47
|
+
/**
|
|
48
|
+
* Fix medium vulnerabilities action (IMPROVEMENT ACTION)
|
|
49
|
+
* Works on systems with medium-range security scores
|
|
50
|
+
*/
|
|
51
|
+
export declare const fixMediumVulnerabilities: GOAPAction;
|
|
52
|
+
/**
|
|
53
|
+
* Fix low vulnerabilities action (IMPROVEMENT ACTION)
|
|
54
|
+
* Works on systems with higher security scores needing final polish
|
|
55
|
+
*/
|
|
56
|
+
export declare const fixLowVulnerabilities: GOAPAction;
|
|
57
|
+
/**
|
|
58
|
+
* Run performance benchmark action (MEASUREMENT ACTION)
|
|
59
|
+
*
|
|
60
|
+
* Measures performance metrics. Sets measurement flag.
|
|
61
|
+
* Improvement actions require this to run first.
|
|
62
|
+
*/
|
|
63
|
+
export declare const runPerformanceBenchmark: GOAPAction;
|
|
64
|
+
/**
|
|
65
|
+
* Analyze code complexity action (MEASUREMENT ACTION)
|
|
66
|
+
*
|
|
67
|
+
* Measures code complexity and technical debt. Sets measurement flag.
|
|
68
|
+
*/
|
|
69
|
+
export declare const analyzeCodeComplexity: GOAPAction;
|
|
70
|
+
/**
|
|
71
|
+
* Request quality gate exception action
|
|
72
|
+
*/
|
|
73
|
+
export declare const requestGateException: GOAPAction;
|
|
74
|
+
/**
|
|
75
|
+
* Run smoke tests action (fast validation)
|
|
76
|
+
*/
|
|
77
|
+
export declare const runSmokeTests: GOAPAction;
|
|
78
|
+
/**
|
|
79
|
+
* Evaluate quality gate action (MEASUREMENT ACTION)
|
|
80
|
+
*
|
|
81
|
+
* Evaluates all quality metrics against thresholds.
|
|
82
|
+
* Requires all measurements to be complete first.
|
|
83
|
+
*/
|
|
84
|
+
export declare const evaluateQualityGate: GOAPAction;
|
|
85
|
+
/**
|
|
86
|
+
* Fix failing tests action (IMPROVEMENT ACTION)
|
|
87
|
+
*
|
|
88
|
+
* Requires tests to have been run first.
|
|
89
|
+
*/
|
|
90
|
+
export declare const fixFailingTests: GOAPAction;
|
|
91
|
+
/**
|
|
92
|
+
* Fix flaky tests action (IMPROVEMENT ACTION)
|
|
93
|
+
*
|
|
94
|
+
* Requires tests to have been run first.
|
|
95
|
+
*/
|
|
96
|
+
export declare const fixFlakyTests: GOAPAction;
|
|
97
|
+
/**
|
|
98
|
+
* Refactor brittle tests action (IMPROVEMENT ACTION)
|
|
99
|
+
* Alternative approach to improving test pass rate
|
|
100
|
+
*/
|
|
101
|
+
export declare const refactorBrittleTests: GOAPAction;
|
|
102
|
+
/**
|
|
103
|
+
* Optimize performance action (IMPROVEMENT ACTION)
|
|
104
|
+
*
|
|
105
|
+
* Requires performance benchmark to have been run first.
|
|
106
|
+
*/
|
|
107
|
+
export declare const optimizePerformance: GOAPAction;
|
|
108
|
+
/**
|
|
109
|
+
* Increase test coverage action (IMPROVEMENT ACTION)
|
|
110
|
+
* Alternative to generateMissingTests
|
|
111
|
+
*/
|
|
112
|
+
export declare const increaseTestCoverage: GOAPAction;
|
|
113
|
+
/**
|
|
114
|
+
* Target uncovered branches action (IMPROVEMENT ACTION)
|
|
115
|
+
* Alternative path for branch coverage improvement
|
|
116
|
+
*/
|
|
117
|
+
export declare const targetUncoveredBranches: GOAPAction;
|
|
118
|
+
/**
|
|
119
|
+
* Add edge case tests action (IMPROVEMENT ACTION)
|
|
120
|
+
* Thorough coverage boost through edge case testing
|
|
121
|
+
*/
|
|
122
|
+
export declare const addEdgeCaseTests: GOAPAction;
|
|
123
|
+
/**
|
|
124
|
+
* Profile hot paths action (IMPROVEMENT ACTION)
|
|
125
|
+
* Quick performance analysis with modest improvement
|
|
126
|
+
*/
|
|
127
|
+
export declare const profileHotPaths: GOAPAction;
|
|
128
|
+
/**
|
|
129
|
+
* Optimize database queries action (IMPROVEMENT ACTION)
|
|
130
|
+
* Specific performance optimization for data layer
|
|
131
|
+
*/
|
|
132
|
+
export declare const optimizeDatabaseQueries: GOAPAction;
|
|
133
|
+
/**
|
|
134
|
+
* Implement caching optimization action (IMPROVEMENT ACTION)
|
|
135
|
+
* Performance boost through caching strategies
|
|
136
|
+
*/
|
|
137
|
+
export declare const implementCaching: GOAPAction;
|
|
138
|
+
/**
|
|
139
|
+
* Finalize quality gate action (TERMINAL ACTION)
|
|
140
|
+
*
|
|
141
|
+
* This action validates that all quality criteria are met and
|
|
142
|
+
* sets the gate status to 'passed'. It's the terminal action
|
|
143
|
+
* for achieving PASS_QUALITY_GATE goal.
|
|
144
|
+
*
|
|
145
|
+
* Requires gate to have been evaluated first.
|
|
146
|
+
*/
|
|
147
|
+
export declare const finalizeQualityGate: GOAPAction;
|
|
148
|
+
/**
|
|
149
|
+
* All quality gate actions
|
|
150
|
+
*/
|
|
151
|
+
export declare const qualityGateActions: GOAPAction[];
|
|
152
|
+
/**
|
|
153
|
+
* Get quality gate action by ID
|
|
154
|
+
*/
|
|
155
|
+
export declare function getQualityGateAction(id: string): GOAPAction | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Get actions by category
|
|
158
|
+
*/
|
|
159
|
+
export declare function getQualityGateActionsByCategory(category: GOAPAction['category']): GOAPAction[];
|
|
160
|
+
//# sourceMappingURL=quality-gate-actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quality-gate-actions.d.ts","sourceRoot":"","sources":["../../../src/planning/actions/quality-gate-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,UAoB1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAqBjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAoBlC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,UAkB7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,UAmBxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,UAmBtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAmBnC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,UAmBrC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAkBnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAiBlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,UAiB3B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAmBjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,UAmB7B,CAAC;AAEF;;;;GAIG;AACH,eAAO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