open-agents-ai 0.185.39 → 0.185.40
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 +35 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36217,8 +36217,8 @@ var init_voice_session = __esm({
|
|
|
36217
36217
|
ttsSpeaking = false;
|
|
36218
36218
|
/** When set, serve PersonaPlex frontend that connects directly to this moshi.server WS URL */
|
|
36219
36219
|
personaPlexWsUrl = null;
|
|
36220
|
-
personaPlexTextPrompt = "You
|
|
36221
|
-
personaPlexVoicePrompt = "
|
|
36220
|
+
personaPlexTextPrompt = "You are having a natural conversation. Do not introduce yourself by name. Do not ask how you can help. Respond directly and naturally.";
|
|
36221
|
+
personaPlexVoicePrompt = "OverBarn.pt";
|
|
36222
36222
|
/** Idle timeout before auto-closing (ms). Default 60s — no users connected → session ends. */
|
|
36223
36223
|
idleTimeoutMs = 6e4;
|
|
36224
36224
|
/** Callback invoked when user audio chunk arrives (PCM 16kHz 16-bit mono) */
|
|
@@ -41718,6 +41718,38 @@ $2if filename.endswith(".safetensors"):`);
|
|
|
41718
41718
|
}
|
|
41719
41719
|
} catch {
|
|
41720
41720
|
}
|
|
41721
|
+
try {
|
|
41722
|
+
const sitePackages2 = execSync27(`"${python}" -c "import moshi, os; print(os.path.dirname(moshi.__file__))"`, {
|
|
41723
|
+
encoding: "utf8",
|
|
41724
|
+
timeout: 5e3,
|
|
41725
|
+
stdio: "pipe"
|
|
41726
|
+
}).trim();
|
|
41727
|
+
const hybridDest = join54(sitePackages2, "hybrid_agent.py");
|
|
41728
|
+
const serverDest = join54(sitePackages2, "server.py");
|
|
41729
|
+
if (!existsSync37(hybridDest) || !readFileSync28(hybridDest, "utf8").includes("OA_API_BASE")) {
|
|
41730
|
+
log("Deploying hybrid_agent.py (OA API integration)...");
|
|
41731
|
+
try {
|
|
41732
|
+
await execAsync(`curl -sL "https://raw.githubusercontent.com/robit-man/personaplex/main/personaplex-setup/moshi/moshi/hybrid_agent.py" -o "${hybridDest}"`, { timeout: 3e4 });
|
|
41733
|
+
if (existsSync37(hybridDest) && readFileSync28(hybridDest, "utf8").includes("OA_API_BASE")) {
|
|
41734
|
+
log("hybrid_agent.py deployed (OA API + Ollama fallback).");
|
|
41735
|
+
}
|
|
41736
|
+
} catch {
|
|
41737
|
+
log("hybrid_agent.py download failed \u2014 hybrid mode will be disabled.");
|
|
41738
|
+
}
|
|
41739
|
+
}
|
|
41740
|
+
if (!readFileSync28(serverDest, "utf8").includes("hybrid_agent")) {
|
|
41741
|
+
log("Deploying patched server.py (hybrid mode + API endpoints)...");
|
|
41742
|
+
try {
|
|
41743
|
+
await execAsync(`curl -sL "https://raw.githubusercontent.com/robit-man/personaplex/main/personaplex-setup/moshi/moshi/server.py" -o "${serverDest}"`, { timeout: 3e4 });
|
|
41744
|
+
if (readFileSync28(serverDest, "utf8").includes("hybrid_agent")) {
|
|
41745
|
+
log("server.py patched with hybrid intercept + REST APIs.");
|
|
41746
|
+
}
|
|
41747
|
+
} catch {
|
|
41748
|
+
log("server.py download failed \u2014 will use upstream version.");
|
|
41749
|
+
}
|
|
41750
|
+
}
|
|
41751
|
+
} catch {
|
|
41752
|
+
}
|
|
41721
41753
|
if (isAarch64) {
|
|
41722
41754
|
log("ARM64: Installing bitsandbytes for INT4 inference...");
|
|
41723
41755
|
try {
|
|
@@ -41726,7 +41758,7 @@ $2if filename.endswith(".safetensors"):`);
|
|
|
41726
41758
|
}
|
|
41727
41759
|
}
|
|
41728
41760
|
try {
|
|
41729
|
-
await execAsync(`"${pip}" install --quiet accelerate`, { timeout: 12e4, stdio: "pipe" });
|
|
41761
|
+
await execAsync(`"${pip}" install --quiet accelerate aiohttp`, { timeout: 12e4, stdio: "pipe" });
|
|
41730
41762
|
} catch {
|
|
41731
41763
|
}
|
|
41732
41764
|
try {
|
package/package.json
CHANGED