mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-01 21:20:33 +00:00
rename skills dirs for consistency
This commit is contained in:
parent
eae4a09b3a
commit
2baac23286
31 changed files with 33 additions and 33 deletions
|
|
@ -14,7 +14,7 @@ from werkzeug.utils import secure_filename
|
|||
|
||||
class SkillsImportPreview(ApiHandler):
|
||||
"""
|
||||
Preview importing an external skills pack (.zip) into skills/shared/<namespace>/...
|
||||
Preview importing an external skills pack (.zip) into usr/skills/custom/<namespace>/...
|
||||
Uses dry-run (no copying).
|
||||
"""
|
||||
|
||||
|
|
@ -31,9 +31,9 @@ class SkillsImportPreview(ApiHandler):
|
|||
return {"success": False, "error": "No context id provided"}
|
||||
_context = self.use_context(ctxid)
|
||||
|
||||
dest = (request.form.get("dest", "shared") or "shared").strip().lower()
|
||||
if dest not in ("shared", "custom", "project"):
|
||||
dest = "shared"
|
||||
dest = (request.form.get("dest", "custom") or "custom").strip().lower()
|
||||
if dest not in ("custom", "project"):
|
||||
dest = "custom"
|
||||
|
||||
conflict = (request.form.get("conflict", "skip") or "skip").strip().lower()
|
||||
if conflict not in ("skip", "overwrite", "rename"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue