explorbot 0.1.8 → 0.1.9

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "explorbot",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "CLI app built with React Ink, CodeceptJS, and Playwright",
5
5
  "license": "Elastic-2.0",
6
6
  "type": "module",
@@ -8,7 +8,10 @@ import { BaseCommand } from './base-command.js';
8
8
  export class ExploreCommand extends BaseCommand {
9
9
  name = 'explore';
10
10
  description = 'Start web exploration';
11
- options = [{ flags: '--max-tests <number>', description: 'Maximum number of tests to run' }];
11
+ options = [
12
+ { flags: '--max-tests <number>', description: 'Maximum number of tests to run' },
13
+ { flags: '--focus <feature>', description: 'Focus area for exploration' },
14
+ ];
12
15
  suggestions = ['/navigate <page> - to go to another page', '/research - to analyze', '/plan <feature> - to plan testing'];
13
16
  maxTests;
14
17
  testsRun = 0;
@@ -18,7 +21,7 @@ export class ExploreCommand extends BaseCommand {
18
21
  if (opts.maxTests) {
19
22
  this.maxTests = Number.parseInt(opts.maxTests, 10);
20
23
  }
21
- const feature = remaining.join(' ') || undefined;
24
+ const feature = opts.focus || remaining.join(' ') || undefined;
22
25
  const mainUrl = this.explorBot.getExplorer().getStateManager().getCurrentState()?.url;
23
26
  await this.runAllStyles(mainUrl, feature);
24
27
  const mainPlan = this.explorBot.getCurrentPlan();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "explorbot",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "CLI app built with React Ink, CodeceptJS, and Playwright",
5
5
  "license": "Elastic-2.0",
6
6
  "type": "module",
@@ -10,7 +10,10 @@ import { BaseCommand } from './base-command.js';
10
10
  export class ExploreCommand extends BaseCommand {
11
11
  name = 'explore';
12
12
  description = 'Start web exploration';
13
- options = [{ flags: '--max-tests <number>', description: 'Maximum number of tests to run' }];
13
+ options = [
14
+ { flags: '--max-tests <number>', description: 'Maximum number of tests to run' },
15
+ { flags: '--focus <feature>', description: 'Focus area for exploration' },
16
+ ];
14
17
  suggestions = ['/navigate <page> - to go to another page', '/research - to analyze', '/plan <feature> - to plan testing'];
15
18
 
16
19
  maxTests?: number;
@@ -23,7 +26,7 @@ export class ExploreCommand extends BaseCommand {
23
26
  this.maxTests = Number.parseInt(opts.maxTests as string, 10);
24
27
  }
25
28
 
26
- const feature = remaining.join(' ') || undefined;
29
+ const feature = (opts.focus as string) || remaining.join(' ') || undefined;
27
30
  const mainUrl = this.explorBot.getExplorer().getStateManager().getCurrentState()?.url;
28
31
 
29
32
  await this.runAllStyles(mainUrl, feature);