fix(webui): show per-run automation replies and simplify details

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-13 05:43:05 +08:00
1 parent e7da868574
commit 037438e7d1
28 files changed
+985 -183

No files matched your search

+13
View File
@@ -336,6 +336,19 @@ export async function fetchAutomations(
);
}
export async function fetchAutomationRunResult(
token: string,
id: string,
runAtMs: number,
kind: "cron" | "local_trigger",
signal?: AbortSignal,
): Promise<{ response: string | null }> {
const query = new URLSearchParams({ id, run_at_ms: String(runAtMs), kind });
return request<{ response: string | null }>(
`/api/webui/automations/result?${query}`, token, { signal }, API_READ_TIMEOUT_MS,
);
}
export async function runAutomationAction(
transport: WebUIMutationTransport,
action: "enable" | "disable" | "delete" | "run",