open-agents-ai 0.186.55 → 0.186.57

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -301890,7 +301890,8 @@ function startApiServer(options2 = {}) {
301890
301890
  }
301891
301891
  async function apiServeCommand(opts, config) {
301892
301892
  const server = startApiServer({
301893
- port: opts.port ?? 11435,
301893
+ port: opts.port,
301894
+ // Let startApiServer() parse OA_HOST env if no explicit --port
301894
301895
  verbose: opts.verbose,
301895
301896
  ollamaUrl: config.backendUrl
301896
301897
  });
@@ -307928,7 +307929,16 @@ __export(serve_exports2, {
307928
307929
  serveCommand: () => serveCommand
307929
307930
  });
307930
307931
  async function serveCommand(opts, config) {
307931
- const port = opts.port ?? 11435;
307932
+ let port = opts.port ?? 11435;
307933
+ const envHost = process.env["OA_HOST"];
307934
+ if (!opts.port && envHost) {
307935
+ const parts = envHost.split(":");
307936
+ if (parts.length >= 2) {
307937
+ const envPort = parseInt(parts[parts.length - 1], 10);
307938
+ if (envPort > 0)
307939
+ port = envPort;
307940
+ }
307941
+ }
307932
307942
  const ollamaUrl = config.backendUrl || "http://127.0.0.1:11434";
307933
307943
  printHeader("Open Agents REST API");
307934
307944
  printInfo(`Starting API server on port ${port}...`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.186.55",
3
+ "version": "0.186.57",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",