edsger 0.8.4 → 0.8.6

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.
@@ -26,6 +26,13 @@ export async function fetchFeatureAnalysisContext(featureId, verbose) {
26
26
  logInfo(` Product: ${product.name}`);
27
27
  logInfo(` Existing User Stories: ${existing_user_stories.length}`);
28
28
  logInfo(` Existing Test Cases: ${existing_test_cases.length}`);
29
+ // Debug: Log first test case to diagnose status field issue
30
+ if (existing_test_cases.length > 0) {
31
+ console.log('🔍 DEBUG: First test case from MCP:');
32
+ console.log(JSON.stringify(existing_test_cases[0], null, 2));
33
+ console.log(`🔍 DEBUG: Has status field? ${'status' in existing_test_cases[0]}`);
34
+ console.log(`🔍 DEBUG: Status value: ${existing_test_cases[0].status}`);
35
+ }
29
36
  }
30
37
  return {
31
38
  feature,
@@ -51,7 +58,7 @@ export function formatContextForPrompt(context) {
51
58
  return 'No user stories defined.';
52
59
  return stories
53
60
  .map((story, index) => `${index + 1}. **${story.title}** (Status: ${story.status})
54
- ${story.status === 'draft' ? `ID: ${story.id} [DELETABLE]` : ''}
61
+ ID: ${story.id}${story.status === 'draft' ? ' [DELETABLE]' : ''}
55
62
  ${story.description}`)
56
63
  .join('\n\n');
57
64
  };
@@ -60,18 +67,8 @@ export function formatContextForPrompt(context) {
60
67
  return 'No test cases defined.';
61
68
  return cases
62
69
  .map((testCase, index) => {
63
- // Debug: Log test case status to help diagnose deletion issues
64
- if (index === 0) {
65
- console.log('🔍 First test case data:', {
66
- id: testCase.id,
67
- name: testCase.name,
68
- status: testCase.status,
69
- hasStatus: 'status' in testCase,
70
- statusType: typeof testCase.status,
71
- });
72
- }
73
70
  return `${index + 1}. **${testCase.name}** ${testCase.is_critical ? '[CRITICAL]' : '[OPTIONAL]'} (Status: ${testCase.status || 'unknown'})
74
- ${testCase.status === 'draft' ? `ID: ${testCase.id} [DELETABLE]` : ''}
71
+ ID: ${testCase.id}${testCase.status === 'draft' ? ' [DELETABLE]' : ''}
75
72
  ${testCase.description}`;
76
73
  })
77
74
  .join('\n\n');
@@ -7,6 +7,7 @@ export function formatUserStories(stories) {
7
7
  return 'No user stories defined.';
8
8
  return stories
9
9
  .map((story, index) => `${index + 1}. **${story.title}** (Status: ${story.status})
10
+ ID: ${story.id}${story.status === 'draft' ? ' [DELETABLE]' : ''}
10
11
  ${story.description}`)
11
12
  .join('\n\n');
12
13
  }
@@ -17,7 +18,8 @@ export function formatTestCases(cases) {
17
18
  if (cases.length === 0)
18
19
  return 'No test cases defined.';
19
20
  return cases
20
- .map((testCase, index) => `${index + 1}. **${testCase.name}** ${testCase.is_critical ? '[CRITICAL]' : '[OPTIONAL]'}
21
+ .map((testCase, index) => `${index + 1}. **${testCase.name}** ${testCase.is_critical ? '[CRITICAL]' : '[OPTIONAL]'} (Status: ${testCase.status || 'unknown'})
22
+ ID: ${testCase.id}${testCase.status === 'draft' ? ' [DELETABLE]' : ''}
21
23
  ${testCase.description}`)
22
24
  .join('\n\n');
23
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edsger",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "edsger": "dist/index.js"