@@ -17,6 +17,9 @@ interface AgentRun {
1717 id : string ;
1818 target_kind ?: string ;
1919 target_id ?: string ;
20+ external_workspace_id ?: string ;
21+ external_user_id ?: string ;
22+ external_project_id ?: string ;
2023 provider ?: string ;
2124 status ?: string ;
2225 prompt ?: string ;
@@ -154,6 +157,9 @@ export function register(program: Command): void {
154157 . option ( "--computer <id>" , "Filter by computer ID" )
155158 . option ( "--workspace <id>" , "Filter by workspace ID" )
156159 . option ( "--project <id>" , "Filter by project ID" )
160+ . option ( "--external-workspace <id>" , "Filter by white-label workspace/customer ID" )
161+ . option ( "--external-user <id>" , "Filter by white-label user ID" )
162+ . option ( "--external-project <id>" , "Filter by white-label project ID" )
157163 . option ( "--target-kind <kind>" , "Filter by target kind" )
158164 . option ( "--target-id <id>" , "Filter by target ID" )
159165 . option ( "--status <status>" , "Filter by run status" )
@@ -166,6 +172,9 @@ export function register(program: Command): void {
166172 computer ?: string ;
167173 workspace ?: string ;
168174 project ?: string ;
175+ externalWorkspace ?: string ;
176+ externalUser ?: string ;
177+ externalProject ?: string ;
169178 targetKind ?: string ;
170179 targetId ?: string ;
171180 status ?: string ;
@@ -182,6 +191,11 @@ export function register(program: Command): void {
182191 const query = new URLSearchParams ( ) ;
183192 if ( opts . workspace ) query . set ( "workspace_id" , opts . workspace ) ;
184193 if ( opts . project ) query . set ( "project_id" , opts . project ) ;
194+ if ( opts . externalWorkspace )
195+ query . set ( "external_workspace_id" , opts . externalWorkspace ) ;
196+ if ( opts . externalUser ) query . set ( "external_user_id" , opts . externalUser ) ;
197+ if ( opts . externalProject )
198+ query . set ( "external_project_id" , opts . externalProject ) ;
185199 if ( opts . sandbox ) {
186200 query . set ( "target_kind" , "sandbox" ) ;
187201 query . set ( "target_id" , opts . sandbox ) ;
@@ -210,6 +224,18 @@ export function register(program: Command): void {
210224 renderTable ( data , [
211225 { header : "ID" , key : "id" , width : 18 } ,
212226 { header : "TARGET" , key : ( row ) => `${ str ( row . target_kind ) } ${ str ( row . target_id ) } ` , width : 28 } ,
227+ {
228+ header : "EXTERNAL" ,
229+ key : ( row ) =>
230+ [
231+ str ( row . external_workspace_id ) ,
232+ str ( row . external_user_id ) ,
233+ str ( row . external_project_id ) ,
234+ ]
235+ . filter ( Boolean )
236+ . join ( " / " ) ,
237+ width : 30 ,
238+ } ,
213239 { header : "PROVIDER" , key : "provider" , width : 12 } ,
214240 { header : "STATUS" , key : ( row ) => colorStatus ( row . status ) , width : 12 } ,
215241 { header : "PROMPT" , key : ( row ) => str ( row . prompt ) , width : 44 } ,
0 commit comments