Support Assistent persona packs via git and local sync.

Replace assistent-personas overlay seed with assistent-extensions SFTP and an assistent: section in extensions.yaml so personalities install like other extensions without private URLs in the public repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-23 08:28:31 +03:00
co-authored by Cursor
parent b24c1b5d4b
commit 20ae7bd83a
25 changed files with 258 additions and 206 deletions
+8 -3
View File
@@ -127,9 +127,9 @@ def parse_extensions(path: Path) -> list[GitRepo]:
if not data:
return []
if not isinstance(data, dict):
raise ConfigError(f"{path}: корень swarmui: / comfy:")
raise ConfigError(f"{path}: корень swarmui: / comfy: / assistent:")
repos: list[GitRepo] = []
for kind in ("swarmui", "comfy"):
for kind in ("swarmui", "comfy", "assistent"):
items = data.get(kind) or []
if not items:
continue
@@ -184,5 +184,10 @@ def is_commit_sha(ref: str) -> bool:
def remote_root_for(repo: GitRepo) -> str:
base = "/mnt/swarm_data/Extensions" if repo.kind == "swarmui" else "/mnt/swarm_data/DLNodes"
if repo.kind == "swarmui":
base = "/mnt/swarm_data/Extensions"
elif repo.kind == "assistent":
base = "/mnt/swarm_data/Assistent/extensions"
else:
base = "/mnt/swarm_data/DLNodes"
return f"{base}/{repo_dirname(repo)}"