@@ -22,7 +22,6 @@ import {
2222 PromoteDeploymentResponseBody ,
2323 StartDeploymentIndexingRequestBody ,
2424 StartDeploymentIndexingResponseBody ,
25- TaskRunExecution ,
2625 TriggerTaskRequestBody ,
2726 TriggerTaskResponse ,
2827 UpsertBranchRequestBody ,
@@ -38,6 +37,7 @@ import {
3837 GetJWTResponse ,
3938 ApiBranchListResponseBody ,
4039 GenerateRegistryCredentialsResponseBody ,
40+ RemoteBuildProviderStatusResponseBody ,
4141} from "@trigger.dev/core/v3" ;
4242import {
4343 WorkloadDebugLogRequestBody ,
@@ -52,6 +52,7 @@ import { ApiResult, wrapZodFetch, zodfetchSSE } from "@trigger.dev/core/v3/zodfe
5252import { EventSource } from "eventsource" ;
5353import { z } from "zod" ;
5454import { logger } from "./utilities/logger.js" ;
55+ import { VERSION } from "./version.js" ;
5556
5657export class CliApiClient {
5758 private engineURL : string ;
@@ -328,6 +329,21 @@ export class CliApiClient {
328329 ) ;
329330 }
330331
332+ async getRemoteBuildProviderStatus ( ) {
333+ return wrapZodFetch (
334+ RemoteBuildProviderStatusResponseBody ,
335+ `${ this . apiURL } /api/v1/remote-build-provider-status` ,
336+ {
337+ method : "GET" ,
338+ headers : {
339+ ...this . getHeaders ( ) ,
340+ // probably a good idea to add this to the other requests too
341+ "x-trigger-cli-version" : VERSION ,
342+ } ,
343+ }
344+ ) ;
345+ }
346+
331347 async generateRegistryCredentials ( deploymentId : string ) {
332348 if ( ! this . accessToken ) {
333349 throw new Error ( "generateRegistryCredentials: No access token" ) ;
0 commit comments