feat: release 1.1.0 with responsive task control

This commit is contained in:
chenmingxuan committed 2026-09-24 03:31:17 +08:00
1 parent 057f0c3050
commit bfcd828fa8
37 files changed
+1601 -151

No files matched your search

+7 -1
View File
@@ -176,7 +176,9 @@ async def mobile_task_file(
@mcp.tool()
async def mobile_batch(
action: Literal["create", "list", "get", "lookup", "start", "pause", "resume", "retry_failed"],
action: Literal[
"create", "list", "get", "lookup", "start", "pause", "resume", "retry_failed", "delete"
],
batch_id: str | None = None,
request_id: str | None = None,
batch: dict[str, Any] | None = None,
@@ -196,6 +198,8 @@ async def mobile_batch(
use mobile_manage_task(stop) to stop that task. resume never repeats finished cases.
retry_failed creates a new draft only after an explicit rerun request; it is not
transport-idempotent, so after an uncertain response use list instead of retrying.
delete removes a non-active batch record after an explicit user request; it keeps
already executed task sessions and reports. Confirm the batch ID with get first.
Restarted batches remain paused. No automatic failed-case retries or action replay.
"""
if action == "create":
@@ -210,6 +214,8 @@ async def mobile_batch(
route = f"/api/automation/batches/{_id(batch_id)}"
if action == "get":
return await _request("GET", route)
if action == "delete":
return await _request("DELETE", route)
if action in {"start", "resume"}:
current = await _request("GET", route)
if current["status"] == "running":