orchestrix-yuri 4.6.1 → 4.6.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.
@@ -299,7 +299,10 @@ function runClaude(args, cwd, timeout) {
299
299
  log.warn('Claude CLI timed out');
300
300
  return resolve({ reply: '⏱ Response timed out.', raw: '' });
301
301
  }
302
- if (err) {
302
+ // Claude CLI may return non-zero exit code even with valid JSON output
303
+ // (e.g., stderr "Warning: no stdin data received" causes exit code 1).
304
+ // Always try to parse stdout first before treating as error.
305
+ if (err && !stdout.trim()) {
303
306
  log.error(`Claude CLI error: ${err.message.slice(0, 200)}`);
304
307
  if (stderr) log.info(`stderr: ${stderr.slice(0, 200)}`);
305
308
  return resolve({ reply: `❌ Claude CLI error: ${err.message.slice(0, 200)}`, raw: stderr });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchestrix-yuri",
3
- "version": "4.6.1",
3
+ "version": "4.6.2",
4
4
  "description": "Yuri — Meta-Orchestrator for Orchestrix. Drive your entire project lifecycle with natural language.",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {