open-agents-ai 0.187.285 → 0.187.287

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 +38 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -328340,7 +328340,7 @@ var VAD_SILENCE_MS, MAX_SEGMENT_MS, MAX_CONTEXT_TURNS, SYSTEM_PROMPT2, MIN_SIGNA
328340
328340
  var init_voicechat = __esm({
328341
328341
  "packages/cli/src/tui/voicechat.ts"() {
328342
328342
  "use strict";
328343
- VAD_SILENCE_MS = 2e3;
328343
+ VAD_SILENCE_MS = 3e3;
328344
328344
  MAX_SEGMENT_MS = 6500;
328345
328345
  MAX_CONTEXT_TURNS = 20;
328346
328346
  SYSTEM_PROMPT2 = `You are a voice assistant having a live spoken conversation. Keep responses extremely brief — 1-2 sentences max. You're speaking aloud, not writing. Be conversational, direct, and helpful. Don't use markdown or formatting — just natural speech.
@@ -328403,7 +328403,9 @@ Rules:
328403
328403
  this.verbose = Boolean(opts.verbose);
328404
328404
  this.debugSnr = Boolean(opts.debugSnr);
328405
328405
  this.heuristicsEnabled = opts.heuristicsEnabled !== false;
328406
- this.toolRelay = opts.toolRelay ?? null;
328406
+ if (typeof opts.vadSilenceMs === "number" && opts.vadSilenceMs > 0) {
328407
+ this._vadSilenceMs = Math.floor(opts.vadSilenceMs);
328408
+ }
328407
328409
  this.onStatus = opts.onStatus ?? (() => {
328408
328410
  });
328409
328411
  this.onUserSpeech = opts.onUserSpeech ?? (() => {
@@ -328556,15 +328558,12 @@ Rules:
328556
328558
  this.emit("snr", { score: this.lastSignalScore });
328557
328559
  this.onPartialTranscript(text);
328558
328560
  if (this.silenceTimer) clearTimeout(this.silenceTimer);
328559
- if (isFinal) {
328560
- this.finalizeSegment();
328561
- } else {
328562
- this.silenceTimer = setTimeout(() => {
328563
- if (this._state === "CAPTURING") {
328564
- this.finalizeSegment();
328565
- }
328566
- }, VAD_SILENCE_MS);
328567
- }
328561
+ const waitMs = this._vadSilenceMs ?? VAD_SILENCE_MS;
328562
+ this.silenceTimer = setTimeout(() => {
328563
+ if (this._state === "CAPTURING") {
328564
+ this.finalizeSegment();
328565
+ }
328566
+ }, waitMs);
328568
328567
  }
328569
328568
  // ---------------------------------------------------------------------------
328570
328569
  // Segment finalization → Transcribing → Thinking → Speaking
@@ -333363,14 +333362,40 @@ Respond concisely and safely. Remember: you are talking to the general public.`;
333363
333362
  }
333364
333363
  if (name11 === "voice_tool_catalog") {
333365
333364
  const cat2 = activeTask2?.runner.getToolCatalog() ?? [];
333366
- const allow = /* @__PURE__ */ new Set(["list_directory", "file_read", "grep_search", "find_files", "memory_read", "memory_search", "todo_read"]);
333365
+ const allow = /* @__PURE__ */ new Set([
333366
+ "list_directory",
333367
+ "file_read",
333368
+ "grep_search",
333369
+ "find_files",
333370
+ "memory_read",
333371
+ "memory_search",
333372
+ "todo_read",
333373
+ "codebase_map",
333374
+ "diagnostic",
333375
+ "git_info",
333376
+ "web_search",
333377
+ "web_fetch"
333378
+ ]);
333367
333379
  const filtered = cat2.filter((t2) => allow.has(t2.name));
333368
333380
  return JSON.stringify(filtered, null, 2);
333369
333381
  }
333370
333382
  if (name11 === "voice_tool_call") {
333371
333383
  const toolName = String(args2?.name || "").trim();
333372
333384
  const toolArgs = args2?.args || {};
333373
- const allow = /* @__PURE__ */ new Set(["list_directory", "file_read", "grep_search", "find_files", "memory_read", "memory_search", "todo_read"]);
333385
+ const allow = /* @__PURE__ */ new Set([
333386
+ "list_directory",
333387
+ "file_read",
333388
+ "grep_search",
333389
+ "find_files",
333390
+ "memory_read",
333391
+ "memory_search",
333392
+ "todo_read",
333393
+ "codebase_map",
333394
+ "diagnostic",
333395
+ "git_info",
333396
+ "web_search",
333397
+ "web_fetch"
333398
+ ]);
333374
333399
  if (!allow.has(toolName)) return `Tool not allowed: ${toolName}`;
333375
333400
  if (!activeTask2) return "No active task.";
333376
333401
  const result = await activeTask2.runner.runToolByName(toolName, toolArgs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.285",
3
+ "version": "0.187.287",
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",