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:
@@ -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)}"
|
||||
|
||||
Reference in New Issue
Block a user