@zibby/core 0.1.16 → 0.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zibby/core",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Core test automation engine with multi-agent and multi-MCP support",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -169,9 +169,13 @@ export class CursorAgentStrategy extends AgentStrategy {
169
169
  logger.debug(`[Agent] Executing: ${fullCmd.slice(0, 200)}`);
170
170
  logger.debug(`[Agent] Workspace: ${workspace}`);
171
171
  if (process.env.LOG_LEVEL === 'debug' || process.env.ZIBBY_LOG_CURSOR_CLI === '1') {
172
- console.log(`\nšŸ”§ Cursor CLI --model ${model || 'auto'} (from .zibby.config.js agent.cursor.model)\n`);
173
- if (process.env.ZIBBY_LOG_CURSOR_CLI === '1') {
174
- console.log(` Full command: ${fullCmd}\n`);
172
+ try {
173
+ console.log(`\nšŸ”§ Cursor CLI --model ${model || 'auto'} (from .zibby.config.js agent.cursor.model)\n`);
174
+ if (process.env.ZIBBY_LOG_CURSOR_CLI === '1') {
175
+ console.log(` Full command: ${fullCmd}\n`);
176
+ }
177
+ } catch (err) {
178
+ // Ignore EPIPE errors from console.log
175
179
  }
176
180
  }
177
181
 
@@ -437,10 +441,16 @@ export class CursorAgentStrategy extends AgentStrategy {
437
441
  } else {
438
442
  timeline.stepTool(`Tool: ${displayName}`);
439
443
  }
440
- if (displayInput != null && typeof displayInput === 'object' && Object.keys(displayInput).length > 0) {
444
+ if (displayInput != null && typeof displayInput === 'object' && Object.keys(displayInput).length > 0 && !processClosed) {
441
445
  const raw = JSON.stringify(displayInput);
442
446
  const preview = raw.length > 100 ? `${raw.substring(0, 100)}...` : raw;
443
- console.log(` Input: ${preview}`);
447
+ try {
448
+ console.log(` Input: ${preview}`);
449
+ } catch (err) {
450
+ if (err.code !== 'EPIPE') {
451
+ logger.warn(`[Agent] console.log error: ${err.message}`);
452
+ }
453
+ }
444
454
  }
445
455
  };
446
456