open-agents-ai 0.187.145 → 0.187.146
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/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -256156,7 +256156,7 @@ var init_audio_analyze = __esm({
|
|
|
256156
256156
|
const audioFile = await this.ensureAudioFile(args);
|
|
256157
256157
|
if (!audioFile)
|
|
256158
256158
|
return { success: false, output: "", error: "Could not get audio. Provide a file path or connect a microphone.", durationMs: performance.now() - start2 };
|
|
256159
|
-
await this.ensureVenv(["tensorflow", "tensorflow-hub", "numpy", "soundfile", "resampy"]);
|
|
256159
|
+
await this.ensureVenv(["tensorflow", "tensorflow-hub", "numpy", "soundfile", "resampy", "setuptools<81"]);
|
|
256160
256160
|
const topK = args["top_k"] || 5;
|
|
256161
256161
|
const script = `
|
|
256162
256162
|
import sys, json, numpy as np
|
|
@@ -256390,11 +256390,12 @@ Context saved to: ${contextFile}`,
|
|
|
256390
256390
|
execSync35(`python3 -m venv ${VENV_DIR}`, { timeout: 3e4, stdio: "pipe" });
|
|
256391
256391
|
}
|
|
256392
256392
|
for (const pkg of packages) {
|
|
256393
|
+
const importName = pkg.replace(/[<>=!].*/g, "").replace(/-/g, "_");
|
|
256393
256394
|
try {
|
|
256394
|
-
execSync35(`${VENV_PYTHON} -c "import ${
|
|
256395
|
+
execSync35(`${VENV_PYTHON} -c "import ${importName}"`, { timeout: 1e4, stdio: "pipe" });
|
|
256395
256396
|
} catch {
|
|
256396
256397
|
try {
|
|
256397
|
-
execSync35(`${VENV_PIP} install ${pkg}`, { timeout: 3e5, stdio: "pipe" });
|
|
256398
|
+
execSync35(`${VENV_PIP} install "${pkg}"`, { timeout: 3e5, stdio: "pipe" });
|
|
256398
256399
|
} catch {
|
|
256399
256400
|
}
|
|
256400
256401
|
}
|
|
@@ -256408,7 +256409,7 @@ Context saved to: ${contextFile}`,
|
|
|
256408
256409
|
const output = execSync35(`${VENV_PYTHON} ${scriptFile}`, {
|
|
256409
256410
|
encoding: "utf8",
|
|
256410
256411
|
timeout: 3e5,
|
|
256411
|
-
env: { ...process.env, TF_CPP_MIN_LOG_LEVEL: "3", PYTHONUNBUFFERED: "1" }
|
|
256412
|
+
env: { ...process.env, TF_CPP_MIN_LOG_LEVEL: "3", TF_ENABLE_ONEDNN_OPTS: "0", PYTHONUNBUFFERED: "1" }
|
|
256412
256413
|
});
|
|
256413
256414
|
try {
|
|
256414
256415
|
const result = JSON.parse(output.trim().split("\n").pop());
|
package/package.json
CHANGED