open-agents-ai 0.184.42 → 0.184.43

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 +13 -16
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -65062,22 +65062,6 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
65062
65062
  }
65063
65063
  } catch {
65064
65064
  }
65065
- try {
65066
- const apiPort = parseInt(process.env["OA_PORT"] || "11435", 10);
65067
- const { startApiServer: startApiServer2 } = await Promise.resolve().then(() => (init_serve(), serve_exports));
65068
- const apiServer = startApiServer2({
65069
- port: apiPort,
65070
- ollamaUrl: currentConfig.backendUrl || "http://127.0.0.1:11434"
65071
- });
65072
- let apiStarted = false;
65073
- apiServer.on?.("listening", () => {
65074
- apiStarted = true;
65075
- writeContent(() => renderInfo(`REST API: http://localhost:${apiPort}`));
65076
- });
65077
- apiServer.on?.("error", () => {
65078
- });
65079
- } catch {
65080
- }
65081
65065
  try {
65082
65066
  const { homedir: _hd } = await import("node:os");
65083
65067
  const globalNamePath = join69(_hd(), ".open-agents", "agent-name");
@@ -65134,6 +65118,19 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
65134
65118
  }
65135
65119
  })().catch(() => {
65136
65120
  });
65121
+ Promise.resolve().then(() => (init_serve(), serve_exports)).then(({ startApiServer: startApiServer2 }) => {
65122
+ const apiPort = parseInt(process.env["OA_PORT"] || "11435", 10);
65123
+ const apiServer = startApiServer2({
65124
+ port: apiPort,
65125
+ ollamaUrl: currentConfig.backendUrl || "http://127.0.0.1:11434"
65126
+ });
65127
+ apiServer.on?.("listening", () => {
65128
+ writeContent(() => renderInfo(`REST API: http://localhost:${apiPort}`));
65129
+ });
65130
+ apiServer.on?.("error", () => {
65131
+ });
65132
+ }).catch(() => {
65133
+ });
65137
65134
  let passwordShowPlain = false;
65138
65135
  function handleSudoRequest(_command) {
65139
65136
  if (sudoPromptPending)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.184.42",
3
+ "version": "0.184.43",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) \u2014 interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",