@@ -465,7 +465,7 @@ export class CliApiClient {
465
465
throw new Error ( "devConfig: No access token" ) ;
466
466
}
467
467
468
- return wrapZodFetch ( DevConfigResponseBody , `${ this . apiURL } /api /v1/dev/config` , {
468
+ return wrapZodFetch ( DevConfigResponseBody , `${ this . apiURL } /engine /v1/dev/config` , {
469
469
headers : {
470
470
Authorization : `Bearer ${ this . accessToken } ` ,
471
471
Accept : "application/json" ,
@@ -478,7 +478,7 @@ export class CliApiClient {
478
478
throw new Error ( "connectToPresence: No access token" ) ;
479
479
}
480
480
481
- const eventSource = new EventSource ( `${ this . apiURL } /api /v1/dev/presence` , {
481
+ const eventSource = new EventSource ( `${ this . apiURL } /engine /v1/dev/presence` , {
482
482
fetch : ( input , init ) =>
483
483
fetch ( input , {
484
484
...init ,
@@ -516,7 +516,7 @@ export class CliApiClient {
516
516
throw new Error ( "devConfig: No access token" ) ;
517
517
}
518
518
519
- return wrapZodFetch ( DevDequeueResponseBody , `${ this . apiURL } /api /v1/dev/dequeue` , {
519
+ return wrapZodFetch ( DevDequeueResponseBody , `${ this . apiURL } /engine /v1/dev/dequeue` , {
520
520
method : "POST" ,
521
521
headers : {
522
522
Authorization : `Bearer ${ this . accessToken } ` ,
@@ -531,7 +531,7 @@ export class CliApiClient {
531
531
throw new Error ( "devConfig: No access token" ) ;
532
532
}
533
533
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` , {
535
535
method : "POST" ,
536
536
headers : {
537
537
Authorization : `Bearer ${ this . accessToken } ` ,
@@ -545,7 +545,7 @@ export class CliApiClient {
545
545
private async devGetRunExecutionData ( runId : string ) {
546
546
return wrapZodFetch (
547
547
WorkloadRunLatestSnapshotResponseBody ,
548
- `${ this . apiURL } /api /v1/dev/runs/${ runId } /snapshots/latest` ,
548
+ `${ this . apiURL } /engine /v1/dev/runs/${ runId } /snapshots/latest` ,
549
549
{
550
550
method : "GET" ,
551
551
headers : {
@@ -563,7 +563,7 @@ export class CliApiClient {
563
563
) {
564
564
return wrapZodFetch (
565
565
WorkloadHeartbeatResponseBody ,
566
- `${ this . apiURL } /api /v1/dev/runs/${ runId } /snapshots/${ snapshotId } /heartbeat` ,
566
+ `${ this . apiURL } /engine /v1/dev/runs/${ runId } /snapshots/${ snapshotId } /heartbeat` ,
567
567
{
568
568
method : "POST" ,
569
569
headers : {
@@ -579,7 +579,7 @@ export class CliApiClient {
579
579
private async devStartRunAttempt ( runId : string , snapshotId : string ) {
580
580
return wrapZodFetch (
581
581
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` ,
583
583
{
584
584
method : "POST" ,
585
585
headers : {
@@ -599,7 +599,7 @@ export class CliApiClient {
599
599
) {
600
600
return wrapZodFetch (
601
601
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` ,
603
603
{
604
604
method : "POST" ,
605
605
headers : {
0 commit comments