@townco/agent 0.1.75 → 0.1.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/acp-server/http.js
CHANGED
|
@@ -609,12 +609,10 @@ export function makeHttpTransport(agent, agentDir, agentName) {
|
|
|
609
609
|
});
|
|
610
610
|
const port = Number.parseInt(process.env.PORT || "3100", 10);
|
|
611
611
|
logger.info("Starting HTTP server", { port });
|
|
612
|
-
Bun.
|
|
613
|
-
|
|
614
|
-
port,
|
|
615
|
-
});
|
|
612
|
+
const hostname = Bun.env.BIND_HOST || "localhost";
|
|
613
|
+
Bun.serve({ fetch: app.fetch, hostname, port });
|
|
616
614
|
logger.info("HTTP server listening", {
|
|
617
|
-
url: `http
|
|
615
|
+
url: `http://${hostname}:${port}`,
|
|
618
616
|
port,
|
|
619
617
|
});
|
|
620
618
|
}
|