34 lines
827 B
Python
34 lines
827 B
Python
"""
|
|
tools_v2.py - Stub de compatibilidade.
|
|
Todas as funções foram movidas para core_tools.py.
|
|
Manter este arquivo para não quebrar imports existentes.
|
|
"""
|
|
from core_tools import (
|
|
AVAILABLE_TOOLS as TOOLS_V2,
|
|
run_bash,
|
|
DockerTools,
|
|
GitTools,
|
|
SystemTools,
|
|
WorkspaceTools,
|
|
gitea_list_repos,
|
|
supabase_list_tables,
|
|
get_all_tools_formatted,
|
|
get_tools_by_danger,
|
|
)
|
|
|
|
# Reclassificar como classes para compat (ou simples re-export)
|
|
class GiteaTools:
|
|
@staticmethod
|
|
def list_repos() -> str:
|
|
import asyncio
|
|
return asyncio.run(gitea_list_repos())
|
|
|
|
class SupabaseTools:
|
|
@staticmethod
|
|
def list_tables() -> str:
|
|
import asyncio
|
|
return asyncio.run(supabase_list_tables())
|
|
|
|
# Mantém compat comorchestrator.py que referencia TOOLS_V2
|
|
TOOLS_V2 = TOOLS_V2
|