@@ -1338,9 +1338,9 @@ export const api = {
13381338 } ,
13391339 channelStatus : ( ) => fetchJson < ChannelStatusResponse > ( "/channels/status" ) ,
13401340 inspectPrompt : ( channelId : string ) =>
1341- fetchJson < PromptInspectResponse > ( `/channels/inspect?channel_id=${ encodeURIComponent ( channelId ) } ` ) ,
1341+ fetchJson < PromptInspectResponse > ( `/channels/prompt/ inspect?channel_id=${ encodeURIComponent ( channelId ) } ` ) ,
13421342 setPromptCapture : async ( channelId : string , enabled : boolean ) => {
1343- const response = await fetch ( `${ getApiBase ( ) } /channels/inspect /capture` , {
1343+ const response = await fetch ( `${ getApiBase ( ) } /channels/prompt /capture` , {
13441344 method : "POST" ,
13451345 headers : { "Content-Type" : "application/json" } ,
13461346 body : JSON . stringify ( { channel_id : channelId , enabled } ) ,
@@ -1350,11 +1350,11 @@ export const api = {
13501350 } ,
13511351 listPromptSnapshots : ( channelId : string , limit = 50 ) =>
13521352 fetchJson < PromptSnapshotListResponse > (
1353- `/channels/inspect /snapshots?channel_id=${ encodeURIComponent ( channelId ) } &limit=${ limit } ` ,
1353+ `/channels/prompt /snapshots?channel_id=${ encodeURIComponent ( channelId ) } &limit=${ limit } ` ,
13541354 ) ,
13551355 getPromptSnapshot : ( channelId : string , timestampMs : number ) =>
13561356 fetchJson < PromptSnapshot > (
1357- `/channels/inspect/snapshot ?channel_id=${ encodeURIComponent ( channelId ) } ×tamp_ms=${ timestampMs } ` ,
1357+ `/channels/prompt/snapshots/get ?channel_id=${ encodeURIComponent ( channelId ) } ×tamp_ms=${ timestampMs } ` ,
13581358 ) ,
13591359 workersList : ( agentId : string , params : { limit ?: number ; offset ?: number ; status ?: string } = { } ) => {
13601360 const search = new URLSearchParams ( { agent_id : agentId } ) ;
@@ -1580,7 +1580,7 @@ export const api = {
15801580 } ,
15811581
15821582 cancelProcess : async ( channelId : string , processType : "worker" | "branch" , processId : string ) => {
1583- const response = await fetch ( `${ getApiBase ( ) } /channels/cancel` , {
1583+ const response = await fetch ( `${ getApiBase ( ) } /channels/cancel-process ` , {
15841584 method : "POST" ,
15851585 headers : { "Content-Type" : "application/json" } ,
15861586 body : JSON . stringify ( { channel_id : channelId , process_type : processType , process_id : processId } ) ,
@@ -1845,16 +1845,16 @@ export const api = {
18451845 } ,
18461846
18471847 // Update API
1848- updateCheck : ( ) => fetchJson < UpdateStatus > ( "/update/ check" ) ,
1848+ updateCheck : ( ) => fetchJson < UpdateStatus > ( "/update- check" ) ,
18491849 updateCheckNow : async ( ) => {
1850- const response = await fetch ( `${ getApiBase ( ) } /update/ check` , { method : "POST" } ) ;
1850+ const response = await fetch ( `${ getApiBase ( ) } /update- check` , { method : "POST" } ) ;
18511851 if ( ! response . ok ) {
18521852 throw new Error ( `API error: ${ response . status } ` ) ;
18531853 }
18541854 return response . json ( ) as Promise < UpdateStatus > ;
18551855 } ,
18561856 updateApply : async ( ) => {
1857- const response = await fetch ( `${ getApiBase ( ) } /update/ apply` , { method : "POST" } ) ;
1857+ const response = await fetch ( `${ getApiBase ( ) } /update- apply` , { method : "POST" } ) ;
18581858 if ( ! response . ok ) {
18591859 throw new Error ( `API error: ${ response . status } ` ) ;
18601860 }
@@ -1966,9 +1966,9 @@ export const api = {
19661966 } ,
19671967
19681968 // Agent Groups API
1969- groups : ( ) => fetchJson < { groups : TopologyGroup [ ] } > ( "/groups" ) ,
1969+ groups : ( ) => fetchJson < { groups : TopologyGroup [ ] } > ( "/links/ groups" ) ,
19701970 createGroup : async ( request : CreateGroupRequest ) : Promise < { group : TopologyGroup } > => {
1971- const response = await fetch ( `${ getApiBase ( ) } /groups` , {
1971+ const response = await fetch ( `${ getApiBase ( ) } /links/ groups` , {
19721972 method : "POST" ,
19731973 headers : { "Content-Type" : "application/json" } ,
19741974 body : JSON . stringify ( request ) ,
@@ -1980,7 +1980,7 @@ export const api = {
19801980 } ,
19811981 updateGroup : async ( name : string , request : UpdateGroupRequest ) : Promise < { group : TopologyGroup } > => {
19821982 const response = await fetch (
1983- `${ getApiBase ( ) } /groups/${ encodeURIComponent ( name ) } ` ,
1983+ `${ getApiBase ( ) } /links/ groups/${ encodeURIComponent ( name ) } ` ,
19841984 {
19851985 method : "PUT" ,
19861986 headers : { "Content-Type" : "application/json" } ,
@@ -1994,7 +1994,7 @@ export const api = {
19941994 } ,
19951995 deleteGroup : async ( name : string ) : Promise < void > => {
19961996 const response = await fetch (
1997- `${ getApiBase ( ) } /groups/${ encodeURIComponent ( name ) } ` ,
1997+ `${ getApiBase ( ) } /links/ groups/${ encodeURIComponent ( name ) } ` ,
19981998 { method : "DELETE" } ,
19991999 ) ;
20002000 if ( ! response . ok ) {
@@ -2003,9 +2003,9 @@ export const api = {
20032003 } ,
20042004
20052005 // Humans API
2006- humans : ( ) => fetchJson < { humans : TopologyHuman [ ] } > ( "/humans" ) ,
2006+ humans : ( ) => fetchJson < { humans : TopologyHuman [ ] } > ( "/links/ humans" ) ,
20072007 createHuman : async ( request : CreateHumanRequest ) : Promise < { human : TopologyHuman } > => {
2008- const response = await fetch ( `${ getApiBase ( ) } /humans` , {
2008+ const response = await fetch ( `${ getApiBase ( ) } /links/ humans` , {
20092009 method : "POST" ,
20102010 headers : { "Content-Type" : "application/json" } ,
20112011 body : JSON . stringify ( request ) ,
@@ -2017,7 +2017,7 @@ export const api = {
20172017 } ,
20182018 updateHuman : async ( id : string , request : UpdateHumanRequest ) : Promise < { human : TopologyHuman } > => {
20192019 const response = await fetch (
2020- `${ getApiBase ( ) } /humans/${ encodeURIComponent ( id ) } ` ,
2020+ `${ getApiBase ( ) } /links/ humans/${ encodeURIComponent ( id ) } ` ,
20212021 {
20222022 method : "PUT" ,
20232023 headers : { "Content-Type" : "application/json" } ,
@@ -2031,7 +2031,7 @@ export const api = {
20312031 } ,
20322032 deleteHuman : async ( id : string ) : Promise < void > => {
20332033 const response = await fetch (
2034- `${ getApiBase ( ) } /humans/${ encodeURIComponent ( id ) } ` ,
2034+ `${ getApiBase ( ) } /links/ humans/${ encodeURIComponent ( id ) } ` ,
20352035 { method : "DELETE" } ,
20362036 ) ;
20372037 if ( ! response . ok ) {
0 commit comments