explorbot 0.1.19 → 0.1.20

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.
@@ -599,6 +599,22 @@ addCommonOptions(program.command('research <url>').description('Research a page
599
599
  }
600
600
  );
601
601
 
602
+ addCommonOptions(program.command('navigate <url>').description('Navigate to a URL using the AI Navigator. Exits 0 if reachable, 1 otherwise.')).action(async (url, options) => {
603
+ try {
604
+ const explorBot = new ExplorBot(buildExplorBotOptions(url, options));
605
+ await explorBot.start();
606
+
607
+ const { NavigateCommand } = await import('../src/commands/navigate-command.js');
608
+ await new NavigateCommand(explorBot).execute(url);
609
+
610
+ await explorBot.stop();
611
+ await showStatsAndExit(0);
612
+ } catch (error) {
613
+ console.error('Failed:', error instanceof Error ? error.message : 'Unknown error');
614
+ await showStatsAndExit(1);
615
+ }
616
+ });
617
+
602
618
  addCommonOptions(
603
619
  program.command('drill <url>').alias('driller').description('Drill all components on a page to learn interactions').option('--knowledge <path>', 'Save learned interactions to knowledge file at this URL path').option('--max-components <count>', 'Maximum number of components to drill')
604
620
  ).action(async (url, options) => {
@@ -544,6 +544,20 @@ addCommonOptions(program.command('research <url>').description('Research a page
544
544
  await showStatsAndExit(1);
545
545
  }
546
546
  });
547
+ addCommonOptions(program.command('navigate <url>').description('Navigate to a URL using the AI Navigator. Exits 0 if reachable, 1 otherwise.')).action(async (url, options) => {
548
+ try {
549
+ const explorBot = new ExplorBot(buildExplorBotOptions(url, options));
550
+ await explorBot.start();
551
+ const { NavigateCommand } = await import('../src/commands/navigate-command.js');
552
+ await new NavigateCommand(explorBot).execute(url);
553
+ await explorBot.stop();
554
+ await showStatsAndExit(0);
555
+ }
556
+ catch (error) {
557
+ console.error('Failed:', error instanceof Error ? error.message : 'Unknown error');
558
+ await showStatsAndExit(1);
559
+ }
560
+ });
547
561
  addCommonOptions(program.command('drill <url>').alias('driller').description('Drill all components on a page to learn interactions').option('--knowledge <path>', 'Save learned interactions to knowledge file at this URL path').option('--max-components <count>', 'Maximum number of components to drill')).action(async (url, options) => {
548
562
  try {
549
563
  const explorBot = new ExplorBot(buildExplorBotOptions(url, options));
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "explorbot",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "CLI app built with React Ink, CodeceptJS, and Playwright",
5
5
  "license": "Elastic-2.0",
6
6
  "type": "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "explorbot",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "CLI app built with React Ink, CodeceptJS, and Playwright",
5
5
  "license": "Elastic-2.0",
6
6
  "type": "module",