Point gpu-rent logs at gpu-rent-ollama and harden Assistent bin probes.

Stock ollama.service is disabled by install; journal aliases must use
gpu-rent-ollama. Prefer bin/{Debug,Release}/net* when locating the
extension DLL and Sqlite private deps.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-23 06:46:57 +03:00
co-authored by Cursor
parent ca11467a0d
commit 23b07672d6
4 changed files with 46 additions and 20 deletions
+15 -4
View File
@@ -30,10 +30,18 @@ for root in roots:
for p in sorted(root.iterdir()):
if "assistent" not in p.name.lower():
continue
dlls = sorted(p.glob("bin/**/SwarmAssistentExtension.dll"))
# Prefer TFM output dirs (Debug/Release net*), then any bin/** fallback
dlls = []
for cfg_name in ("Debug", "Release"):
dlls.extend(sorted(p.glob(f"bin/{cfg_name}/net*/SwarmAssistentExtension.dll")))
if not dlls:
dlls = sorted(p.glob("bin/**/SwarmAssistentExtension.dll"))
if not dlls:
# Older layout / alternate assembly name
dlls = sorted(p.glob("bin/**/*Assistent*.dll"))
for cfg_name in ("Debug", "Release"):
dlls.extend(sorted(p.glob(f"bin/{cfg_name}/net*/*Assistent*.dll")))
if not dlls:
dlls = sorted(p.glob("bin/**/*Assistent*.dll"))
dll = dlls[0] if dlls else None
dll_dir = dll.parent if dll else None
sqlite_dll = (dll_dir / "Microsoft.Data.Sqlite.dll") if dll_dir else None
@@ -335,9 +343,12 @@ def collect_assistent_extension(cfg: Config, *, fs: dict[str, Any] | None = None
hints.append(f"{e.get('name')}: нет DLL — compile fail / Swarm не билдил")
ok = False
elif not e.get("sqlite_dll"):
where = e.get("dll_dir") or "bin/{Debug,Release}/net*"
hints.append(
f"{e.get('name')}: DLL есть, но нет Microsoft.Data.Sqlite.dll — "
"чат/memory API могут падать (нужен ≥0.13.1 + seed-extensions)"
f"{e.get('name')}: DLL есть ({where}), но рядом нет "
"Microsoft.Data.Sqlite.dll (+ SQLitePCLRaw*) — чат/memory API упадут. "
"Нужен swarm-assistent ≥0.13.1 (CopyLocalLockFileAssemblies) + "
"gpu-rent seed-extensions + restart SwarmUI"
)
ok = False
if not e.get("tab_html") or not e.get("bundle_js"):