@@ -78,7 +78,7 @@ describe("remote command", () => {
78
78
await remote ( "test prompt" , { idempotencyKey : testIdempotencyKey } ) ;
79
79
80
80
expect ( mockFetch ) . toHaveBeenCalledWith (
81
- new URL ( "agents/devboxes " , mockEnv . env . apiBase ) ,
81
+ new URL ( "agents" , mockEnv . env . apiBase ) ,
82
82
expect . objectContaining ( {
83
83
method : "POST" ,
84
84
headers : {
@@ -96,7 +96,7 @@ describe("remote command", () => {
96
96
await remote ( "test prompt" , { } ) ;
97
97
98
98
expect ( mockFetch ) . toHaveBeenCalledWith (
99
- new URL ( "agents/devboxes " , mockEnv . env . apiBase ) ,
99
+ new URL ( "agents" , mockEnv . env . apiBase ) ,
100
100
expect . objectContaining ( {
101
101
method : "POST" ,
102
102
headers : {
@@ -190,7 +190,7 @@ describe("remote command", () => {
190
190
await remote ( "test prompt" , { branch : testBranch } ) ;
191
191
192
192
expect ( mockFetch ) . toHaveBeenCalledWith (
193
- new URL ( "agents/devboxes " , mockEnv . env . apiBase ) ,
193
+ new URL ( "agents" , mockEnv . env . apiBase ) ,
194
194
expect . objectContaining ( {
195
195
method : "POST" ,
196
196
headers : {
@@ -206,7 +206,7 @@ describe("remote command", () => {
206
206
await remote ( "test prompt" , { } ) ;
207
207
208
208
expect ( mockFetch ) . toHaveBeenCalledWith (
209
- new URL ( "agents/devboxes " , mockEnv . env . apiBase ) ,
209
+ new URL ( "agents" , mockEnv . env . apiBase ) ,
210
210
expect . objectContaining ( {
211
211
method : "POST" ,
212
212
headers : {
@@ -247,7 +247,7 @@ describe("remote command", () => {
247
247
await remote ( "test prompt" , { config : testConfig } ) ;
248
248
249
249
expect ( mockFetch ) . toHaveBeenCalledWith (
250
- new URL ( "agents/devboxes " , mockEnv . env . apiBase ) ,
250
+ new URL ( "agents" , mockEnv . env . apiBase ) ,
251
251
expect . objectContaining ( {
252
252
method : "POST" ,
253
253
headers : {
@@ -259,7 +259,7 @@ describe("remote command", () => {
259
259
) ;
260
260
261
261
expect ( mockFetch ) . toHaveBeenCalledWith (
262
- new URL ( "agents/devboxes " , mockEnv . env . apiBase ) ,
262
+ new URL ( "agents" , mockEnv . env . apiBase ) ,
263
263
expect . objectContaining ( {
264
264
body : expect . stringContaining ( `"agent":"${ testConfig } "` ) ,
265
265
} ) ,
@@ -332,7 +332,7 @@ describe("remote command", () => {
332
332
333
333
// Should make POST request to create environment
334
334
expect ( mockFetch ) . toHaveBeenCalledWith (
335
- new URL ( "agents/devboxes " , mockEnv . env . apiBase ) ,
335
+ new URL ( "agents" , mockEnv . env . apiBase ) ,
336
336
expect . objectContaining ( {
337
337
method : "POST" ,
338
338
headers : {
0 commit comments