@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')
|
|
@@ -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 {
|