mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 19:51:11 +00:00
BIG PYTHON REFACTOR
Python scripts moved out of python/ folder to root to be unified with plugins + frontend extension around api calls
This commit is contained in:
parent
f94b7d742c
commit
d02dda3667
326 changed files with 1096 additions and 862 deletions
|
|
@ -8,13 +8,13 @@ import zipfile
|
|||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
from python.helpers import files
|
||||
from python.helpers.plugins import (
|
||||
from helpers import files
|
||||
from helpers.plugins import (
|
||||
META_FILE_NAME,
|
||||
PluginMetadata,
|
||||
invalidate_plugin_cache,
|
||||
)
|
||||
from python.helpers import yaml as yaml_helper
|
||||
from helpers import yaml as yaml_helper
|
||||
|
||||
_SAFE_NAME_RE = re.compile(r"^[a-zA-Z0-9][a-zA-Z0-9_]*$")
|
||||
|
||||
|
|
@ -127,7 +127,7 @@ def install_from_zip(zip_path: str) -> dict:
|
|||
def install_from_git(url: str, token: Optional[str] = None) -> dict:
|
||||
"""Clone git repo into usr/plugins/, validate plugin.yaml.
|
||||
Returns dict with plugin name and metadata."""
|
||||
from python.helpers.git import clone_repo
|
||||
from helpers.git import clone_repo
|
||||
|
||||
# Derive plugin name from URL
|
||||
repo_name = url.rstrip("/").split("/")[-1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue