@zibby/cli 0.1.23 → 0.1.25

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/bin/zibby.js CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  // Prevent EPIPE errors from crashing when stdout/stderr is closed
4
4
  process.stdout.on('error', (err) => {
5
- if (err.code === 'EPIPE') process.exit(0);
5
+ if (err.code === 'EPIPE') return;
6
6
  });
7
7
  process.stderr.on('error', (err) => {
8
- if (err.code === 'EPIPE') process.exit(0);
8
+ if (err.code === 'EPIPE') return;
9
9
  });
10
10
 
11
11
  // Suppress dotenv promotional messages
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zibby/cli",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "Zibby CLI - Test automation generator and runner",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@aws-sdk/client-sqs": "^3.1000.0",
35
35
  "@zibby/skills": "^0.1.3",
36
- "@zibby/core": "^0.1.18",
36
+ "@zibby/core": "^0.1.20",
37
37
  "@zibby/memory": "^0.1.3",
38
38
  "chalk": "^5.3.0",
39
39
  "commander": "^12.0.0",
@@ -24,6 +24,7 @@ import { writeMcpConfig } from '@zibby/core/utils/mcp-config-writer.js';
24
24
 
25
25
  const __filename = fileURLToPath(import.meta.url);
26
26
  const __dirname = dirname(__filename);
27
+ const cliPackageJson = JSON.parse(readFileSync(join(__dirname, '../../package.json'), 'utf-8'));
27
28
 
28
29
  /**
29
30
  * Node execution middleware - Captures logs and reports progress
@@ -188,6 +189,7 @@ export async function analyzeCommand(options) {
188
189
  const promptsDir = join(dirname(dirname(dirname(__dirname))), 'core', 'templates', 'code-analysis', 'prompts');
189
190
 
190
191
  console.log('\nšŸš€ Zibby Analysis (Graph Mode)');
192
+ console.log(`@zibby/cli v${cliPackageJson.version} | Node.js ${process.version}`);
191
193
  console.log('─'.repeat(60));
192
194
  console.log(`Ticket: ${TICKET_KEY}`);
193
195
  console.log(`Repositories: ${repos.length}`);
@@ -647,8 +647,8 @@ function generatePackageJson(projectName, _answers) {
647
647
  'test:headed': 'playwright test --headed'
648
648
  },
649
649
  dependencies: {
650
- '@zibby/cli': '^0.1.23',
651
- '@zibby/core': '^0.1.18'
650
+ '@zibby/cli': '^0.1.25',
651
+ '@zibby/core': '^0.1.20'
652
652
  },
653
653
  devDependencies: {
654
654
  '@playwright/test': '^1.49.0',
@@ -1,6 +1,7 @@
1
1
  import { runTest, logger, DEFAULT_OUTPUT_BASE, SESSIONS_DIR, DEFAULT_MODELS } from '@zibby/core';
2
2
  import { readFileSync, existsSync, statSync, mkdirSync, writeFileSync, rmSync } from 'fs';
3
- import { resolve, join } from 'path';
3
+ import { resolve, join, dirname } from 'path';
4
+ import { fileURLToPath } from 'url';
4
5
  import { glob } from 'glob';
5
6
  import chalk from 'chalk';
6
7
  import ora from 'ora';
@@ -9,6 +10,10 @@ import open from 'open';
9
10
  import { getApiUrl, getAccountApiUrl, getCurrentEnvironment, getFrontendUrl } from '../config/environments.js';
10
11
  import { getSessionToken, getUserInfo } from '../config/config.js';
11
12
 
13
+ const __filename = fileURLToPath(import.meta.url);
14
+ const __dirname = dirname(__filename);
15
+ const cliPackageJson = JSON.parse(readFileSync(join(__dirname, '../../package.json'), 'utf-8'));
16
+
12
17
  process.env.DOTENV_CONFIG_QUIET = 'true';
13
18
 
14
19
  const nodeEnv = process.env.NODE_ENV || 'development';
@@ -497,6 +502,7 @@ export async function runCommand(specPath, options) {
497
502
  // Let the agent's executePrompt handle it and propagate naturally
498
503
 
499
504
  console.log(chalk.bold.cyan('\nZibby Test Automation\n'));
505
+ console.log(chalk.gray(`@zibby/cli v${cliPackageJson.version} | Node.js ${process.version}`));
500
506
  console.log(chalk.gray('━'.repeat(50)));
501
507
 
502
508
  // --sources mode: fetch test cases from cloud and run them