@@ -142,7 +142,7 @@ export function createE2ESuite(cfg: E2EConfig) {
142142 await retry (
143143 async ( ) => {
144144 const result = await runAgentCoreCLI (
145- [ 'invoke' , '--prompt' , 'Say hello' , '--agent ' , agentName , '--json' ] ,
145+ [ 'invoke' , '--prompt' , 'Say hello' , '--runtime ' , agentName , '--json' ] ,
146146 projectPath
147147 ) ;
148148
@@ -205,7 +205,7 @@ export function createE2ESuite(cfg: E2EConfig) {
205205 async ( ) => {
206206 expect ( runtimeId , 'Runtime ID should have been extracted from status' ) . toBeTruthy ( ) ;
207207
208- const result = await run ( [ 'status' , '--agent- runtime-id' , runtimeId , '--json' ] ) ;
208+ const result = await run ( [ 'status' , '--runtime-id' , runtimeId , '--json' ] ) ;
209209
210210 expect ( result . exitCode , `Runtime lookup failed: ${ result . stderr } ` ) . toBe ( 0 ) ;
211211
@@ -227,7 +227,7 @@ export function createE2ESuite(cfg: E2EConfig) {
227227 await retry (
228228 async ( ) => {
229229 // --since 1h triggers search mode (avoids live tail)
230- const result = await run ( [ 'logs' , '--agent ' , agentName , '--since' , '1h' , '--json' ] ) ;
230+ const result = await run ( [ 'logs' , '--runtime ' , agentName , '--since' , '1h' , '--json' ] ) ;
231231
232232 expect ( result . exitCode , `Logs failed: ${ result . stderr } ` ) . toBe ( 0 ) ;
233233
@@ -254,7 +254,7 @@ export function createE2ESuite(cfg: E2EConfig) {
254254 'logs supports level filtering' ,
255255 async ( ) => {
256256 // --level error should succeed even if no error-level logs exist
257- const result = await run ( [ 'logs' , '--agent ' , agentName , '--since' , '1h' , '--level' , 'error' , '--json' ] ) ;
257+ const result = await run ( [ 'logs' , '--runtime ' , agentName , '--since' , '1h' , '--level' , 'error' , '--json' ] ) ;
258258
259259 expect ( result . exitCode , `Logs --level failed: ${ result . stderr } ` ) . toBe ( 0 ) ;
260260 } ,
@@ -267,7 +267,7 @@ export function createE2ESuite(cfg: E2EConfig) {
267267 // traces list has no --json flag — verify exit code and non-empty output
268268 await retry (
269269 async ( ) => {
270- const result = await run ( [ 'traces' , 'list' , '--agent ' , agentName , '--since' , '1h' ] ) ;
270+ const result = await run ( [ 'traces' , 'list' , '--runtime ' , agentName , '--since' , '1h' ] ) ;
271271
272272 expect ( result . exitCode , `Traces list failed (stderr: ${ result . stderr } )` ) . toBe ( 0 ) ;
273273 expect ( result . stdout . length , 'Traces list should produce output' ) . toBeGreaterThan ( 0 ) ;
0 commit comments