open-agents-ai 0.167.0 → 0.169.0
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 +17 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27564,7 +27564,6 @@ ${transcript}`
|
|
|
27564
27564
|
continue;
|
|
27565
27565
|
}
|
|
27566
27566
|
if (chunk.type === "content" && chunk.content) {
|
|
27567
|
-
content += chunk.content;
|
|
27568
27567
|
const fragment = chunk.content;
|
|
27569
27568
|
let kind;
|
|
27570
27569
|
if (chunk.thinking) {
|
|
@@ -27582,6 +27581,9 @@ ${transcript}`
|
|
|
27582
27581
|
inThinkTag = false;
|
|
27583
27582
|
kind = "content";
|
|
27584
27583
|
}
|
|
27584
|
+
if (kind === "content") {
|
|
27585
|
+
content += fragment;
|
|
27586
|
+
}
|
|
27585
27587
|
this.emit({
|
|
27586
27588
|
type: "stream_token",
|
|
27587
27589
|
content: fragment,
|
|
@@ -43927,7 +43929,8 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
|
43927
43929
|
renderInfo(" Cloning LuxTTS repository...");
|
|
43928
43930
|
try {
|
|
43929
43931
|
if (existsSync39(repoDir)) {
|
|
43930
|
-
|
|
43932
|
+
const rmCmd = process.platform === "win32" ? `rmdir /s /q ${JSON.stringify(repoDir)}` : `rm -rf ${JSON.stringify(repoDir)}`;
|
|
43933
|
+
await this.asyncShell(rmCmd, 3e4);
|
|
43931
43934
|
}
|
|
43932
43935
|
await this.asyncShell(`git clone --depth 1 https://github.com/ysharma3501/LuxTTS.git ${JSON.stringify(repoDir)}`, 12e4);
|
|
43933
43936
|
} catch (err) {
|
|
@@ -43974,17 +43977,23 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
|
43974
43977
|
{ cmd: `${pipCmd} -m pip install --quiet torch --index-url https://developer.download.nvidia.com/compute/redist/jp/v60/pytorch/ 2>/dev/null || ${pipCmd} -m pip install --quiet torch`, fatal: true, label: "PyTorch (Jetson L4T)" },
|
|
43975
43978
|
{ cmd: `${pipCmd} -m pip install --quiet onnxruntime-gpu 2>/dev/null || true`, fatal: false, label: "onnxruntime-gpu (Jetson, optional)" }
|
|
43976
43979
|
] : [
|
|
43977
|
-
// Non-Jetson ARM:
|
|
43978
|
-
|
|
43980
|
+
// Non-Jetson ARM: use default PyPI (has aarch64 wheels).
|
|
43981
|
+
// DO NOT use --index-url https://download.pytorch.org/whl/cpu — that index
|
|
43982
|
+
// only has x86_64 wheels. ARM needs the standard PyPI torch package.
|
|
43983
|
+
{ cmd: `${pipCmd} -m pip install --quiet torch torchaudio`, fatal: true, label: "PyTorch (ARM aarch64 from PyPI)" }
|
|
43979
43984
|
],
|
|
43980
43985
|
{ cmd: `${pipCmd} -m pip install --quiet numpy`, fatal: true, label: "numpy" },
|
|
43981
43986
|
{ cmd: `${pipCmd} -m pip install --quiet huggingface_hub safetensors`, fatal: true, label: "huggingface_hub + safetensors" },
|
|
43982
43987
|
{ cmd: `${pipCmd} -m pip install --quiet "transformers<=4.57.6"`, fatal: true, label: "transformers" },
|
|
43983
43988
|
{ cmd: `${pipCmd} -m pip install --quiet pydub inflect`, fatal: true, label: "pydub + inflect" },
|
|
43984
|
-
//
|
|
43985
|
-
{ cmd: `${pipCmd} -m pip install --quiet
|
|
43989
|
+
// llvmlite (needed by numba, needed by librosa): try prebuilt first, then compile
|
|
43990
|
+
{ cmd: `${pipCmd} -m pip install --quiet llvmlite 2>/dev/null || LLVM_CONFIG=$(which llvm-config || which llvm-config-14 || echo llvm-config) ${pipCmd} -m pip install --quiet llvmlite`, fatal: false, label: "llvmlite (ARM \u2014 trying prebuilt, then compiling)" },
|
|
43991
|
+
{ cmd: `${pipCmd} -m pip install --quiet numba`, fatal: false, label: "numba" },
|
|
43992
|
+
// librosa: if numba/llvmlite failed, librosa degrades but still works for basic audio loading
|
|
43993
|
+
{ cmd: `${pipCmd} -m pip install --quiet librosa`, fatal: true, label: "librosa" },
|
|
43986
43994
|
{ cmd: `${pipCmd} -m pip install --quiet lhotse`, fatal: true, label: "lhotse" },
|
|
43987
|
-
|
|
43995
|
+
// vocos: try pip, fallback to building from source if wheels missing
|
|
43996
|
+
{ cmd: `${pipCmd} -m pip install --quiet vocos 2>/dev/null || ${pipCmd} -m pip install --quiet --no-build-isolation vocos`, fatal: true, label: "vocos" },
|
|
43988
43997
|
{ cmd: `${pipCmd} -m pip install --quiet "git+https://github.com/ysharma3501/LinaCodec.git"`, fatal: true, label: "LinaCodec" },
|
|
43989
43998
|
// Non-fatal (not hard-imported by LuxTTS):
|
|
43990
43999
|
{ 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)" },
|
|
@@ -51175,7 +51184,7 @@ var init_stream_renderer = __esm({
|
|
|
51175
51184
|
if (this.lineBuffer.length > 0) {
|
|
51176
51185
|
this.flushPartial(kind);
|
|
51177
51186
|
}
|
|
51178
|
-
},
|
|
51187
|
+
}, 150);
|
|
51179
51188
|
}
|
|
51180
51189
|
cancelFlush() {
|
|
51181
51190
|
if (this.flushTimer) {
|
package/package.json
CHANGED