refactor: remove daemon connections context, use host runtime directly
This commit is contained in:
@@ -5,7 +5,6 @@ import {
|
||||
type FetchAgentsOptions,
|
||||
} from "@server/client/daemon-client";
|
||||
import type { HostConnection, HostProfile } from "@/contexts/daemon-registry-context";
|
||||
import type { ActiveConnection } from "@/contexts/daemon-connections-context";
|
||||
import {
|
||||
buildDaemonWebSocketUrl,
|
||||
buildRelayWebSocketUrl,
|
||||
@@ -28,6 +27,10 @@ export type HostRuntimeConnectionStatus =
|
||||
| "offline"
|
||||
| "error";
|
||||
|
||||
export type ActiveConnection =
|
||||
| { type: "direct"; endpoint: string; display: string }
|
||||
| { type: "relay"; endpoint: string; display: "relay" };
|
||||
|
||||
export type HostRuntimeAgentDirectoryStatus =
|
||||
| "idle"
|
||||
| "initial_loading"
|
||||
|
||||
Reference in New Issue
Block a user