@@ -16,6 +16,7 @@ import { runDebugtopus } from "./debugtopus";
1616import { promptUser , resolveTestTargetId } from "./helpers" ;
1717import { startPrivateLocationWorker , stopPLW } from "./plw" ;
1818import {
19+ batchGeneration ,
1920 CreateDiscoveryBody ,
2021 createDiscovery ,
2122 createEnvironment ,
@@ -257,7 +258,6 @@ export const buildCmd = (): CompletableCommand => {
257258 . action ( addTestTargetWrapper ( deleteEnvironment ) ) ;
258259
259260 program
260-
261261 . completer ( optionsCompleter )
262262 . completableCommand ( "start-private-location" )
263263 . description (
@@ -276,22 +276,19 @@ export const buildCmd = (): CompletableCommand => {
276276 . action ( startPrivateLocationWorker ) ;
277277
278278 program
279-
280279 . completableCommand ( "stop-private-location" )
281280 . completer ( optionsCompleter )
282281 . description (
283282 "Stop a private location worker, see https://octomind.dev/docs/proxy/private-location" ,
284283 )
285284 . helpGroup ( "private-locations" )
286-
287285 . action ( stopPLW ) ;
288286
289287 createCommandWithCommonOptions ( program , "notifications" )
290288 . completer ( testTargetIdCompleter )
291289 . description ( "Get notifications for a test target" )
292290 . helpGroup ( "notifications" )
293291 . addOption ( testTargetIdOption )
294-
295292 . action ( addTestTargetWrapper ( listNotifications ) ) ;
296293
297294 createCommandWithCommonOptions ( program , "delete-test-case" )
@@ -328,7 +325,6 @@ export const buildCmd = (): CompletableCommand => {
328325 splitter ,
329326 )
330327 . option ( "--folder-id [id]" , "Folder ID" )
331-
332328 . action ( addTestTargetWrapper ( createDiscovery ) ) ;
333329
334330 createCommandWithCommonOptions ( program , "list-test-cases" )
@@ -343,6 +339,18 @@ export const buildCmd = (): CompletableCommand => {
343339 . helpGroup ( "test-targets" )
344340 . action ( listTestTargets ) ;
345341
342+ createCommandWithCommonOptions ( program , "batch-generation" )
343+ . completer ( testTargetIdCompleter )
344+ . completer ( optionsCompleter )
345+ . description ( "Batch generation of test cases" )
346+ . requiredOption ( "-p, --prompt <prompt>" , "Batch generation prompt" )
347+ . requiredOption ( "-u, --url <url>" , "Start url for generation" )
348+ . option ( "-e, --environment-id <id>" , "Environment ID" )
349+ . option ( "-d, --prerequisite-id <id>" , "Prerequisite ID" )
350+ . helpGroup ( "execute" )
351+ . addOption ( testTargetIdOption )
352+ . action ( addTestTargetWrapper ( batchGeneration ) ) ;
353+
346354 program
347355 . completableCommand ( "install-completion" )
348356 . description ( "Install tab completion" )
0 commit comments