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:
1 parent
e2ce04ce4f
commit
2d644f901b
7 files changed
+117
-35
No files matched your search
@@ -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",
|
||||
|
||||
@@ -36,7 +36,7 @@ export interface Followup { mode?: string; status?: string; sender_task_id?: str
|
||||
export interface ChatHistoryMessage { id: string; role: "user" | "assistant" | "tool" | "status"; source?: string; kind?: string; label?: string; text: string; ts_ms?: number | null }
|
||||
export interface ChatHistory { task_id?: string; status?: string; messages: ChatHistoryMessage[]; continue_messages_stored?: number; legacy_continue_count?: number | null; trace_note?: string }
|
||||
export interface PeerMessage { task_id?: string; mode?: string; status?: string; body?: string }
|
||||
export interface Automation { id: string; name?: string; status?: string; due?: boolean; interval_seconds?: number; next_run_at?: number }
|
||||
export interface Automation { id: string; name?: string; prompt?: string; repo_url?: string; status?: string; due?: boolean; interval_seconds?: number; next_run_at?: number; last_run_at?: number; created_at?: number; cancelled_at?: number; run_once?: boolean }
|
||||
export interface Member { user_id: string; username?: string; role?: string }
|
||||
export interface SkillItem { name?: string; id?: string; description?: string; detail?: string }
|
||||
export interface McpServer { name?: string; id?: string; status?: string; detail?: string; details?: string; state?: string }
|
||||
|
||||
Reference in new issue
Block a user