@@ -465,7 +465,7 @@ export class CliApiClient {
465465 throw new Error ( "devConfig: No access token" ) ;
466466 }
467467
468- return wrapZodFetch ( DevConfigResponseBody , `${ this . apiURL } /api /v1/dev/config` , {
468+ return wrapZodFetch ( DevConfigResponseBody , `${ this . apiURL } /engine /v1/dev/config` , {
469469 headers : {
470470 Authorization : `Bearer ${ this . accessToken } ` ,
471471 Accept : "application/json" ,
@@ -478,7 +478,7 @@ export class CliApiClient {
478478 throw new Error ( "connectToPresence: No access token" ) ;
479479 }
480480
481- const eventSource = new EventSource ( `${ this . apiURL } /api /v1/dev/presence` , {
481+ const eventSource = new EventSource ( `${ this . apiURL } /engine /v1/dev/presence` , {
482482 fetch : ( input , init ) =>
483483 fetch ( input , {
484484 ...init ,
@@ -516,7 +516,7 @@ export class CliApiClient {
516516 throw new Error ( "devConfig: No access token" ) ;
517517 }
518518
519- return wrapZodFetch ( DevDequeueResponseBody , `${ this . apiURL } /api /v1/dev/dequeue` , {
519+ return wrapZodFetch ( DevDequeueResponseBody , `${ this . apiURL } /engine /v1/dev/dequeue` , {
520520 method : "POST" ,
521521 headers : {
522522 Authorization : `Bearer ${ this . accessToken } ` ,
@@ -531,7 +531,7 @@ export class CliApiClient {
531531 throw new Error ( "devConfig: No access token" ) ;
532532 }
533533
534- return wrapZodFetch ( z . unknown ( ) , `${ this . apiURL } /api /v1/dev/runs/${ runId } /logs/debug` , {
534+ return wrapZodFetch ( z . unknown ( ) , `${ this . apiURL } /engine /v1/dev/runs/${ runId } /logs/debug` , {
535535 method : "POST" ,
536536 headers : {
537537 Authorization : `Bearer ${ this . accessToken } ` ,
@@ -545,7 +545,7 @@ export class CliApiClient {
545545 private async devGetRunExecutionData ( runId : string ) {
546546 return wrapZodFetch (
547547 WorkloadRunLatestSnapshotResponseBody ,
548- `${ this . apiURL } /api /v1/dev/runs/${ runId } /snapshots/latest` ,
548+ `${ this . apiURL } /engine /v1/dev/runs/${ runId } /snapshots/latest` ,
549549 {
550550 method : "GET" ,
551551 headers : {
@@ -563,7 +563,7 @@ export class CliApiClient {
563563 ) {
564564 return wrapZodFetch (
565565 WorkloadHeartbeatResponseBody ,
566- `${ this . apiURL } /api /v1/dev/runs/${ runId } /snapshots/${ snapshotId } /heartbeat` ,
566+ `${ this . apiURL } /engine /v1/dev/runs/${ runId } /snapshots/${ snapshotId } /heartbeat` ,
567567 {
568568 method : "POST" ,
569569 headers : {
@@ -579,7 +579,7 @@ export class CliApiClient {
579579 private async devStartRunAttempt ( runId : string , snapshotId : string ) {
580580 return wrapZodFetch (
581581 WorkloadRunAttemptStartResponseBody ,
582- `${ this . apiURL } /api /v1/dev/runs/${ runId } /snapshots/${ snapshotId } /attempts/start` ,
582+ `${ this . apiURL } /engine /v1/dev/runs/${ runId } /snapshots/${ snapshotId } /attempts/start` ,
583583 {
584584 method : "POST" ,
585585 headers : {
@@ -599,7 +599,7 @@ export class CliApiClient {
599599 ) {
600600 return wrapZodFetch (
601601 WorkloadRunAttemptCompleteResponseBody ,
602- `${ this . apiURL } /api /v1/dev/runs/${ runId } /snapshots/${ snapshotId } /attempts/complete` ,
602+ `${ this . apiURL } /engine /v1/dev/runs/${ runId } /snapshots/${ snapshotId } /attempts/complete` ,
603603 {
604604 method : "POST" ,
605605 headers : {
0 commit comments