Automations workspace phase 1: sidebar groups, detail view, recompile-to-edit, named runs
Promotes Automations to a top-level sidebar group (below Bookmarks) with user-defined AgentGroup folders (migration 025, FK SET NULL on delete). The /automations page becomes master-detail: overview (composer + grouped list + named global runs) and per-task detail (original prompt, group assignment, run-now/pause/delete, per-task run timeline with true/false/ error pills). Editing recompiles through /api/agent/compile and confirms the proposal before a versioned PATCH applies spec+prompt — the model never writes. Tasks store prompt+groupId; projections add runCount/ errorCount; runs carry taskName. The engine is untouched: groups/prompt are metadata, the validated spec remains the only thing it executes. Chaining, refinements and dry-run stay phase 2. Verified: full DB integration suite under -race, db-converge + migration atomicity, web lint/SSR/build, and a rewritten browser regression covering the sidebar folder, detail prompt, per-task runs, recompile-to-edit and named global runs.
This commit is contained in:
@@ -145,6 +145,10 @@ func NewServer(cfg *config.Config, database *db.DB) *http.Server {
|
||||
mux.HandleFunc("DELETE /api/agent/tasks/{id}", authed(handlers.HandleAgentTasksDelete))
|
||||
mux.HandleFunc("POST /api/agent/tasks/{id}/run", authed(handlers.HandleAgentTasksRun))
|
||||
mux.HandleFunc("GET /api/agent/runs", authed(handlers.HandleAgentRunsList))
|
||||
mux.HandleFunc("GET /api/agent/groups", authed(handlers.HandleAgentGroupsList))
|
||||
mux.HandleFunc("POST /api/agent/groups", authed(handlers.HandleAgentGroupsCreate))
|
||||
mux.HandleFunc("PATCH /api/agent/groups/{id}", authed(handlers.HandleAgentGroupsUpdate))
|
||||
mux.HandleFunc("DELETE /api/agent/groups/{id}", authed(handlers.HandleAgentGroupsDelete))
|
||||
|
||||
// 4.7d Per-user AI configuration (BYO provider/model/key; the server
|
||||
// env key is the plan-gated fallback — see internal/ai).
|
||||
|
||||
Reference in New Issue
Block a user