mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 05:03:33 +00:00
Move Foundry HTTP APIs onto /v1
This commit is contained in:
parent
58b19c2253
commit
9a2c60bf30
16 changed files with 62 additions and 51 deletions
|
|
@ -132,7 +132,7 @@ function removeStateFiles(host: string, port: number): void {
|
|||
|
||||
async function checkHealth(host: string, port: number): Promise<boolean> {
|
||||
return await checkBackendHealth({
|
||||
endpoint: `http://${host}:${port}/api/rivet`,
|
||||
endpoint: `http://${host}:${port}/v1/rivet`,
|
||||
timeoutMs: HEALTH_TIMEOUT_MS,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ async function handleBackend(args: string[]): Promise<void> {
|
|||
if (sub === "inspect") {
|
||||
await ensureBackendRunning(backendConfig);
|
||||
const metadata = await readBackendMetadata({
|
||||
endpoint: `http://${host}:${port}/api/rivet`,
|
||||
endpoint: `http://${host}:${port}/v1/rivet`,
|
||||
timeoutMs: 4_000,
|
||||
});
|
||||
const managerEndpoint = metadata.clientEndpoint ?? `http://${host}:${port}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue