edsger 0.19.4 → 0.19.5

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.
@@ -101,13 +101,15 @@ export const implementFeatureCode = async (options, config, checklistContext) =>
101
101
  }
102
102
  const context = await fetchCodeImplementationContext(featureId, verbose);
103
103
  // Fetch feedbacks for code implementation phase
104
+ // For multi-branch features, filter by the current branch to get branch-specific feedbacks
104
105
  let feedbacksInfo;
105
106
  try {
106
- const feedbacksContext = await getFeedbacksForPhase({ featureId, verbose }, 'code_implementation');
107
+ const feedbacksContext = await getFeedbacksForPhase({ featureId, verbose }, 'code_implementation', currentFeatureBranch?.id // Pass branch_id if we have a current branch
108
+ );
107
109
  if (feedbacksContext.feedbacks.length > 0) {
108
110
  feedbacksInfo = await formatFeedbacksForContext(feedbacksContext);
109
111
  if (verbose) {
110
- logInfo(`Added ${feedbacksContext.feedbacks.length} human feedbacks to implementation context`);
112
+ logInfo(`Added ${feedbacksContext.feedbacks.length} human feedbacks to implementation context${currentFeatureBranch ? ` (including branch-specific for "${currentFeatureBranch.name}")` : ''}`);
111
113
  }
112
114
  }
113
115
  }
@@ -11,6 +11,7 @@ export interface Feedback {
11
11
  id: string;
12
12
  feature_id: string | null;
13
13
  product_id: string | null;
14
+ branch_id?: string | null;
14
15
  user_story_id?: string | null;
15
16
  test_case_id?: string | null;
16
17
  phase: string;
@@ -35,13 +36,15 @@ export interface Feedback {
35
36
  export interface FeedbacksContext {
36
37
  phase: string;
37
38
  feature_id: string;
39
+ branch_id?: string | null;
38
40
  feedbacks: Feedback[];
39
41
  }
40
42
  /**
41
43
  * Fetch feedbacks for a specific phase
42
44
  * Includes both feature-level and product-level feedbacks
45
+ * For multi-branch features, can optionally filter by branch_id
43
46
  */
44
- export declare function getFeedbacksForPhase(options: PipelinePhaseOptions, phase: string): Promise<FeedbacksContext>;
47
+ export declare function getFeedbacksForPhase(options: PipelinePhaseOptions, phase: string, branchId?: string | null): Promise<FeedbacksContext>;
45
48
  /**
46
49
  * Format feedbacks context as string for LLM consumption
47
50
  * Downloads images from feedback content for Claude Code to view
@@ -6,8 +6,9 @@ import { downloadImagesForClaudeCode } from '../utils/image-downloader.js';
6
6
  /**
7
7
  * Fetch feedbacks for a specific phase
8
8
  * Includes both feature-level and product-level feedbacks
9
+ * For multi-branch features, can optionally filter by branch_id
9
10
  */
10
- export async function getFeedbacksForPhase(options, phase) {
11
+ export async function getFeedbacksForPhase(options, phase, branchId) {
11
12
  const { featureId, verbose } = options;
12
13
  const mcpServerUrl = process.env.EDSGER_MCP_SERVER_URL;
13
14
  const mcpToken = process.env.EDSGER_MCP_TOKEN;
@@ -21,6 +22,7 @@ export async function getFeedbacksForPhase(options, phase) {
21
22
  params: {
22
23
  feature_id: featureId,
23
24
  phase: dbPhase,
25
+ ...(branchId ? { branch_id: branchId } : {}),
24
26
  },
25
27
  };
26
28
  if (verbose) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edsger",
3
- "version": "0.19.4",
3
+ "version": "0.19.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "edsger": "dist/index.js"