@@ -53,6 +53,7 @@ export type CommandSchema = {
5353 description : string ;
5454 details ?: readonly string [ ] ;
5555 positionalArgs : readonly string [ ] ;
56+ allowsExtraPositionals ?: boolean ;
5657 allowedFlags : readonly FlagKey [ ] ;
5758 defaults ?: Partial < CliFlags > ;
5859} ;
@@ -457,6 +458,7 @@ export const COMMAND_SCHEMAS: Record<string, CommandSchema> = {
457458 usage : 'wait <ms>|text <text>|@ref|<selector> [timeoutMs]' ,
458459 description : 'Wait for duration, text, ref, or selector to appear' ,
459460 positionalArgs : [ 'durationOrSelector' , 'timeoutMs?' ] ,
461+ allowsExtraPositionals : true ,
460462 allowedFlags : [ ...SELECTOR_SNAPSHOT_FLAGS ] ,
461463 } ,
462464 alert : {
@@ -529,6 +531,7 @@ export const COMMAND_SCHEMAS: Record<string, CommandSchema> = {
529531 usage : 'type <text>' ,
530532 description : 'Type text in focused field' ,
531533 positionalArgs : [ 'text' ] ,
534+ allowsExtraPositionals : true ,
532535 allowedFlags : [ ] ,
533536 } ,
534537 fill : {
@@ -537,6 +540,7 @@ export const COMMAND_SCHEMAS: Record<string, CommandSchema> = {
537540 usage : 'fill <x> <y> <text> | fill <@ref|selector> <text>' ,
538541 description : 'Tap then type' ,
539542 positionalArgs : [ 'targetOrX' , 'yOrText' , 'text?' ] ,
543+ allowsExtraPositionals : true ,
540544 allowedFlags : [ ...SELECTOR_SNAPSHOT_FLAGS ] ,
541545 } ,
542546 scroll : {
@@ -600,6 +604,7 @@ export const COMMAND_SCHEMAS: Record<string, CommandSchema> = {
600604 'find id <id> <action> [value]' ,
601605 ] ,
602606 positionalArgs : [ 'query' , 'action' , 'value?' ] ,
607+ allowsExtraPositionals : true ,
603608 allowedFlags : [ ...FIND_SNAPSHOT_FLAGS ] ,
604609 } ,
605610 is : {
@@ -608,6 +613,7 @@ export const COMMAND_SCHEMAS: Record<string, CommandSchema> = {
608613 usage : 'is <predicate> <selector> [value]' ,
609614 description : 'Assert UI state (visible|hidden|exists|editable|selected|text)' ,
610615 positionalArgs : [ 'predicate' , 'selector' , 'value?' ] ,
616+ allowsExtraPositionals : true ,
611617 allowedFlags : [ ...SELECTOR_SNAPSHOT_FLAGS ] ,
612618 } ,
613619 settings : {
0 commit comments