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,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Task Workflow Goals for GOAP Integration
|
|
4
|
+
*
|
|
5
|
+
* Defines goal conditions for each task orchestration type.
|
|
6
|
+
* These replace the hardcoded workflow templates with dynamic GOAP planning.
|
|
7
|
+
*
|
|
8
|
+
* @module planning/goals/TaskWorkflowGoals
|
|
9
|
+
* @version 1.0.0
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.TASK_WORKFLOW_GOALS = void 0;
|
|
13
|
+
exports.getGoalForType = getGoalForType;
|
|
14
|
+
exports.getAvailableTaskTypes = getAvailableTaskTypes;
|
|
15
|
+
exports.customizeGoalConditions = customizeGoalConditions;
|
|
16
|
+
exports.toGOAPGoal = toGOAPGoal;
|
|
17
|
+
exports.validateGoalAchievability = validateGoalAchievability;
|
|
18
|
+
/**
|
|
19
|
+
* Task Workflow Goals - GOAP goal definitions for each orchestration type
|
|
20
|
+
*/
|
|
21
|
+
exports.TASK_WORKFLOW_GOALS = {
|
|
22
|
+
/**
|
|
23
|
+
* Comprehensive Testing Goal
|
|
24
|
+
* Requires: code analysis, test generation, test execution, coverage analysis
|
|
25
|
+
*/
|
|
26
|
+
'comprehensive-testing': {
|
|
27
|
+
id: 'goal-comprehensive-testing',
|
|
28
|
+
name: 'Comprehensive Testing Complete',
|
|
29
|
+
description: 'All code analyzed, tests generated, executed, and coverage verified',
|
|
30
|
+
conditions: {
|
|
31
|
+
// Tests must be run and passing
|
|
32
|
+
'quality.testsMeasured': { eq: true },
|
|
33
|
+
'quality.testsPassing': { gte: 90 },
|
|
34
|
+
// Coverage must meet target
|
|
35
|
+
'coverage.measured': { eq: true },
|
|
36
|
+
'coverage.line': { gte: 80 },
|
|
37
|
+
// Integration tests run
|
|
38
|
+
'quality.integrationTested': { eq: true },
|
|
39
|
+
// Code complexity analyzed
|
|
40
|
+
'quality.complexityMeasured': { eq: true }
|
|
41
|
+
},
|
|
42
|
+
allowedCategories: ['test', 'coverage', 'analysis'],
|
|
43
|
+
priority: 3,
|
|
44
|
+
timeoutSeconds: 1800, // 30 minutes
|
|
45
|
+
minActions: 4,
|
|
46
|
+
requiredMeasurements: ['testsMeasured', 'integrationTested', 'complexityMeasured']
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* Quality Gate Goal
|
|
50
|
+
* Requires: metrics collection, security scan, performance check, gate decision
|
|
51
|
+
*
|
|
52
|
+
* NOTE: Thresholds are set to be achievable by the action library:
|
|
53
|
+
* - executeUnitTests sets testsPassing: 85, executeIntegrationTests adds 5 → 90
|
|
54
|
+
* - executeUnitTests sets coverage.line: 70, improveCoverage adds 15 → 85
|
|
55
|
+
* - runSecurityScan sets securityScore: 85
|
|
56
|
+
*/
|
|
57
|
+
'quality-gate': {
|
|
58
|
+
id: 'goal-quality-gate',
|
|
59
|
+
name: 'Quality Gate Evaluated',
|
|
60
|
+
description: 'All quality metrics collected and gate decision made',
|
|
61
|
+
conditions: {
|
|
62
|
+
// All measurements completed
|
|
63
|
+
'quality.testsMeasured': { eq: true },
|
|
64
|
+
'quality.securityMeasured': { eq: true },
|
|
65
|
+
'quality.performanceMeasured': { eq: true },
|
|
66
|
+
'coverage.measured': { eq: true },
|
|
67
|
+
// Gate evaluated
|
|
68
|
+
'quality.gateEvaluated': { eq: true },
|
|
69
|
+
// Minimum thresholds - achievable by action library
|
|
70
|
+
// executeUnitTests(85) + executeIntegrationTests(+5) = 90
|
|
71
|
+
'quality.testsPassing': { gte: 90 },
|
|
72
|
+
// executeUnitTests(70) + improveCoverage(+15) = 85
|
|
73
|
+
'coverage.line': { gte: 70 },
|
|
74
|
+
// runSecurityScan sets 85
|
|
75
|
+
'quality.securityScore': { gte: 70 }
|
|
76
|
+
},
|
|
77
|
+
allowedCategories: ['test', 'security', 'performance', 'process', 'coverage'],
|
|
78
|
+
priority: 5, // Critical priority
|
|
79
|
+
timeoutSeconds: 1200, // 20 minutes
|
|
80
|
+
minActions: 4,
|
|
81
|
+
requiredMeasurements: ['testsMeasured', 'securityMeasured', 'performanceMeasured', 'gateEvaluated']
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* Defect Prevention Goal
|
|
85
|
+
* Requires: change analysis, defect prediction, preventive test generation
|
|
86
|
+
*/
|
|
87
|
+
'defect-prevention': {
|
|
88
|
+
id: 'goal-defect-prevention',
|
|
89
|
+
name: 'Defect Prevention Complete',
|
|
90
|
+
description: 'Changes analyzed, defects predicted, and preventive measures applied',
|
|
91
|
+
conditions: {
|
|
92
|
+
// Impact analysis done
|
|
93
|
+
'context.impactAnalyzed': { eq: true },
|
|
94
|
+
// Coverage gaps identified
|
|
95
|
+
'context.coverageGapsAnalyzed': { eq: true },
|
|
96
|
+
// BDD scenarios generated
|
|
97
|
+
'context.bddGenerated': { eq: true },
|
|
98
|
+
// Tests passing
|
|
99
|
+
'quality.testsPassing': { gte: 90 }
|
|
100
|
+
},
|
|
101
|
+
allowedCategories: ['analysis', 'test', 'coverage'],
|
|
102
|
+
priority: 3,
|
|
103
|
+
timeoutSeconds: 1500, // 25 minutes
|
|
104
|
+
minActions: 3,
|
|
105
|
+
requiredMeasurements: ['impactAnalyzed', 'coverageGapsAnalyzed']
|
|
106
|
+
},
|
|
107
|
+
/**
|
|
108
|
+
* Performance Validation Goal
|
|
109
|
+
* Requires: baseline measurement, load testing, stress testing, bottleneck analysis
|
|
110
|
+
*/
|
|
111
|
+
'performance-validation': {
|
|
112
|
+
id: 'goal-performance-validation',
|
|
113
|
+
name: 'Performance Validated',
|
|
114
|
+
description: 'Performance baseline established and SLAs verified',
|
|
115
|
+
conditions: {
|
|
116
|
+
// Performance measured
|
|
117
|
+
'quality.performanceMeasured': { eq: true },
|
|
118
|
+
// Performance score acceptable
|
|
119
|
+
'quality.performanceScore': { gte: 70 },
|
|
120
|
+
// SLA targets met (latency under threshold)
|
|
121
|
+
'quality.slaCompliant': { eq: true }
|
|
122
|
+
},
|
|
123
|
+
allowedCategories: ['performance', 'analysis'],
|
|
124
|
+
priority: 3,
|
|
125
|
+
timeoutSeconds: 2400, // 40 minutes (performance tests take longer)
|
|
126
|
+
minActions: 3,
|
|
127
|
+
requiredMeasurements: ['performanceMeasured']
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Get goal definition for a task type
|
|
132
|
+
*/
|
|
133
|
+
function getGoalForType(taskType) {
|
|
134
|
+
const goal = exports.TASK_WORKFLOW_GOALS[taskType];
|
|
135
|
+
if (!goal) {
|
|
136
|
+
throw new Error(`No goal definition found for task type: ${taskType}`);
|
|
137
|
+
}
|
|
138
|
+
return goal;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Get all available task types
|
|
142
|
+
*/
|
|
143
|
+
function getAvailableTaskTypes() {
|
|
144
|
+
return Object.keys(exports.TASK_WORKFLOW_GOALS);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Customize goal conditions based on context
|
|
148
|
+
*
|
|
149
|
+
* @param baseGoal - The base goal definition
|
|
150
|
+
* @param context - Orchestration context with custom requirements
|
|
151
|
+
*/
|
|
152
|
+
function customizeGoalConditions(baseGoal, context) {
|
|
153
|
+
const customizedGoal = { ...baseGoal, conditions: { ...baseGoal.conditions } };
|
|
154
|
+
if (context?.coverageThreshold !== undefined) {
|
|
155
|
+
customizedGoal.conditions['coverage.line'] = { gte: context.coverageThreshold };
|
|
156
|
+
}
|
|
157
|
+
if (context?.securityThreshold !== undefined) {
|
|
158
|
+
customizedGoal.conditions['quality.securityScore'] = { gte: context.securityThreshold };
|
|
159
|
+
}
|
|
160
|
+
if (context?.performanceThreshold !== undefined) {
|
|
161
|
+
customizedGoal.conditions['quality.performanceScore'] = { gte: context.performanceThreshold };
|
|
162
|
+
}
|
|
163
|
+
if (context?.testPassingThreshold !== undefined) {
|
|
164
|
+
customizedGoal.conditions['quality.testsPassing'] = { gte: context.testPassingThreshold };
|
|
165
|
+
}
|
|
166
|
+
return customizedGoal;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Convert GOAP goal definition to database-compatible format
|
|
170
|
+
*/
|
|
171
|
+
function toGOAPGoal(definition) {
|
|
172
|
+
return {
|
|
173
|
+
id: definition.id,
|
|
174
|
+
name: definition.name,
|
|
175
|
+
description: definition.description,
|
|
176
|
+
conditions: definition.conditions,
|
|
177
|
+
priority: definition.priority,
|
|
178
|
+
costWeight: 1.0,
|
|
179
|
+
deadlineSeconds: definition.timeoutSeconds
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Validate that a goal's required measurements can be achieved
|
|
184
|
+
* by the available actions
|
|
185
|
+
*/
|
|
186
|
+
function validateGoalAchievability(goal, availableActions) {
|
|
187
|
+
const missingEffects = [];
|
|
188
|
+
// Check each required measurement
|
|
189
|
+
for (const measurement of goal.requiredMeasurements || []) {
|
|
190
|
+
const canAchieve = availableActions.some(action => {
|
|
191
|
+
const effects = action.effects;
|
|
192
|
+
for (const [key, effect] of Object.entries(effects)) {
|
|
193
|
+
if (key.includes(measurement) && effect?.set === true) {
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return false;
|
|
198
|
+
});
|
|
199
|
+
if (!canAchieve) {
|
|
200
|
+
missingEffects.push(measurement);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return {
|
|
204
|
+
achievable: missingEffects.length === 0,
|
|
205
|
+
missingEffects
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=TaskWorkflowGoals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskWorkflowGoals.js","sourceRoot":"","sources":["../../../src/planning/goals/TaskWorkflowGoals.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AA4IH,wCAMC;AAKD,sDAEC;AAQD,0DA6BC;AAKD,gCAUC;AAMD,8DA2BC;AAzND;;GAEG;AACU,QAAA,mBAAmB,GAAuC;IACrE;;;OAGG;IACH,uBAAuB,EAAE;QACvB,EAAE,EAAE,4BAA4B;QAChC,IAAI,EAAE,gCAAgC;QACtC,WAAW,EAAE,qEAAqE;QAClF,UAAU,EAAE;YACV,gCAAgC;YAChC,uBAAuB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;YACrC,sBAAsB,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;YACnC,4BAA4B;YAC5B,mBAAmB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;YACjC,eAAe,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;YAC5B,wBAAwB;YACxB,2BAA2B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;YACzC,2BAA2B;YAC3B,4BAA4B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;SAC3C;QACD,iBAAiB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC;QACnD,QAAQ,EAAE,CAAC;QACX,cAAc,EAAE,IAAI,EAAE,aAAa;QACnC,UAAU,EAAE,CAAC;QACb,oBAAoB,EAAE,CAAC,eAAe,EAAE,mBAAmB,EAAE,oBAAoB,CAAC;KACnF;IAED;;;;;;;;OAQG;IACH,cAAc,EAAE;QACd,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,sDAAsD;QACnE,UAAU,EAAE;YACV,6BAA6B;YAC7B,uBAAuB,EA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,MAAM,OAAO,GAAG,MAAM,CAAC,OAA4C,CAAC;YACpE,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;gBACpD,IAAI,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,MAAM,EAAE,GAAG,KAAK,IAAI,EAAE,CAAC;oBACtD,OAAO,IAAI,CAAC;gBACd,CAAC;YACH,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IAED,OAAO;QACL,UAAU,EAAE,cAAc,CAAC,MAAM,KAAK,CAAC;QACvC,cAAc;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GOAP Goals Module
|
|
3
|
+
*
|
|
4
|
+
* Exports goal definitions for GOAP planning.
|
|
5
|
+
*
|
|
6
|
+
* @module planning/goals
|
|
7
|
+
* @version 1.0.0
|
|
8
|
+
*/
|
|
9
|
+
export { TASK_WORKFLOW_GOALS, TaskGoalDefinition, getGoalForType, getAvailableTaskTypes, customizeGoalConditions, toGOAPGoal, validateGoalAchievability } from './TaskWorkflowGoals';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/planning/goals/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,UAAU,EACV,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* GOAP Goals Module
|
|
4
|
+
*
|
|
5
|
+
* Exports goal definitions for GOAP planning.
|
|
6
|
+
*
|
|
7
|
+
* @module planning/goals
|
|
8
|
+
* @version 1.0.0
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.validateGoalAchievability = exports.toGOAPGoal = exports.customizeGoalConditions = exports.getAvailableTaskTypes = exports.getGoalForType = exports.TASK_WORKFLOW_GOALS = void 0;
|
|
12
|
+
var TaskWorkflowGoals_1 = require("./TaskWorkflowGoals");
|
|
13
|
+
Object.defineProperty(exports, "TASK_WORKFLOW_GOALS", { enumerable: true, get: function () { return TaskWorkflowGoals_1.TASK_WORKFLOW_GOALS; } });
|
|
14
|
+
Object.defineProperty(exports, "getGoalForType", { enumerable: true, get: function () { return TaskWorkflowGoals_1.getGoalForType; } });
|
|
15
|
+
Object.defineProperty(exports, "getAvailableTaskTypes", { enumerable: true, get: function () { return TaskWorkflowGoals_1.getAvailableTaskTypes; } });
|
|
16
|
+
Object.defineProperty(exports, "customizeGoalConditions", { enumerable: true, get: function () { return TaskWorkflowGoals_1.customizeGoalConditions; } });
|
|
17
|
+
Object.defineProperty(exports, "toGOAPGoal", { enumerable: true, get: function () { return TaskWorkflowGoals_1.toGOAPGoal; } });
|
|
18
|
+
Object.defineProperty(exports, "validateGoalAchievability", { enumerable: true, get: function () { return TaskWorkflowGoals_1.validateGoalAchievability; } });
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/planning/goals/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,yDAQ6B;AAP3B,wHAAA,mBAAmB,OAAA;AAEnB,mHAAA,cAAc,OAAA;AACd,0HAAA,qBAAqB,OAAA;AACrB,4HAAA,uBAAuB,OAAA;AACvB,+GAAA,UAAU,OAAA;AACV,8HAAA,yBAAyB,OAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GOAP Planning Module
|
|
3
|
+
*
|
|
4
|
+
* Goal-Oriented Action Planning for Agentic QE:
|
|
5
|
+
* - Quality Gate decisions with A* search
|
|
6
|
+
* - Test Strategy generation
|
|
7
|
+
* - Fleet Orchestration
|
|
8
|
+
* - Adaptive replanning on failure
|
|
9
|
+
*
|
|
10
|
+
* @module planning
|
|
11
|
+
* @version 1.0.0
|
|
12
|
+
*/
|
|
13
|
+
export { WorldState, ConditionOperators, StateConditions, EffectOperators, ActionEffects, GOAPAction, GOAPGoal, GOAPPlan, PlanConstraints, PlanNode, ExecutedAction, ExecutionStep, ExecutionResult, GOAPGoalRecord, GOAPActionRecord, GOAPPlanRecord, GOAPExecutionStepRecord, DEFAULT_WORLD_STATE } from './types';
|
|
14
|
+
export { GOAPPlanner } from './GOAPPlanner';
|
|
15
|
+
export { WorldStateBuilder, QualityMetricsInput, FleetStatusInput, ResourceInput, ContextInput, createWorldState } from './WorldStateBuilder';
|
|
16
|
+
export { GOAPQualityGateIntegration, QualityGateMetrics, QualityGateContext, RemediationPlan, RemediationAction, AlternativePath, QUALITY_GATE_GOALS, createQualityGateIntegration, GOAPTaskOrchestration, OrchestrationContext, TaskSpec, GOAPWorkflowStep, GOAPWorkflowResult, createGOAPTaskOrchestration } from './integration';
|
|
17
|
+
export { TASK_WORKFLOW_GOALS, TaskGoalDefinition, getGoalForType, getAvailableTaskTypes, customizeGoalConditions, toGOAPGoal, validateGoalAchievability } from './goals';
|
|
18
|
+
export { PlanExecutor, createPlanExecutor, executeQualityGateRemediation, type ActionExecutionResult, type PlanExecutionResult, type PlanExecutionConfig } from './execution';
|
|
19
|
+
export { allActions, getAction, getActionsByCategory, getActionsForAgentType, getActionsWithinCost, getActionsWithinTime, getReliableActions, actionStats, qualityGateActions, getQualityGateAction, getQualityGateActionsByCategory, runUnitTests, runIntegrationTests, generateMissingTests, runSecurityScan, fixCriticalVulnerabilities, runPerformanceBenchmark, analyzeCodeComplexity, requestGateException, runSmokeTests, evaluateQualityGate, finalizeQualityGate, testStrategyActions, getTestStrategyAction, getQuickTestStrategyActions, getCoverageImprovementActions, analyzeChangeImpact, prioritizeTestsByRisk, selectMinimalTestSuite, analyzeCoverageGaps, generateTargetedTests, runCriticalPathTests, detectFlakyTests, stabilizeFlakyTests, generateBDDScenarios, optimizeParallelExecution, fleetActions, getFleetAction, getSpawnActions, getScalingActions, getSpawnActionForAgentType, spawnTestGenerator, spawnCoverageAnalyzer, spawnSecurityScanner, spawnPerformanceTester, spawnFlakyHunter, terminateIdleAgent, scaleUpParallel, scaleDownFleet, optimizeTopology, initHierarchicalCoordination, redistributeWorkload } from './actions';
|
|
20
|
+
import type { GOAPPlanner as GOAPPlannerType } from './GOAPPlanner';
|
|
21
|
+
/**
|
|
22
|
+
* Quick factory for creating a planner with default actions
|
|
23
|
+
*/
|
|
24
|
+
export declare function createPlanner(dbPath?: string): Promise<GOAPPlannerType>;
|
|
25
|
+
/**
|
|
26
|
+
* Planning module metadata
|
|
27
|
+
*/
|
|
28
|
+
export declare const planningInfo: {
|
|
29
|
+
version: string;
|
|
30
|
+
actionCount: number;
|
|
31
|
+
categories: string[];
|
|
32
|
+
capabilities: string[];
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/planning/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,aAAa,EACb,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,cAAc,EACd,aAAa,EACb,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,WAAW,EAAE,MAAM,e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,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,4BAA4B,EAC5B,oBAAoB,EACrB,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAEpE;;GAEG;AACH,wBAAsB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAoB7E;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;CAYxB,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* GOAP Planning Module
|
|
4
|
+
*
|
|
5
|
+
* Goal-Oriented Action Planning for Agentic QE:
|
|
6
|
+
* - Quality Gate decisions with A* search
|
|
7
|
+
* - Test Strategy generation
|
|
8
|
+
* - Fleet Orchestration
|
|
9
|
+
* - Adaptive replanning on failure
|
|
10
|
+
*
|
|
11
|
+
* @module planning
|
|
12
|
+
* @version 1.0.0
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
17
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
18
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(o, k2, desc);
|
|
21
|
+
}) : (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
o[k2] = m[k];
|
|
24
|
+
}));
|
|
25
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
26
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
27
|
+
}) : function(o, v) {
|
|
28
|
+
o["default"] = v;
|
|
29
|
+
});
|
|
30
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
31
|
+
var ownKeys = function(o) {
|
|
32
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
33
|
+
var ar = [];
|
|
34
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
+
return ar;
|
|
36
|
+
};
|
|
37
|
+
return ownKeys(o);
|
|
38
|
+
};
|
|
39
|
+
return function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.runCriticalPathTests = exports.generateTargetedTests = exports.analyzeCoverageGaps = exports.selectMinimalTestSuite = exports.prioritizeTestsByRisk = exports.analyzeChangeImpact = exports.getCoverageImprovementActions = exports.getQuickTestStrategyActions = exports.getTestStrategyAction = exports.testStrategyActions = exports.finalizeQualityGate = exports.evaluateQualityGate = exports.runSmokeTests = exports.requestGateException = exports.analyzeCodeComplexity = exports.runPerformanceBenchmark = exports.fixCriticalVulnerabilities = exports.runSecurityScan = exports.generateMissingTests = exports.runIntegrationTests = exports.runUnitTests = exports.getQualityGateActionsByCategory = exports.getQualityGateAction = exports.qualityGateActions = exports.actionStats = exports.getReliableActions = exports.getActionsWithinTime = exports.getActionsWithinCost = exports.getActionsForAgentType = exports.getActionsByCategory = exports.getAction = exports.allActions = exports.executeQualityGateRemediation = exports.createPlanExecutor = exports.PlanExecutor = exports.validateGoalAchievability = exports.toGOAPGoal = exports.customizeGoalConditions = exports.getAvailableTaskTypes = exports.getGoalForType = exports.TASK_WORKFLOW_GOALS = exports.createGOAPTaskOrchestration = exports.GOAPTaskOrchestration = exports.createQualityGateIntegration = exports.QUALITY_GATE_GOALS = exports.GOAPQualityGateIntegration = exports.createWorldState = exports.WorldStateBuilder = exports.GOAPPlanner = exports.DEFAULT_WORLD_STATE = void 0;
|
|
49
|
+
exports.planningInfo = exports.redistributeWorkload = exports.initHierarchicalCoordination = exports.optimizeTopology = exports.scaleDownFleet = exports.scaleUpParallel = exports.terminateIdleAgent = exports.spawnFlakyHunter = exports.spawnPerformanceTester = exports.spawnSecurityScanner = exports.spawnCoverageAnalyzer = exports.spawnTestGenerator = exports.getSpawnActionForAgentType = exports.getScalingActions = exports.getSpawnActions = exports.getFleetAction = exports.fleetActions = exports.optimizeParallelExecution = exports.generateBDDScenarios = exports.stabilizeFlakyTests = exports.detectFlakyTests = void 0;
|
|
50
|
+
exports.createPlanner = createPlanner;
|
|
51
|
+
// Core Types
|
|
52
|
+
var types_1 = require("./types");
|
|
53
|
+
Object.defineProperty(exports, "DEFAULT_WORLD_STATE", { enumerable: true, get: function () { return types_1.DEFAULT_WORLD_STATE; } });
|
|
54
|
+
// Planner
|
|
55
|
+
var GOAPPlanner_1 = require("./GOAPPlanner");
|
|
56
|
+
Object.defineProperty(exports, "GOAPPlanner", { enumerable: true, get: function () { return GOAPPlanner_1.GOAPPlanner; } });
|
|
57
|
+
// World State Builder
|
|
58
|
+
var WorldStateBuilder_1 = require("./WorldStateBuilder");
|
|
59
|
+
Object.defineProperty(exports, "WorldStateBuilder", { enumerable: true, get: function () { return WorldStateBuilder_1.WorldStateBuilder; } });
|
|
60
|
+
Object.defineProperty(exports, "createWorldState", { enumerable: true, get: function () { return WorldStateBuilder_1.createWorldState; } });
|
|
61
|
+
// Integration Modules
|
|
62
|
+
var integration_1 = require("./integration");
|
|
63
|
+
Object.defineProperty(exports, "GOAPQualityGateIntegration", { enumerable: true, get: function () { return integration_1.GOAPQualityGateIntegration; } });
|
|
64
|
+
Object.defineProperty(exports, "QUALITY_GATE_GOALS", { enumerable: true, get: function () { return integration_1.QUALITY_GATE_GOALS; } });
|
|
65
|
+
Object.defineProperty(exports, "createQualityGateIntegration", { enumerable: true, get: function () { return integration_1.createQualityGateIntegration; } });
|
|
66
|
+
// Task Orchestration (Phase 3)
|
|
67
|
+
Object.defineProperty(exports, "GOAPTaskOrchestration", { enumerable: true, get: function () { return integration_1.GOAPTaskOrchestration; } });
|
|
68
|
+
Object.defineProperty(exports, "createGOAPTaskOrchestration", { enumerable: true, get: function () { return integration_1.createGOAPTaskOrchestration; } });
|
|
69
|
+
// Goals Module
|
|
70
|
+
var goals_1 = require("./goals");
|
|
71
|
+
Object.defineProperty(exports, "TASK_WORKFLOW_GOALS", { enumerable: true, get: function () { return goals_1.TASK_WORKFLOW_GOALS; } });
|
|
72
|
+
Object.defineProperty(exports, "getGoalForType", { enumerable: true, get: function () { return goals_1.getGoalForType; } });
|
|
73
|
+
Object.defineProperty(exports, "getAvailableTaskTypes", { enumerable: true, get: function () { return goals_1.getAvailableTaskTypes; } });
|
|
74
|
+
Object.defineProperty(exports, "customizeGoalConditions", { enumerable: true, get: function () { return goals_1.customizeGoalConditions; } });
|
|
75
|
+
Object.defineProperty(exports, "toGOAPGoal", { enumerable: true, get: function () { return goals_1.toGOAPGoal; } });
|
|
76
|
+
Object.defineProperty(exports, "validateGoalAchievability", { enumerable: true, get: function () { return goals_1.validateGoalAchievability; } });
|
|
77
|
+
// Execution Module
|
|
78
|
+
var execution_1 = require("./execution");
|
|
79
|
+
Object.defineProperty(exports, "PlanExecutor", { enumerable: true, get: function () { return execution_1.PlanExecutor; } });
|
|
80
|
+
Object.defineProperty(exports, "createPlanExecutor", { enumerable: true, get: function () { return execution_1.createPlanExecutor; } });
|
|
81
|
+
Object.defineProperty(exports, "executeQualityGateRemediation", { enumerable: true, get: function () { return execution_1.executeQualityGateRemediation; } });
|
|
82
|
+
// Action Library
|
|
83
|
+
var actions_1 = require("./actions");
|
|
84
|
+
// All actions
|
|
85
|
+
Object.defineProperty(exports, "allActions", { enumerable: true, get: function () { return actions_1.allActions; } });
|
|
86
|
+
Object.defineProperty(exports, "getAction", { enumerable: true, get: function () { return actions_1.getAction; } });
|
|
87
|
+
Object.defineProperty(exports, "getActionsByCategory", { enumerable: true, get: function () { return actions_1.getActionsByCategory; } });
|
|
88
|
+
Object.defineProperty(exports, "getActionsForAgentType", { enumerable: true, get: function () { return actions_1.getActionsForAgentType; } });
|
|
89
|
+
Object.defineProperty(exports, "getActionsWithinCost", { enumerable: true, get: function () { return actions_1.getActionsWithinCost; } });
|
|
90
|
+
Object.defineProperty(exports, "getActionsWithinTime", { enumerable: true, get: function () { return actions_1.getActionsWithinTime; } });
|
|
91
|
+
Object.defineProperty(exports, "getReliableActions", { enumerable: true, get: function () { return actions_1.getReliableActions; } });
|
|
92
|
+
Object.defineProperty(exports, "actionStats", { enumerable: true, get: function () { return actions_1.actionStats; } });
|
|
93
|
+
// Quality Gate
|
|
94
|
+
Object.defineProperty(exports, "qualityGateActions", { enumerable: true, get: function () { return actions_1.qualityGateActions; } });
|
|
95
|
+
Object.defineProperty(exports, "getQualityGateAction", { enumerable: true, get: function () { return actions_1.getQualityGateAction; } });
|
|
96
|
+
Object.defineProperty(exports, "getQualityGateActionsByCategory", { enumerable: true, get: function () { return actions_1.getQualityGateActionsByCategory; } });
|
|
97
|
+
Object.defineProperty(exports, "runUnitTests", { enumerable: true, get: function () { return actions_1.runUnitTests; } });
|
|
98
|
+
Object.defineProperty(exports, "runIntegrationTests", { enumerable: true, get: function () { return actions_1.runIntegrationTests; } });
|
|
99
|
+
Object.defineProperty(exports, "generateMissingTests", { enumerable: true, get: function () { return actions_1.generateMissingTests; } });
|
|
100
|
+
Object.defineProperty(exports, "runSecurityScan", { enumerable: true, get: function () { return actions_1.runSecurityScan; } });
|
|
101
|
+
Object.defineProperty(exports, "fixCriticalVulnerabilities", { enumerable: true, get: function () { return actions_1.fixCriticalVulnerabilities; } });
|
|
102
|
+
Object.defineProperty(exports, "runPerformanceBenchmark", { enumerable: true, get: function () { return actions_1.runPerformanceBenchmark; } });
|
|
103
|
+
Object.defineProperty(exports, "analyzeCodeComplexity", { enumerable: true, get: function () { return actions_1.analyzeCodeComplexity; } });
|
|
104
|
+
Object.defineProperty(exports, "requestGateException", { enumerable: true, get: function () { return actions_1.requestGateException; } });
|
|
105
|
+
Object.defineProperty(exports, "runSmokeTests", { enumerable: true, get: function () { return actions_1.runSmokeTests; } });
|
|
106
|
+
Object.defineProperty(exports, "evaluateQualityGate", { enumerable: true, get: function () { return actions_1.evaluateQualityGate; } });
|
|
107
|
+
Object.defineProperty(exports, "finalizeQualityGate", { enumerable: true, get: function () { return actions_1.finalizeQualityGate; } });
|
|
108
|
+
// Test Strategy
|
|
109
|
+
Object.defineProperty(exports, "testStrategyActions", { enumerable: true, get: function () { return actions_1.testStrategyActions; } });
|
|
110
|
+
Object.defineProperty(exports, "getTestStrategyAction", { enumerable: true, get: function () { return actions_1.getTestStrategyAction; } });
|
|
111
|
+
Object.defineProperty(exports, "getQuickTestStrategyActions", { enumerable: true, get: function () { return actions_1.getQuickTestStrategyActions; } });
|
|
112
|
+
Object.defineProperty(exports, "getCoverageImprovementActions", { enumerable: true, get: function () { return actions_1.getCoverageImprovementActions; } });
|
|
113
|
+
Object.defineProperty(exports, "analyzeChangeImpact", { enumerable: true, get: function () { return actions_1.analyzeChangeImpact; } });
|
|
114
|
+
Object.defineProperty(exports, "prioritizeTestsByRisk", { enumerable: true, get: function () { return actions_1.prioritizeTestsByRisk; } });
|
|
115
|
+
Object.defineProperty(exports, "selectMinimalTestSuite", { enumerable: true, get: function () { return actions_1.selectMinimalTestSuite; } });
|
|
116
|
+
Object.defineProperty(exports, "analyzeCoverageGaps", { enumerable: true, get: function () { return actions_1.analyzeCoverageGaps; } });
|
|
117
|
+
Object.defineProperty(exports, "generateTargetedTests", { enumerable: true, get: function () { return actions_1.generateTargetedTests; } });
|
|
118
|
+
Object.defineProperty(exports, "runCriticalPathTests", { enumerable: true, get: function () { return actions_1.runCriticalPathTests; } });
|
|
119
|
+
Object.defineProperty(exports, "detectFlakyTests", { enumerable: true, get: function () { return actions_1.detectFlakyTests; } });
|
|
120
|
+
Object.defineProperty(exports, "stabilizeFlakyTests", { enumerable: true, get: function () { return actions_1.stabilizeFlakyTests; } });
|
|
121
|
+
Object.defineProperty(exports, "generateBDDScenarios", { enumerable: true, get: function () { return actions_1.generateBDDScenarios; } });
|
|
122
|
+
Object.defineProperty(exports, "optimizeParallelExecution", { enumerable: true, get: function () { return actions_1.optimizeParallelExecution; } });
|
|
123
|
+
// Fleet Orchestration
|
|
124
|
+
Object.defineProperty(exports, "fleetActions", { enumerable: true, get: function () { return actions_1.fleetActions; } });
|
|
125
|
+
Object.defineProperty(exports, "getFleetAction", { enumerable: true, get: function () { return actions_1.getFleetAction; } });
|
|
126
|
+
Object.defineProperty(exports, "getSpawnActions", { enumerable: true, get: function () { return actions_1.getSpawnActions; } });
|
|
127
|
+
Object.defineProperty(exports, "getScalingActions", { enumerable: true, get: function () { return actions_1.getScalingActions; } });
|
|
128
|
+
Object.defineProperty(exports, "getSpawnActionForAgentType", { enumerable: true, get: function () { return actions_1.getSpawnActionForAgentType; } });
|
|
129
|
+
Object.defineProperty(exports, "spawnTestGenerator", { enumerable: true, get: function () { return actions_1.spawnTestGenerator; } });
|
|
130
|
+
Object.defineProperty(exports, "spawnCoverageAnalyzer", { enumerable: true, get: function () { return actions_1.spawnCoverageAnalyzer; } });
|
|
131
|
+
Object.defineProperty(exports, "spawnSecurityScanner", { enumerable: true, get: function () { return actions_1.spawnSecurityScanner; } });
|
|
132
|
+
Object.defineProperty(exports, "spawnPerformanceTester", { enumerable: true, get: function () { return actions_1.spawnPerformanceTester; } });
|
|
133
|
+
Object.defineProperty(exports, "spawnFlakyHunter", { enumerable: true, get: function () { return actions_1.spawnFlakyHunter; } });
|
|
134
|
+
Object.defineProperty(exports, "terminateIdleAgent", { enumerable: true, get: function () { return actions_1.terminateIdleAgent; } });
|
|
135
|
+
Object.defineProperty(exports, "scaleUpParallel", { enumerable: true, get: function () { return actions_1.scaleUpParallel; } });
|
|
136
|
+
Object.defineProperty(exports, "scaleDownFleet", { enumerable: true, get: function () { return actions_1.scaleDownFleet; } });
|
|
137
|
+
Object.defineProperty(exports, "optimizeTopology", { enumerable: true, get: function () { return actions_1.optimizeTopology; } });
|
|
138
|
+
Object.defineProperty(exports, "initHierarchicalCoordination", { enumerable: true, get: function () { return actions_1.initHierarchicalCoordination; } });
|
|
139
|
+
Object.defineProperty(exports, "redistributeWorkload", { enumerable: true, get: function () { return actions_1.redistributeWorkload; } });
|
|
140
|
+
/**
|
|
141
|
+
* Quick factory for creating a planner with default actions
|
|
142
|
+
*/
|
|
143
|
+
async function createPlanner(dbPath) {
|
|
144
|
+
const Database = (await Promise.resolve().then(() => __importStar(require('better-sqlite3')))).default;
|
|
145
|
+
const path = await Promise.resolve().then(() => __importStar(require('path')));
|
|
146
|
+
const fs = await Promise.resolve().then(() => __importStar(require('fs')));
|
|
147
|
+
const { GOAPPlanner: Planner } = await Promise.resolve().then(() => __importStar(require('./GOAPPlanner')));
|
|
148
|
+
const { allActions: actions } = await Promise.resolve().then(() => __importStar(require('./actions')));
|
|
149
|
+
const resolvedPath = dbPath || '.agentic-qe/memory.db';
|
|
150
|
+
const dir = path.dirname(resolvedPath);
|
|
151
|
+
if (!fs.existsSync(dir)) {
|
|
152
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
153
|
+
}
|
|
154
|
+
const db = new Database(resolvedPath);
|
|
155
|
+
const planner = new Planner(db);
|
|
156
|
+
// Add all default actions
|
|
157
|
+
planner.addActions(actions);
|
|
158
|
+
return planner;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Planning module metadata
|
|
162
|
+
*/
|
|
163
|
+
exports.planningInfo = {
|
|
164
|
+
version: '1.0.0',
|
|
165
|
+
actionCount: 31, // 10 QG + 10 TS + 11 Fleet
|
|
166
|
+
categories: ['test', 'security', 'performance', 'process', 'fleet', 'analysis'],
|
|
167
|
+
capabilities: [
|
|
168
|
+
'A* goal-oriented planning',
|
|
169
|
+
'Quality gate decisions',
|
|
170
|
+
'Test strategy generation',
|
|
171
|
+
'Fleet orchestration',
|
|
172
|
+
'Adaptive replanning',
|
|
173
|
+
'Plan persistence and learning'
|
|
174
|
+
]
|
|
175
|
+
};
|
|
176
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/planning/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiJH,sCAoBC;AAnKD,aAAa;AACb,iCAmBiB;AADf,4GAAA,mBAAmB,OAAA;AAGrB,UAAU;AACV,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AAEpB,sBAAsB;AACtB,yDAO6B;AAN3B,sHAAA,iBAAiB,OAAA;AAKjB,qHAAA,gBAAgB,OAAA;AAGlB,sBAAsB;AACtB,6CAgBuB;AAfrB,yHAAA,0BAA0B,OAAA;AAM1B,iHAAA,kBAAkB,OAAA;AAClB,2HAAA,4BAA4B,OAAA;AAC5B,+BAA+B;AAC/B,oHAAA,qBAAqB,OAAA;AAKrB,0HAAA,2BAA2B,OAAA;AAG7B,eAAe;AACf,iCAQiB;AAPf,4GAAA,mBAAmB,OAAA;AAEnB,uGAAA,cAAc,OAAA;AACd,8GAAA,qBAAqB,OAAA;AACrB,gHAAA,uBAAuB,OAAA;AACvB,mGAAA,UAAU,OAAA;AACV,kHAAA,yBAAyB,OAAA;AAG3B,mBAAmB;AACnB,yCAOqB;AANnB,yGAAA,YAAY,OAAA;AACZ,+GAAA,kBAAkB,OAAA;AAClB,0HAAA,6BAA6B,OAAA;AAM/B,iBAAiB;AACjB,qCA4DmB;AA3DjB,cAAc;AACd,qGAAA,UAAU,OAAA;AACV,oGAAA,SAAS,OAAA;AACT,+GAAA,oBAAoB,OAAA;AACpB,iH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