chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:06:23 +08:00
commit ea5096c873
282 changed files with 55366 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
from autoagent.util import run_command_in_container
from .docker_env import DockerEnv
from autoagent.io_utils import print_stream
def setup_metachain(workplace_name: str, env: DockerEnv):
cmd = "pip list | grep autoagent"
response = env.run_command(cmd, print_stream)
if response['status'] == 0:
print("AutoAgent is already installed.")
return
cmd = f"cd /{workplace_name}/AutoAgent && pip install -e ."
response = env.run_command(cmd, print_stream)
if response['status'] == 0:
print("AutoAgent is installed.")
return
else:
raise Exception(f"Failed to install autoagent. {response['result']}")