feat(plugins): add source-aware evidence and recording timelines

This commit is contained in:
chenmingxuan committed 2026-10-16 10:20:11 +08:00
1 parent 72ff342605
commit ef7af9988e
61 files changed
+3847 -108

No files matched your search

+1
View File
@@ -32,6 +32,7 @@ CAPABILITY_FIELDS = {
"adb_discovery_timeout_seconds",
"video_enabled",
"recording_enabled",
"recording",
"outputter_enabled",
"step_summarizer_enabled",
"screenshot_limit_enabled",
+9 -1
View File
@@ -15,6 +15,7 @@
"""MCP Tool: mobile_run_task."""
import logging
import json
import os
import subprocess
import sys
@@ -344,7 +345,10 @@ def mobile_run_task(
device_command_timeout_seconds (10), action_failure_attempts (3),
worker_cleanup_timeout_seconds (30),
model (API model name), reasoning_effort, request timeout/retries,
recording and video analysis. Unknown fields and credentials are rejected.
record_video and video analysis. recording is a partial archive-quality object:
codec (auto/h264/h265), computer_scope (screen/window), max_long_edge,
fps, h264_kbps, h265_kbps; it does not enable recording on its own.
Unknown fields and credentials are rejected.
"""
if runtime_overrides:
from apps.admin_console.services.task_import import TaskOptions
@@ -572,6 +576,10 @@ def mobile_run_task(
env["ARTEMIS_SESSION_ID"] = trace_id
env["ARTEMIS_TASK_INGRESS"] = "mcp"
env["ARTEMIS_TASK_WORKER"] = "1"
if (runtime_overrides or {}).get("recording") is not None:
env["ARTEMIS_TASK_RECORDING_CONFIG"] = json.dumps(runtime_overrides["recording"])
else:
env.pop("ARTEMIS_TASK_RECORDING_CONFIG", None)
for option, variable in {
"model": "OPENAI_MODEL",
"reasoning_effort": "OPENAI_REASONING_EFFORT",