summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-09 01:17:05 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-09 01:17:05 +0000
commit13846ea4ce4bacfadda6f86c5e48e5e76e13db07 (patch)
tree20838cbcbc343e8cd8b8f6bb0f8ad347c3fa52b3 /internal
parentf9d2056f4d10fe7dde71f5d17d8e8c473b3a611f (diff)
feat: delete templates feature and allow requeueing BUDGET_EXCEEDED tasks
Removed all template-related code from frontend (tabs, modals, logic) and backend (routes, files, DB table). Updated BUDGET_EXCEEDED tasks to be requeueable with a Restart button. Fixed ReferenceError in isUserEditing for Node.js tests.
Diffstat (limited to 'internal')
-rw-r--r--internal/api/server.go5
-rw-r--r--internal/storage/db.go12
2 files changed, 0 insertions, 17 deletions
diff --git a/internal/api/server.go b/internal/api/server.go
index 11c9c15..1d87b3f 100644
--- a/internal/api/server.go
+++ b/internal/api/server.go
@@ -103,11 +103,6 @@ func (s *Server) routes() {
s.mux.HandleFunc("GET /api/executions/{id}/log", s.handleGetExecutionLog)
s.mux.HandleFunc("GET /api/tasks/{id}/logs/stream", s.handleStreamTaskLogs)
s.mux.HandleFunc("GET /api/executions/{id}/logs/stream", s.handleStreamLogs)
- s.mux.HandleFunc("GET /api/templates", s.handleListTemplates)
- s.mux.HandleFunc("POST /api/templates", s.handleCreateTemplate)
- s.mux.HandleFunc("GET /api/templates/{id}", s.handleGetTemplate)
- s.mux.HandleFunc("PUT /api/templates/{id}", s.handleUpdateTemplate)
- s.mux.HandleFunc("DELETE /api/templates/{id}", s.handleDeleteTemplate)
s.mux.HandleFunc("POST /api/tasks/{id}/answer", s.handleAnswerQuestion)
s.mux.HandleFunc("POST /api/tasks/{id}/resume", s.handleResumeTimedOutTask)
s.mux.HandleFunc("POST /api/scripts/{name}", s.handleScript)
diff --git a/internal/storage/db.go b/internal/storage/db.go
index 0a4f7a5..fb754f5 100644
--- a/internal/storage/db.go
+++ b/internal/storage/db.go
@@ -68,18 +68,6 @@ func (s *DB) migrate() error {
CREATE INDEX IF NOT EXISTS idx_tasks_state ON tasks(state);
CREATE INDEX IF NOT EXISTS idx_executions_status ON executions(status);
CREATE INDEX IF NOT EXISTS idx_executions_task_id ON executions(task_id);
-
- CREATE TABLE IF NOT EXISTS templates (
- id TEXT PRIMARY KEY,
- name TEXT NOT NULL,
- description TEXT,
- config_json TEXT NOT NULL DEFAULT '{}',
- timeout TEXT,
- priority TEXT NOT NULL DEFAULT 'normal',
- tags_json TEXT NOT NULL DEFAULT '[]',
- created_at DATETIME NOT NULL,
- updated_at DATETIME NOT NULL
- );
`
if _, err := s.db.Exec(schema); err != nil {
return err