refactor: clean up legacy code, rename hopper to entity_extractor, and add third-party notices
- Add NOTICE file and README license references for mobile-use and finalrun-agent - Add derivative attribution headers to 17 files derived from mobile-use - Rename hopper agent to entity_extractor across prompts, tools, and configs - Remove obsolete adb_tunnel, ApiBaseUrl, and legacy CLI utility scripts - Replace legacy examples with native Artemis diagnostic and workflow examples - Update unit and tool tests to validate entity_extractor and SDK builders
This commit is contained in:
1 parent
0860788192
commit
54fcef9887
83 files changed
+1996
-3660
No files matched your search
@@ -26,7 +26,6 @@ from artemis.config import checker_overrides_for_level, initialize_llm_config, s
|
||||
from artemis.utils.startup_progress import publish_startup_progress
|
||||
from artemis import Agent, Builders
|
||||
from artemis.sdk.types.task import AgentProfile
|
||||
from artemis.utils.cli_helpers import display_device_status
|
||||
from artemis.utils.logger import get_logger
|
||||
from artemis.utils.video import check_ffmpeg_available
|
||||
import signal
|
||||
@@ -37,6 +36,23 @@ import typer
|
||||
logger = get_logger(__name__)
|
||||
|
||||
|
||||
def _display_device_status(console: Console, adb_client: AdbClient | None = None) -> None:
|
||||
"""Checks for connected devices and displays the status."""
|
||||
console.print("\n[bold]📱 Device Status[/bold]")
|
||||
devices = None
|
||||
if adb_client is not None:
|
||||
try:
|
||||
devices = adb_client.device_list()
|
||||
except Exception:
|
||||
devices = None
|
||||
if devices:
|
||||
console.print("✅ [bold green]Android device(s) connected:[/bold green]")
|
||||
for device in devices:
|
||||
console.print(f" - {device.serial}")
|
||||
else:
|
||||
console.print("❌ [bold red]No Android device found.[/bold red]")
|
||||
|
||||
|
||||
async def execute_task(
|
||||
goal: str,
|
||||
device_serial: str | None = None,
|
||||
@@ -451,7 +467,7 @@ def run_command(
|
||||
# Optional cosmetic device-status display; run continues without it.
|
||||
logger.debug(f"Could not create ADB client for device status display: {exc}")
|
||||
|
||||
display_device_status(console, adb_client=adb_client)
|
||||
_display_device_status(console, adb_client=adb_client)
|
||||
|
||||
cancelled = False
|
||||
original_sigterm = None
|
||||
|
||||
Reference in new issue
Block a user