@claude-flow/cli 3.10.41 → 3.10.42

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.
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AAinK1E,eAAO,MAAM,YAAY,EAAE,OA0G1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AA8nK1E,eAAO,MAAM,YAAY,EAAE,OA0G1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -399,9 +399,20 @@ const postEditCommand = {
399
399
  metrics,
400
400
  timestamp: Date.now(),
401
401
  });
402
+ // #2352: the MCP handler returns `{success: false, error: "..."}` on
403
+ // validation failure (e.g. unsupported path shape) without throwing.
404
+ // Surface that explicitly instead of always printing the success line —
405
+ // Windows users were seeing `[OK]` while nothing reached the learning
406
+ // pipeline because absolute paths were rejected upstream.
407
+ const mcpFailed = result && result.success === false;
408
+ const mcpError = result?.error;
402
409
  if (ctx.flags.format === 'json') {
403
410
  output.printJson(result);
404
- return { success: true, data: result };
411
+ return { success: !mcpFailed, exitCode: mcpFailed ? 1 : 0, data: result };
412
+ }
413
+ if (mcpFailed) {
414
+ output.printError(`Post-edit hook failed: ${mcpError || 'unknown error'}`);
415
+ return { success: false, exitCode: 1 };
405
416
  }
406
417
  output.writeln();
407
418
  output.printSuccess(`Outcome recorded for ${filePath}`);