open-agents-ai 0.184.47 → 0.184.48

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 +18 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -64646,6 +64646,8 @@ Review its full output in the [${id}] tab or via full_sub_agent(action='output',
64646
64646
  const costTracker = new CostTracker(provider.id);
64647
64647
  const sessionMetrics = new SessionMetrics();
64648
64648
  const workEvaluator = new WorkEvaluator();
64649
+ let setupReady = false;
64650
+ const setupTasks = [];
64649
64651
  ensureTranscribeCliBackground();
64650
64652
  ensureCloudflaredBackground((msg) => {
64651
64653
  if (statusBar?.isActive) {
@@ -64656,7 +64658,7 @@ Review its full output in the [${id}] tab or via full_sub_agent(action='output',
64656
64658
  });
64657
64659
  let depSudoResolver = null;
64658
64660
  let depSudoPromptPending = false;
64659
- ensureVisionDeps((msg) => {
64661
+ const visionDepsPromise = ensureVisionDeps((msg) => {
64660
64662
  if (statusBar?.isActive) {
64661
64663
  statusBar.beginContentWrite();
64662
64664
  renderInfo(msg);
@@ -64686,6 +64688,8 @@ Review its full output in the [${id}] tab or via full_sub_agent(action='output',
64686
64688
  }
64687
64689
  })).catch(() => {
64688
64690
  });
64691
+ setupTasks.push(visionDepsPromise.catch(() => {
64692
+ }));
64689
64693
  let updateNotified = false;
64690
64694
  if (!isResumed) {
64691
64695
  checkForUpdate(version).then((updateInfo) => {
@@ -65175,7 +65179,7 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
65175
65179
  }
65176
65180
  return fn();
65177
65181
  }
65178
- (async () => {
65182
+ const startupChecksPromise = (async () => {
65179
65183
  if (!isResumed && !isFirstRun()) {
65180
65184
  try {
65181
65185
  const available = await isModelAvailable(currentConfig);
@@ -65368,6 +65372,8 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
65368
65372
  }
65369
65373
  })().catch(() => {
65370
65374
  });
65375
+ setupTasks.push(startupChecksPromise.catch(() => {
65376
+ }));
65371
65377
  Promise.resolve().then(() => (init_serve(), serve_exports)).then(({ startApiServer: startApiServer2 }) => {
65372
65378
  const apiPort = parseInt(process.env["OA_PORT"] || "11435", 10);
65373
65379
  const apiServer = startApiServer2({
@@ -66672,6 +66678,14 @@ Respond concisely and safely. Remember: you are talking to the general public.`;
66672
66678
  headerBtnQueue = null;
66673
66679
  setTimeout(() => statusBar.fireHeaderButton?.(queued), 100);
66674
66680
  }
66681
+ if (setupTasks.length > 0 && !isResumed) {
66682
+ statusBar.setPromptText(" setting up...", 0);
66683
+ const setupTimeout = new Promise((r) => setTimeout(r, 15e3));
66684
+ await Promise.race([Promise.all(setupTasks), setupTimeout]);
66685
+ setupReady = true;
66686
+ } else {
66687
+ setupReady = true;
66688
+ }
66675
66689
  showPrompt();
66676
66690
  if (!isResumed) {
66677
66691
  const savedCtx = loadSessionContext(repoRoot);
@@ -66839,6 +66853,8 @@ ${result.content.slice(0, 2e3)}${result.content.length > 2e3 ? "\n[truncated]" :
66839
66853
  };
66840
66854
  };
66841
66855
  rl.on("line", (line) => {
66856
+ if (!setupReady)
66857
+ return;
66842
66858
  persistHistoryLine(line);
66843
66859
  const input = line.trim();
66844
66860
  if (!input) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.184.47",
3
+ "version": "0.184.48",
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",