open-agents-ai 0.138.62 → 0.138.64
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 +37 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40441,29 +40441,49 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
|
40441
40441
|
const pipCmd = JSON.stringify(venvPy);
|
|
40442
40442
|
const isArm = process.arch === "arm64" || process.arch === "arm";
|
|
40443
40443
|
if (isArm) {
|
|
40444
|
-
renderInfo(" ARM device detected \u2014 installing
|
|
40444
|
+
renderInfo(" ARM device detected \u2014 installing build prerequisites then deps individually.");
|
|
40445
|
+
try {
|
|
40446
|
+
const { spawnSync } = await import("node:child_process");
|
|
40447
|
+
renderInfo(" System build tools needed (llvm, gcc). Requesting sudo access...");
|
|
40448
|
+
const sudoCheck = spawnSync("sudo", ["-v"], { stdio: "inherit", timeout: 6e4 });
|
|
40449
|
+
if (sudoCheck.status === 0) {
|
|
40450
|
+
renderInfo(" Installing system build dependencies (this may take a minute)...");
|
|
40451
|
+
spawnSync("sudo", [
|
|
40452
|
+
"apt-get",
|
|
40453
|
+
"install",
|
|
40454
|
+
"-y",
|
|
40455
|
+
"--no-install-recommends",
|
|
40456
|
+
"llvm-dev",
|
|
40457
|
+
"gcc",
|
|
40458
|
+
"g++",
|
|
40459
|
+
"gfortran",
|
|
40460
|
+
"libopenblas-dev",
|
|
40461
|
+
"libsndfile1-dev"
|
|
40462
|
+
], { stdio: "inherit", timeout: 12e4 });
|
|
40463
|
+
} else {
|
|
40464
|
+
renderWarning(" sudo not available \u2014 skipping system build deps. librosa/lhotse may fail to compile.");
|
|
40465
|
+
}
|
|
40466
|
+
} catch (err) {
|
|
40467
|
+
renderWarning(` Could not install system build deps: ${err instanceof Error ? err.message : String(err)}`);
|
|
40468
|
+
}
|
|
40445
40469
|
}
|
|
40446
40470
|
const installSteps = isArm ? [
|
|
40447
|
-
// ARM: install
|
|
40448
|
-
//
|
|
40449
|
-
// Everything else is non-fatal — missing deps degrade features, not crash.
|
|
40450
|
-
//
|
|
40451
|
-
// Critical for inference (fatal):
|
|
40471
|
+
// ARM: install individually so we get clear error messages per package.
|
|
40472
|
+
// ALL are fatal because LuxTTS hard-imports them (no lazy/optional imports).
|
|
40452
40473
|
{ cmd: `${pipCmd} -m pip install --quiet "setuptools<81" wheel`, fatal: true, label: "setuptools" },
|
|
40453
40474
|
{ cmd: `${pipCmd} -m pip install --quiet numpy`, fatal: true, label: "numpy" },
|
|
40454
40475
|
{ cmd: `${pipCmd} -m pip install --quiet huggingface_hub safetensors`, fatal: true, label: "huggingface_hub + safetensors" },
|
|
40455
40476
|
{ cmd: `${pipCmd} -m pip install --quiet "transformers<=4.57.6"`, fatal: true, label: "transformers" },
|
|
40456
|
-
{ cmd: `${pipCmd} -m pip install --quiet pydub`, fatal: true, label: "pydub" },
|
|
40457
|
-
//
|
|
40458
|
-
{ cmd: `${pipCmd} -m pip install --quiet
|
|
40459
|
-
{ cmd: `${pipCmd} -m pip install --quiet lhotse`, fatal:
|
|
40460
|
-
{ cmd: `${pipCmd} -m pip install --quiet
|
|
40461
|
-
{ cmd: `${pipCmd} -m pip install --quiet
|
|
40462
|
-
|
|
40463
|
-
|
|
40464
|
-
{ cmd: `${pipCmd} -m pip install --quiet jieba pypinyin cn2an`, fatal:
|
|
40465
|
-
|
|
40466
|
-
// LuxTTS itself (fatal — this is what we're installing):
|
|
40477
|
+
{ cmd: `${pipCmd} -m pip install --quiet pydub inflect`, fatal: true, label: "pydub + inflect" },
|
|
40478
|
+
// librosa needs numba→llvmlite which compiles against LLVM on ARM
|
|
40479
|
+
{ cmd: `${pipCmd} -m pip install --quiet librosa`, fatal: true, label: "librosa (compiling numba/llvmlite \u2014 this may take several minutes on ARM)" },
|
|
40480
|
+
{ cmd: `${pipCmd} -m pip install --quiet lhotse`, fatal: true, label: "lhotse" },
|
|
40481
|
+
{ cmd: `${pipCmd} -m pip install --quiet vocos`, fatal: true, label: "vocos" },
|
|
40482
|
+
{ cmd: `${pipCmd} -m pip install --quiet "git+https://github.com/ysharma3501/LinaCodec.git"`, fatal: true, label: "LinaCodec" },
|
|
40483
|
+
// Non-fatal (not hard-imported by LuxTTS):
|
|
40484
|
+
{ cmd: `${pipCmd} -m pip install --quiet piper-phonemize --find-links https://k2-fsa.github.io/icefall/piper_phonemize.html`, fatal: false, label: "piper-phonemize (optional)" },
|
|
40485
|
+
{ cmd: `${pipCmd} -m pip install --quiet jieba pypinyin cn2an`, fatal: true, label: "Chinese text processing" },
|
|
40486
|
+
// LuxTTS itself:
|
|
40467
40487
|
{ cmd: `${pipCmd} -m pip install --quiet -e ${JSON.stringify(repoDir)}`, fatal: true, label: "LuxTTS (editable install)" }
|
|
40468
40488
|
] : [
|
|
40469
40489
|
// x86_64: all-in-one (fast, all wheels available)
|
package/package.json
CHANGED