open-agents-ai 0.185.15 → 0.185.17

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 +15 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -61539,6 +61539,7 @@ var init_status_bar = __esm({
61539
61539
  } else {
61540
61540
  this.applyScrollRegion();
61541
61541
  this.fillContentArea();
61542
+ this.repaintContent();
61542
61543
  let clearBuf = "\x1B[?7l";
61543
61544
  for (let row = pos.scrollEnd + 1; row <= rows; row++) {
61544
61545
  clearBuf += `\x1B[${row};1H\x1B[2K`;
@@ -66196,6 +66197,20 @@ async function startInteractive(config, repoPath) {
66196
66197
  }
66197
66198
  if (savedSettings.apiKey)
66198
66199
  config = { ...config, apiKey: savedSettings.apiKey };
66200
+ if (config.backendUrl && /trycloudflare\.com/i.test(config.backendUrl)) {
66201
+ try {
66202
+ const probeUrl = normalizeBaseUrl(config.backendUrl) + "/v1/models";
66203
+ const headers = {};
66204
+ if (config.apiKey)
66205
+ headers["Authorization"] = `Bearer ${config.apiKey}`;
66206
+ const probe = await fetch(probeUrl, { headers, signal: AbortSignal.timeout(5e3) });
66207
+ if (!probe.ok) {
66208
+ config = { ...config, backendUrl: "http://127.0.0.1:11434", backendType: "ollama", apiKey: "" };
66209
+ }
66210
+ } catch {
66211
+ config = { ...config, backendUrl: "http://127.0.0.1:11434", backendType: "ollama", apiKey: "" };
66212
+ }
66213
+ }
66199
66214
  if (savedSettings.endpointKeys && savedSettings.endpointKeys.length > 0) {
66200
66215
  config._keyPool = savedSettings.endpointKeys.map((k) => k.key);
66201
66216
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.185.15",
3
+ "version": "0.185.17",
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",