@@ -52,7 +52,7 @@ export class SupervisorHttpClient {
52
52
async connect ( body : WorkerApiConnectRequestBody ) {
53
53
return wrapZodFetch (
54
54
WorkerApiConnectResponseBody ,
55
- `${ this . apiUrl } /api /v1/worker-actions/connect` ,
55
+ `${ this . apiUrl } /engine /v1/worker-actions/connect` ,
56
56
{
57
57
method : "POST" ,
58
58
headers : {
@@ -67,7 +67,7 @@ export class SupervisorHttpClient {
67
67
async dequeue ( body : WorkerApiDequeueRequestBody ) {
68
68
return wrapZodFetch (
69
69
WorkerApiDequeueResponseBody ,
70
- `${ this . apiUrl } /api /v1/worker-actions/dequeue` ,
70
+ `${ this . apiUrl } /engine /v1/worker-actions/dequeue` ,
71
71
{
72
72
method : "POST" ,
73
73
headers : {
@@ -82,7 +82,7 @@ export class SupervisorHttpClient {
82
82
async dequeueFromVersion ( deploymentId : string , maxRunCount = 1 , runnerId ?: string ) {
83
83
return wrapZodFetch (
84
84
WorkerApiDequeueResponseBody ,
85
- `${ this . apiUrl } /api /v1/worker-actions/deployments/${ deploymentId } /dequeue?maxRunCount=${ maxRunCount } ` ,
85
+ `${ this . apiUrl } /engine /v1/worker-actions/deployments/${ deploymentId } /dequeue?maxRunCount=${ maxRunCount } ` ,
86
86
{
87
87
headers : {
88
88
...this . defaultHeaders ,
@@ -95,7 +95,7 @@ export class SupervisorHttpClient {
95
95
async heartbeatWorker ( body : WorkerApiHeartbeatRequestBody ) {
96
96
return wrapZodFetch (
97
97
WorkerApiHeartbeatResponseBody ,
98
- `${ this . apiUrl } /api /v1/worker-actions/heartbeat` ,
98
+ `${ this . apiUrl } /engine /v1/worker-actions/heartbeat` ,
99
99
{
100
100
method : "POST" ,
101
101
headers : {
@@ -115,7 +115,7 @@ export class SupervisorHttpClient {
115
115
) {
116
116
return wrapZodFetch (
117
117
WorkerApiRunHeartbeatResponseBody ,
118
- `${ this . apiUrl } /api /v1/worker-actions/runs/${ runId } /snapshots/${ snapshotId } /heartbeat` ,
118
+ `${ this . apiUrl } /engine /v1/worker-actions/runs/${ runId } /snapshots/${ snapshotId } /heartbeat` ,
119
119
{
120
120
method : "POST" ,
121
121
headers : {
@@ -136,7 +136,7 @@ export class SupervisorHttpClient {
136
136
) {
137
137
return wrapZodFetch (
138
138
WorkerApiRunAttemptStartResponseBody ,
139
- `${ this . apiUrl } /api /v1/worker-actions/runs/${ runId } /snapshots/${ snapshotId } /attempts/start` ,
139
+ `${ this . apiUrl } /engine /v1/worker-actions/runs/${ runId } /snapshots/${ snapshotId } /attempts/start` ,
140
140
{
141
141
method : "POST" ,
142
142
headers : {
@@ -156,7 +156,7 @@ export class SupervisorHttpClient {
156
156
) {
157
157
return wrapZodFetch (
158
158
WorkerApiRunAttemptCompleteResponseBody ,
159
- `${ this . apiUrl } /api /v1/worker-actions/runs/${ runId } /snapshots/${ snapshotId } /attempts/complete` ,
159
+ `${ this . apiUrl } /engine /v1/worker-actions/runs/${ runId } /snapshots/${ snapshotId } /attempts/complete` ,
160
160
{
161
161
method : "POST" ,
162
162
headers : {
@@ -171,7 +171,7 @@ export class SupervisorHttpClient {
171
171
async getLatestSnapshot ( runId : string , runnerId ?: string ) {
172
172
return wrapZodFetch (
173
173
WorkerApiRunLatestSnapshotResponseBody ,
174
- `${ this . apiUrl } /api /v1/worker-actions/runs/${ runId } /snapshots/latest` ,
174
+ `${ this . apiUrl } /engine /v1/worker-actions/runs/${ runId } /snapshots/latest` ,
175
175
{
176
176
method : "GET" ,
177
177
headers : {
@@ -186,7 +186,7 @@ export class SupervisorHttpClient {
186
186
try {
187
187
const res = await wrapZodFetch (
188
188
z . unknown ( ) ,
189
- `${ this . apiUrl } /api /v1/worker-actions/runs/${ runId } /logs/debug` ,
189
+ `${ this . apiUrl } /engine /v1/worker-actions/runs/${ runId } /logs/debug` ,
190
190
{
191
191
method : "POST" ,
192
192
headers : {
@@ -209,7 +209,7 @@ export class SupervisorHttpClient {
209
209
async continueRunExecution ( runId : string , snapshotId : string , runnerId ?: string ) {
210
210
return wrapZodFetch (
211
211
WorkerApiContinueRunExecutionRequestBody ,
212
- `${ this . apiUrl } /api /v1/worker-actions/runs/${ runId } /snapshots/${ snapshotId } /continue` ,
212
+ `${ this . apiUrl } /engine /v1/worker-actions/runs/${ runId } /snapshots/${ snapshotId } /continue` ,
213
213
{
214
214
method : "GET" ,
215
215
headers : {
@@ -222,7 +222,7 @@ export class SupervisorHttpClient {
222
222
223
223
getSuspendCompletionUrl ( runId : string , snapshotId : string , runnerId ?: string ) {
224
224
return {
225
- url : `${ this . apiUrl } /api /v1/worker-actions/runs/${ runId } /snapshots/${ snapshotId } /suspend` ,
225
+ url : `${ this . apiUrl } /engine /v1/worker-actions/runs/${ runId } /snapshots/${ snapshotId } /suspend` ,
226
226
headers : {
227
227
...this . defaultHeaders ,
228
228
...this . runnerIdHeader ( runnerId ) ,
0 commit comments