open-agents-ai 0.14.0 → 0.14.1

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 +24 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9241,9 +9241,18 @@ var init_listen = __esm({
9241
9241
  if (!micCmd) {
9242
9242
  return "No microphone capture tool found. Install arecord (Linux), sox (macOS), or ffmpeg.";
9243
9243
  }
9244
- const tc = await this.loadTranscribeCli();
9244
+ let tc = await this.loadTranscribeCli();
9245
9245
  if (!tc) {
9246
- return "transcribe-cli not installed. Run: npm i -g transcribe-cli";
9246
+ this.emit("info", "transcribe-cli not found. Installing globally...");
9247
+ try {
9248
+ execSync10("npm i -g transcribe-cli", { stdio: "pipe", timeout: 12e4 });
9249
+ this.transcribeCliAvailable = null;
9250
+ tc = await this.loadTranscribeCli();
9251
+ } catch {
9252
+ }
9253
+ if (!tc) {
9254
+ return "Failed to install transcribe-cli. Try manually: npm i -g transcribe-cli";
9255
+ }
9247
9256
  }
9248
9257
  const TranscribeLive = tc.TranscribeLive;
9249
9258
  this.liveTranscriber = new TranscribeLive({
@@ -9364,7 +9373,15 @@ var init_listen = __esm({
9364
9373
  * Returns the transcription result.
9365
9374
  */
9366
9375
  async transcribeFile(filePath, outputDir) {
9367
- const tc = await this.loadTranscribeCli();
9376
+ let tc = await this.loadTranscribeCli();
9377
+ if (!tc) {
9378
+ try {
9379
+ execSync10("npm i -g transcribe-cli", { stdio: "pipe", timeout: 12e4 });
9380
+ this.transcribeCliAvailable = null;
9381
+ tc = await this.loadTranscribeCli();
9382
+ } catch {
9383
+ }
9384
+ }
9368
9385
  if (!tc)
9369
9386
  return null;
9370
9387
  try {
@@ -14938,7 +14955,7 @@ async function startInteractive(config, repoPath) {
14938
14955
  }
14939
14956
  },
14940
14957
  savePendingTaskState() {
14941
- if (lastSubmittedPrompt) {
14958
+ if (lastSubmittedPrompt && activeTask) {
14942
14959
  savePendingTask(repoRoot, {
14943
14960
  prompt: lastSubmittedPrompt,
14944
14961
  progressSummary: `Manual /update triggered. ${sessionToolCallCount} tool calls completed in last task.`,
@@ -15012,6 +15029,9 @@ async function startInteractive(config, repoPath) {
15012
15029
  engine.on("error", (err) => {
15013
15030
  writeContent(() => renderWarning(`Listen error: ${err.message}`));
15014
15031
  });
15032
+ engine.on("info", (msg2) => {
15033
+ writeContent(() => renderInfo(msg2));
15034
+ });
15015
15035
  const msg = await engine.start();
15016
15036
  return msg;
15017
15037
  },
@@ -15236,19 +15256,6 @@ Summarize or analyze this transcription as appropriate.`;
15236
15256
  writeContent(() => renderInfo(`Update available: v${version} \u2192 v${updateInfo.latestVersion}. Installing...`));
15237
15257
  const ok = performSilentUpdate();
15238
15258
  if (ok) {
15239
- if (lastSubmittedPrompt) {
15240
- try {
15241
- savePendingTask(repoRoot, {
15242
- prompt: lastSubmittedPrompt,
15243
- progressSummary: `Task completed ${sessionToolCallCount} tool calls before update. Last task finished normally.`,
15244
- filesModified: sessionFilesTouched,
15245
- bruteForce: bruteForceEnabled,
15246
- savedAt: (/* @__PURE__ */ new Date()).toISOString(),
15247
- toolCallCount: sessionToolCallCount
15248
- });
15249
- } catch {
15250
- }
15251
- }
15252
15259
  writeContent(() => renderInfo(`Updated to v${updateInfo.latestVersion}. Reloading...
15253
15260
  `));
15254
15261
  process.env.__OA_RESUMED = "1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
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",