open-agents-ai 0.185.39 → 0.185.41

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.
Files changed (2) hide show
  1. package/dist/index.js +44 -5
  2. 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 enjoy having a good conversation.";
36221
- personaPlexVoicePrompt = "NATF2.pt";
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) */
@@ -41395,7 +41395,7 @@ function execAsync(cmd, opts = {}) {
41395
41395
  function selectWeightTier(vramGB) {
41396
41396
  if (vramGB >= 48)
41397
41397
  return "original";
41398
- if (vramGB >= 16)
41398
+ if (vramGB >= 24)
41399
41399
  return "nf4-distilled";
41400
41400
  return "nf4";
41401
41401
  }
@@ -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 {
@@ -41905,7 +41937,12 @@ print('Converted')
41905
41937
  } catch {
41906
41938
  log("Ollama not detected \u2014 running PersonaPlex standalone (no hybrid)");
41907
41939
  }
41908
- log(`Starting PersonaPlex daemon (${tier} tier${hybridEnabled ? ", hybrid" : ""})...`);
41940
+ const caps = detectPersonaPlexCapability();
41941
+ const needsOffload = caps.vramGB > 0 && caps.vramGB < 24;
41942
+ if (needsOffload) {
41943
+ log(`GPU has ${caps.vramGB.toFixed(0)}GB VRAM \u2014 enabling CPU offload (model needs ~19GB)`);
41944
+ }
41945
+ log(`Starting PersonaPlex daemon (${tier} tier${hybridEnabled ? ", hybrid" : ""}${needsOffload ? ", cpu-offload" : ""})...`);
41909
41946
  const serverArgs = [
41910
41947
  "-m",
41911
41948
  "moshi.server",
@@ -41921,6 +41958,8 @@ print('Converted')
41921
41958
  ];
41922
41959
  if (hybridEnabled)
41923
41960
  serverArgs.push("--hybrid");
41961
+ if (needsOffload)
41962
+ serverArgs.push("--cpu-offload");
41924
41963
  const serverEnv = { ...process.env };
41925
41964
  if (hybridEnabled) {
41926
41965
  serverEnv["HYBRID_ENABLED"] = "1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.185.39",
3
+ "version": "0.185.41",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",