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:
+7
-2
@@ -923,13 +923,18 @@ def seed_models() -> None:
|
||||
|
||||
@app.command("push")
|
||||
def push_all() -> None:
|
||||
"""SFTP Models + Wildcards + CustomWorkflows."""
|
||||
"""SFTP Models + Wildcards + CustomWorkflows + assistent-extensions."""
|
||||
try:
|
||||
from gpu_rent.paths import assistent_extensions_dir
|
||||
from gpu_rent.provision import seed_assistent_personas
|
||||
|
||||
cfg, host = _live()
|
||||
|
||||
push_tree(cfg, host, cfg.local_models_dir, "/mnt/swarm_data/Models", log, models=True)
|
||||
push_tree(cfg, host, cfg.local_wildcards_dir, "/mnt/swarm_data/Data/Wildcards", log, models=False)
|
||||
push_tree(cfg, host, cfg.local_workflows_dir, "/mnt/swarm_data/CustomWorkflows", log, models=False)
|
||||
if assistent_extensions_dir().is_dir():
|
||||
seed_assistent_personas(cfg, host, log)
|
||||
except GpuRentError as exc:
|
||||
_die(exc)
|
||||
|
||||
@@ -985,7 +990,7 @@ def seed_extensions_cmd() -> None:
|
||||
|
||||
@app.command("seed-personas")
|
||||
def seed_personas_cmd() -> None:
|
||||
"""Push assistent-personas/ → VM Assistent overlay (без полного up)."""
|
||||
"""Push assistent-extensions/ → VM Assistent/extensions (+ _base)."""
|
||||
try:
|
||||
from gpu_rent.provision import seed_assistent_personas
|
||||
|
||||
|
||||
Reference in New Issue
Block a user