open-agents-ai 0.185.41 → 0.185.43

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 +19 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -41499,13 +41499,20 @@ function isPersonaPlexInstalled() {
41499
41499
  return existsSync37(join54(PERSONAPLEX_DIR, "model_ready"));
41500
41500
  }
41501
41501
  function getWeightTier() {
41502
+ const detected = detectPersonaPlexCapability();
41502
41503
  const tierFile = join54(PERSONAPLEX_DIR, "weight_tier");
41503
41504
  if (existsSync37(tierFile)) {
41504
41505
  const saved = readFileSync28(tierFile, "utf8").trim();
41505
- if (saved in WEIGHT_REPOS)
41506
+ if (saved in WEIGHT_REPOS) {
41507
+ const vram = detected.vramGB;
41508
+ if (saved === "nf4-distilled" && vram < 24) {
41509
+ writeFileSync16(tierFile, "nf4");
41510
+ return "nf4";
41511
+ }
41506
41512
  return saved;
41513
+ }
41507
41514
  }
41508
- return detectPersonaPlexCapability().weightTier;
41515
+ return detected.weightTier;
41509
41516
  }
41510
41517
  function getWeightRepoInfo(tier) {
41511
41518
  return WEIGHT_REPOS[tier];
@@ -43665,8 +43672,9 @@ async function ensureVisionDeps(onInfo, getSudoPassword) {
43665
43672
  }
43666
43673
  }
43667
43674
  const venvDir = getVenvDir();
43668
- const venvBin = join55(venvDir, "bin");
43669
- const venvMoondream = join55(venvBin, "moondream-station");
43675
+ const isWin2 = process.platform === "win32";
43676
+ const venvBin = join55(venvDir, isWin2 ? "Scripts" : "bin");
43677
+ const venvMoondream = join55(venvBin, isWin2 ? "moondream-station.exe" : "moondream-station");
43670
43678
  const venv = ensureVenv(log);
43671
43679
  if (venv && !hasCmd("moondream-station") && !existsSync38(venvMoondream)) {
43672
43680
  const venvPip2 = join55(venvBin, "pip");
@@ -43690,8 +43698,8 @@ async function ensureVisionDeps(onInfo, getSudoPassword) {
43690
43698
  }
43691
43699
  }
43692
43700
  if (venv) {
43693
- const venvPython2 = join55(venvBin, "python");
43694
- const venvPip2 = join55(venvBin, "pip");
43701
+ const venvPython2 = join55(venvBin, isWin2 ? "python.exe" : "python");
43702
+ const venvPip2 = join55(venvBin, isWin2 ? "pip.exe" : "pip");
43695
43703
  let ocrStackInstalled = false;
43696
43704
  try {
43697
43705
  execSync28(`"${venvPython2}" -c "import cv2, pytesseract, numpy, PIL"`, { stdio: "pipe", timeout: 1e4 });
@@ -45923,11 +45931,11 @@ def main():
45923
45931
  tag = "cu124" if mj>=12 and mn>=4 else "cu121" if mj>=12 else "cu118" if mj>=11 and mn>=8 else "cu121"
45924
45932
  spec["pip_args"] = ["torch","torchaudio","--index-url",f"https://download.pytorch.org/whl/{tag}"]
45925
45933
  spec["pip_args_str"] = f"torch torchaudio --index-url https://download.pytorch.org/whl/{tag}"
45926
- spec["description"] = f"Linux x86_64 CUDA {cv} ({tag})"
45934
+ spec["description"] = f"{sys.platform} x86_64 CUDA {cv} ({tag})"
45927
45935
  else:
45928
45936
  spec["pip_args"] = ["torch","torchaudio","--index-url","https://download.pytorch.org/whl/cpu"]
45929
45937
  spec["pip_args_str"] = "torch torchaudio --index-url https://download.pytorch.org/whl/cpu"
45930
- spec["description"] = "Linux x86_64 CPU"
45938
+ spec["description"] = f"{sys.platform} x86_64 CPU"
45931
45939
  if "--pip-args" in sys.argv: print(spec["pip_args_str"])
45932
45940
  elif "--json" in sys.argv or len(sys.argv) <= 1: print(json.dumps(spec, indent=2))
45933
45941
  elif "--description" in sys.argv: print(spec["description"])
@@ -47809,7 +47817,9 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
47809
47817
  const venvPy = luxttsVenvPy();
47810
47818
  if (existsSync42(venvPy)) {
47811
47819
  try {
47812
- await this.asyncShell(`${venvPy} -c "import sys; sys.path.insert(0, '${luxttsRepoDir()}'); from zipvoice.luxvoice import LuxTTS; print('ok')"`, 3e4);
47820
+ const quotedPy = `"${venvPy}"`;
47821
+ const repoPath = luxttsRepoDir().replace(/\\/g, "/");
47822
+ await this.asyncShell(`${quotedPy} -c "import sys; sys.path.insert(0, '${repoPath}'); from zipvoice.luxvoice import LuxTTS; print('ok')"`, 3e4);
47813
47823
  let hasCudaSys = false;
47814
47824
  try {
47815
47825
  await this.asyncShell("nvidia-smi", 5e3);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.185.41",
3
+ "version": "0.185.43",
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",