@livx.cc/agentx 0.96.9 → 0.96.11

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.
package/dist/cli.js CHANGED
@@ -7091,6 +7091,7 @@ function detectFfmpegMic() {
7091
7091
  if (process.env.MIC_DEVICE) return process.env.MIC_DEVICE;
7092
7092
  const r = spawnSync2("ffmpeg", ["-f", "avfoundation", "-list_devices", "true", "-i", ""], { encoding: "utf8" });
7093
7093
  if (r.error?.code === "ENOENT") throw new Error("ffmpeg not installed \u2014 run `brew install ffmpeg` to enable voice");
7094
+ if (r.error) throw new Error(`ffmpeg failed to run (${r.error.message}) \u2014 likely a wrong-arch binary; run \`brew reinstall ffmpeg\``);
7094
7095
  const out = r.stderr ?? "";
7095
7096
  const audio = out.slice(out.indexOf("audio devices"));
7096
7097
  const devices = [...audio.matchAll(/\[(\d+)\] (.+)/g)].map(([, idx, name]) => ({ idx, name: name.trim() }));