openads-ai 0.2.21 → 0.2.22

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.
Files changed (2) hide show
  1. package/dist/cli.js +15 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -12,6 +12,7 @@ import { runSetup } from './setup.js';
12
12
  import { runDoctor } from './doctor.js';
13
13
  import { runScheduleManager, runScheduledTask, openReportInBrowser, listReports } from './schedule.js';
14
14
  import enquirer from 'enquirer';
15
+ import readline from 'readline';
15
16
  const __filename = fileURLToPath(import.meta.url);
16
17
  const __dirname = path.dirname(__filename);
17
18
  const pkgDir = path.resolve(__dirname, '..');
@@ -304,13 +305,25 @@ async function main() {
304
305
  if (action === 'doctor') {
305
306
  await runDoctor();
306
307
  console.log(chalk.cyan('\n Press Enter to go back to the menu...'));
307
- await new Promise(resolve => process.stdin.once('data', resolve));
308
+ const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
309
+ await new Promise(resolve => {
310
+ rl.question('', () => {
311
+ rl.close();
312
+ resolve();
313
+ });
314
+ });
308
315
  continue;
309
316
  }
310
317
  if (action === 'skills') {
311
318
  showSkills();
312
319
  console.log(chalk.cyan('\n Press Enter to go back to the menu...'));
313
- await new Promise(resolve => process.stdin.once('data', resolve));
320
+ const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
321
+ await new Promise(resolve => {
322
+ rl.question('', () => {
323
+ rl.close();
324
+ resolve();
325
+ });
326
+ });
314
327
  continue;
315
328
  }
316
329
  if (action === 'schedule') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openads-ai",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "Open-source AI command center for digital marketers. Audit campaigns, write ad copy, and build strategies — from your terminal.",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {