open-agents-ai 0.187.150 → 0.187.151
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 +24 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -292763,11 +292763,27 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`
|
|
|
292763
292763
|
// ARM: install individually so we get clear error messages per package.
|
|
292764
292764
|
// ALL are fatal because LuxTTS hard-imports them (no lazy/optional imports).
|
|
292765
292765
|
{ cmd: `${pipCmd} -m pip install --quiet "setuptools<81" wheel`, fatal: true, label: "setuptools" },
|
|
292766
|
-
// Jetson: try NVIDIA's prebuilt PyTorch wheel
|
|
292767
|
-
|
|
292768
|
-
|
|
292769
|
-
|
|
292770
|
-
|
|
292766
|
+
// Jetson: try NVIDIA's prebuilt PyTorch wheel for detected JetPack version.
|
|
292767
|
+
// JetPack versions have different PyTorch wheel URLs:
|
|
292768
|
+
// JP6.x: https://developer.download.nvidia.com/compute/redist/jp/v60/pytorch/
|
|
292769
|
+
// JP5.x: https://developer.download.nvidia.com/compute/redist/jp/v51/pytorch/
|
|
292770
|
+
// Auto-detect JetPack version from /etc/nv_tegra_release or dpkg.
|
|
292771
|
+
...isJetson ? (() => {
|
|
292772
|
+
let jpVer = "v60";
|
|
292773
|
+
try {
|
|
292774
|
+
const tegra = existsSync56("/etc/nv_tegra_release") ? execSync47("cat /etc/nv_tegra_release 2>/dev/null", { encoding: "utf8", timeout: 3e3 }).trim() : "";
|
|
292775
|
+
const dpkg = execSync47("dpkg -l nvidia-jetpack 2>/dev/null | grep nvidia-jetpack | awk '{print $3}'", { encoding: "utf8", timeout: 5e3 }).trim();
|
|
292776
|
+
const ver = dpkg || process.env.JETSON_L4T_VERSION || "";
|
|
292777
|
+
if (ver.startsWith("5.") || tegra.includes("R35") || tegra.includes("R34")) jpVer = "v51";
|
|
292778
|
+
else if (ver.startsWith("6.1") || tegra.includes("R36.4")) jpVer = "v61";
|
|
292779
|
+
else if (ver.startsWith("6.") || tegra.includes("R36")) jpVer = "v60";
|
|
292780
|
+
} catch {
|
|
292781
|
+
}
|
|
292782
|
+
return [
|
|
292783
|
+
{ cmd: `${pipCmd} -m pip install --quiet torch torchvision torchaudio --index-url https://developer.download.nvidia.com/compute/redist/jp/${jpVer}/pytorch/ 2>/dev/null || ${pipCmd} -m pip install --quiet torch torchaudio`, fatal: true, label: `PyTorch (Jetson JP ${jpVer})` },
|
|
292784
|
+
{ cmd: `${pipCmd} -m pip install --quiet onnxruntime-gpu 2>/dev/null || true`, fatal: false, label: "onnxruntime-gpu (Jetson, optional)" }
|
|
292785
|
+
];
|
|
292786
|
+
})() : [
|
|
292771
292787
|
// Non-Jetson ARM: use default PyPI (has aarch64 wheels).
|
|
292772
292788
|
// DO NOT use --index-url https://download.pytorch.org/whl/cpu — that index
|
|
292773
292789
|
// only has x86_64 wheels. ARM needs the standard PyPI torch package.
|
|
@@ -292785,7 +292801,9 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`
|
|
|
292785
292801
|
{ cmd: `${pipCmd} -m pip install --quiet lhotse`, fatal: true, label: "lhotse" },
|
|
292786
292802
|
// vocos: try pip, fallback to building from source if wheels missing
|
|
292787
292803
|
{ cmd: `${pipCmd} -m pip install --quiet vocos 2>/dev/null || ${pipCmd} -m pip install --quiet --no-build-isolation vocos`, fatal: true, label: "vocos" },
|
|
292788
|
-
|
|
292804
|
+
// LinaCodec: needs C++ build tools on ARM. Install with --no-build-isolation
|
|
292805
|
+
// and fallback to CPU-only if CUDA compilation fails.
|
|
292806
|
+
{ cmd: `${pipCmd} -m pip install --quiet "git+https://github.com/ysharma3501/LinaCodec.git" 2>/dev/null || ${pipCmd} -m pip install --quiet --no-build-isolation "git+https://github.com/ysharma3501/LinaCodec.git"`, fatal: true, label: "LinaCodec (voice cloning codec)" },
|
|
292789
292807
|
// Non-fatal (not hard-imported by LuxTTS):
|
|
292790
292808
|
{ 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)" },
|
|
292791
292809
|
{ cmd: `${pipCmd} -m pip install --quiet jieba pypinyin cn2an`, fatal: true, label: "Chinese text processing" },
|
package/package.json
CHANGED