import { hostname, platform } from "node:os";
import { HUB_PROTOCOL_VERSION } from "../transport/protocol.js";
export const HOST_PEER_ID = "host";
export const HOST_PEER_TOOL_NAMES = ["bash", "edit", "find", "grep", "ls", "read", "write"];
export function createHostPeerRecord(agentId, cwd) {
    return {
        agentId,
        peerId: HOST_PEER_ID,
        protocolVersion: HUB_PROTOCOL_VERSION,
        displayName: "pi-hub host",
        platform: platform(),
        hostname: hostname(),
        cwd,
        executorEnabled: true,
        tools: [...HOST_PEER_TOOL_NAMES],
        connectedAt: new Date(0).toISOString(),
        transport: "host",
    };
}
//# sourceMappingURL=host-peer.js.map