edsger 0.2.2 → 0.2.4
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/README.md +17 -0
- package/dist/api/features/batch-operations.d.ts +16 -0
- package/dist/api/features/batch-operations.js +100 -0
- package/dist/api/features/index.d.ts +1 -0
- package/dist/api/features/index.js +1 -0
- package/dist/api/features/test-cases.d.ts +8 -0
- package/dist/api/features/test-cases.js +45 -0
- package/dist/api/features/user-stories.d.ts +8 -0
- package/dist/api/features/user-stories.js +45 -0
- package/dist/cli/commands/refactor-command.d.ts +2 -0
- package/dist/cli/commands/refactor-command.js +107 -0
- package/dist/cli/index.js +7 -0
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +4 -99
- package/dist/phases/code-implementation/analyzer-helpers.d.ts +28 -0
- package/dist/phases/code-implementation/analyzer-helpers.js +177 -0
- package/dist/phases/code-implementation/analyzer.d.ts +2 -0
- package/dist/phases/code-implementation/analyzer.js +308 -179
- package/dist/phases/code-implementation-verification/index.d.ts +1 -0
- package/dist/phases/code-implementation-verification/index.js +1 -0
- package/dist/phases/code-implementation-verification/verifier.d.ts +31 -0
- package/dist/phases/code-implementation-verification/verifier.js +196 -0
- package/dist/phases/feature-analysis/analyzer-helpers.d.ts +62 -0
- package/dist/phases/feature-analysis/analyzer-helpers.js +450 -0
- package/dist/phases/feature-analysis/analyzer.d.ts +1 -0
- package/dist/phases/feature-analysis/analyzer.js +132 -213
- package/dist/phases/feature-analysis-verification/index.d.ts +1 -0
- package/dist/phases/feature-analysis-verification/index.js +1 -0
- package/dist/phases/feature-analysis-verification/verifier.d.ts +37 -0
- package/dist/phases/feature-analysis-verification/verifier.js +147 -0
- package/dist/phases/pull-request/creator.js +10 -9
- package/dist/phases/technical-design/analyzer-helpers.d.ts +37 -0
- package/dist/phases/technical-design/analyzer-helpers.js +144 -0
- package/dist/phases/technical-design/analyzer.d.ts +3 -0
- package/dist/phases/technical-design/analyzer.js +282 -312
- package/dist/phases/technical-design-verification/index.d.ts +1 -0
- package/dist/phases/technical-design-verification/index.js +1 -0
- package/dist/phases/technical-design-verification/verifier.d.ts +36 -0
- package/dist/phases/technical-design-verification/verifier.js +147 -0
- package/dist/prompts/checklist-verification.d.ts +11 -0
- package/dist/prompts/checklist-verification.js +153 -0
- package/dist/prompts/code-implementation-improvement.d.ts +5 -0
- package/dist/prompts/code-implementation-improvement.js +108 -0
- package/dist/prompts/code-implementation-verification.d.ts +3 -0
- package/dist/prompts/code-implementation-verification.js +176 -0
- package/dist/prompts/feature-analysis-improvement.d.ts +8 -0
- package/dist/prompts/feature-analysis-improvement.js +109 -0
- package/dist/prompts/feature-analysis.js +1 -1
- package/dist/prompts/formatters.d.ts +17 -4
- package/dist/prompts/formatters.js +41 -12
- package/dist/prompts/technical-design-improvement.d.ts +5 -0
- package/dist/prompts/technical-design-improvement.js +93 -0
- package/dist/prompts/technical-design-verification.d.ts +11 -0
- package/dist/prompts/technical-design-verification.js +134 -0
- package/dist/prompts/technical-design.js +1 -1
- package/dist/services/audit-logs.d.ts +60 -0
- package/dist/services/audit-logs.js +115 -0
- package/dist/services/checklist.d.ts +1 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/utils/image-downloader.d.ts +32 -0
- package/dist/utils/image-downloader.js +144 -0
- package/dist/workflow-runner/executors/phase-executor.js +56 -12
- package/package.json +1 -1
- package/dist/api/features.d.ts +0 -100
- package/dist/api/features.js +0 -219
- package/dist/logger.d.ts +0 -19
- package/dist/logger.js +0 -52
- package/dist/types.d.ts +0 -99
- package/dist/types.js +0 -1
- package/dist/workflow-runner/config/stage-configs.d.ts +0 -5
- package/dist/workflow-runner/config/stage-configs.js +0 -34
- package/dist/workflow-runner/core/feature-filter.test.d.ts +0 -4
- package/dist/workflow-runner/core/feature-filter.test.js +0 -127
- package/dist/workflow-runner/executors/stage-executor.d.ts +0 -8
- package/dist/workflow-runner/executors/stage-executor.js +0 -49
- package/dist/workflow-runner/feature-fetcher.d.ts +0 -41
- package/dist/workflow-runner/feature-fetcher.js +0 -121
- package/dist/workflow-runner/feature-service.d.ts +0 -17
- package/dist/workflow-runner/feature-service.js +0 -60
- package/dist/workflow-runner/pipeline.d.ts +0 -18
- package/dist/workflow-runner/pipeline.js +0 -197
- package/dist/workflow-runner/processor.d.ts +0 -40
- package/dist/workflow-runner/processor.js +0 -191
- package/dist/workflow-runner/status-updater.d.ts +0 -27
- package/dist/workflow-runner/status-updater.js +0 -80
- package/dist/workflow-runner/types.d.ts +0 -48
- package/dist/workflow-runner/types.js +0 -4
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Feature status updater for workflow pipeline
|
|
3
|
-
* Updates feature status at each stage of the development workflow
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Update feature status via MCP endpoint
|
|
7
|
-
*/
|
|
8
|
-
export async function updateFeatureStatus({ mcpServerUrl, mcpToken, featureId, status, verbose = false, }) {
|
|
9
|
-
try {
|
|
10
|
-
if (verbose) {
|
|
11
|
-
console.log(`📊 Updating feature ${featureId} status to: ${status}`);
|
|
12
|
-
}
|
|
13
|
-
const response = await fetch(`${mcpServerUrl}/mcp`, {
|
|
14
|
-
method: 'POST',
|
|
15
|
-
headers: {
|
|
16
|
-
'Content-Type': 'application/json',
|
|
17
|
-
Authorization: `Bearer ${mcpToken}`,
|
|
18
|
-
},
|
|
19
|
-
body: JSON.stringify({
|
|
20
|
-
jsonrpc: '2.0',
|
|
21
|
-
method: 'features/update',
|
|
22
|
-
params: {
|
|
23
|
-
feature_id: featureId,
|
|
24
|
-
status,
|
|
25
|
-
},
|
|
26
|
-
id: Math.random().toString(36).substring(7),
|
|
27
|
-
}),
|
|
28
|
-
});
|
|
29
|
-
if (!response.ok) {
|
|
30
|
-
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
|
|
31
|
-
}
|
|
32
|
-
const data = await response.json();
|
|
33
|
-
if (data.error) {
|
|
34
|
-
throw new Error(data.error.message || 'Status update failed');
|
|
35
|
-
}
|
|
36
|
-
if (verbose) {
|
|
37
|
-
console.log(`✅ Feature status updated successfully to: ${status}`);
|
|
38
|
-
}
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
catch (error) {
|
|
42
|
-
if (verbose) {
|
|
43
|
-
console.error(`❌ Failed to update feature status: ${error instanceof Error ? error.message : String(error)}`);
|
|
44
|
-
}
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Map pipeline stage to feature status
|
|
50
|
-
*/
|
|
51
|
-
export const getStatusForStage = (stage) => {
|
|
52
|
-
switch (stage) {
|
|
53
|
-
case 'feature-analysis':
|
|
54
|
-
return 'feature_analysis';
|
|
55
|
-
case 'technical-design':
|
|
56
|
-
return 'technical_design';
|
|
57
|
-
case 'code-implementation':
|
|
58
|
-
return 'code_implementation';
|
|
59
|
-
case 'functional-testing':
|
|
60
|
-
return 'testing_in_progress';
|
|
61
|
-
case 'testing-passed':
|
|
62
|
-
return 'testing_passed';
|
|
63
|
-
case 'testing-failed':
|
|
64
|
-
return 'testing_failed';
|
|
65
|
-
default:
|
|
66
|
-
return 'backlog';
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Update feature status based on pipeline stage
|
|
71
|
-
*/
|
|
72
|
-
export const updateFeatureStatusForStage = (mcpConfig, featureId, stage, verbose) => {
|
|
73
|
-
const status = getStatusForStage(stage);
|
|
74
|
-
return updateFeatureStatus({
|
|
75
|
-
...mcpConfig,
|
|
76
|
-
featureId,
|
|
77
|
-
status,
|
|
78
|
-
verbose,
|
|
79
|
-
});
|
|
80
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Types and interfaces for workflow processor
|
|
3
|
-
*/
|
|
4
|
-
import { EdsgerConfig } from '../types.js';
|
|
5
|
-
export interface WorkflowOptions {
|
|
6
|
-
readonly productId: string;
|
|
7
|
-
readonly mcpServerUrl: string;
|
|
8
|
-
readonly mcpToken: string;
|
|
9
|
-
readonly pollInterval?: number;
|
|
10
|
-
readonly maxRetries?: number;
|
|
11
|
-
readonly verbose?: boolean;
|
|
12
|
-
readonly githubToken?: string;
|
|
13
|
-
readonly githubOwner?: string;
|
|
14
|
-
readonly githubRepo?: string;
|
|
15
|
-
readonly githubBaseBranch?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface PipelineStageOptions {
|
|
18
|
-
readonly featureId: string;
|
|
19
|
-
readonly mcpServerUrl: string;
|
|
20
|
-
readonly mcpToken: string;
|
|
21
|
-
readonly verbose?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface PipelineResult {
|
|
24
|
-
readonly featureId: string;
|
|
25
|
-
readonly stage: string;
|
|
26
|
-
readonly status: 'success' | 'error';
|
|
27
|
-
readonly message: string;
|
|
28
|
-
readonly data?: unknown;
|
|
29
|
-
}
|
|
30
|
-
export interface FeatureProcessingState {
|
|
31
|
-
readonly featureId: string;
|
|
32
|
-
readonly retryCount: number;
|
|
33
|
-
readonly lastAttempt: Date;
|
|
34
|
-
readonly status: 'processing' | 'completed' | 'failed';
|
|
35
|
-
}
|
|
36
|
-
export interface WorkflowStats {
|
|
37
|
-
readonly totalProcessed: number;
|
|
38
|
-
readonly completed: number;
|
|
39
|
-
readonly failed: number;
|
|
40
|
-
readonly processing: number;
|
|
41
|
-
readonly isRunning: boolean;
|
|
42
|
-
}
|
|
43
|
-
export interface StageConfig {
|
|
44
|
-
readonly name: string;
|
|
45
|
-
readonly checkRequirements: () => Promise<boolean>;
|
|
46
|
-
readonly execute: (options: PipelineStageOptions, config: EdsgerConfig) => Promise<any>;
|
|
47
|
-
readonly requirementsError: string;
|
|
48
|
-
}
|