@popoverai/dotrequirements 0.20.3 → 0.20.4

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/cli.js CHANGED
@@ -75,6 +75,7 @@ program
75
75
  .command('browsertest <requirement-key> [url]')
76
76
  .description('Run browser-based acceptance test for a requirement')
77
77
  .option('--json', 'Output results as JSON')
78
+ .option('--useAgent', 'Encourage Claude to use the Agent tool for multi-step tasks')
78
79
  .action(wrapCommand(browserTestCommand));
79
80
  program
80
81
  .command('mcp')
@@ -1,5 +1,6 @@
1
1
  interface BrowserTestOptions {
2
2
  json?: boolean;
3
+ useAgent?: boolean;
3
4
  }
4
5
  export declare function browserTestCommand(requirementKey: string, url: string | undefined, options: BrowserTestOptions): Promise<void>;
5
6
  export {};
@@ -82,7 +82,7 @@ export async function browserTestCommand(requirementKey, url, options) {
82
82
  console.log(`Testing ${requirementKey} against ${targetURL}...\n`);
83
83
  }
84
84
  try {
85
- const { stdout } = await execFileAsync('npx', ['@popoverai/browser-automation', 'test', targetURL, ...assertions], { env, maxBuffer: 10 * 1024 * 1024 });
85
+ const { stdout } = await execFileAsync('npx', ['@popoverai/browser-automation', 'test', ...(options.useAgent ? ['--useAgent'] : []), targetURL, ...assertions], { env, maxBuffer: 10 * 1024 * 1024 });
86
86
  // 9. Parse results
87
87
  let results;
88
88
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popoverai/dotrequirements",
3
- "version": "0.20.3",
3
+ "version": "0.20.4",
4
4
  "description": "Requirements tracking CLI, test harness, and MCP server",
5
5
  "type": "module",
6
6
  "bin": {