feat(console): automation panel edit and richer list

- AutomationPanel rows now show title, prompt content (160-char preview with expand/collapse), repo_url, last/next run, run_once badge and cancelled time.

- Active automations get an inline edit form (name/prompt/interval/repo) that PATCHes only changed fields via the existing automation_update endpoint; backend semantics unchanged (no last_run_at reset, cancelled stays terminal).

- Rebuilt cloud/console.html with tsc + vite (build green); automation python tests 18/18 OK.
This commit is contained in:
host committed 2026-10-30 15:31:21 +08:00
1 parent e2ce04ce4f
commit 2d644f901b
7 files changed
+117 -35

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ export const paths = {
projectMcpReload: (pid: string) => "/projects/" + enc(pid) + "/mcp-servers/reload",
projectMcpOauth: (pid: string, name: string) => "/projects/" + enc(pid) + "/mcp-servers/" + enc(name) + "/oauth-login",
projectAutomations: (pid: string) => "/projects/" + enc(pid) + "/automations",
projectAutomation: (pid: string, id: string) => "/projects/" + enc(pid) + "/automations/" + enc(id),
projectAutomationCancel: (pid: string, id: string) => "/projects/" + enc(pid) + "/automations/" + enc(id) + "/cancel",
projectTriage: (pid: string) => "/projects/" + enc(pid) + "/triage",
projectTodos: (pid: string) => "/projects/" + enc(pid) + "/todos",