Add tm_server with SQLite, Svelte UI, and task-master TUI sync.

Introduces the web backend (auth, RBAC, project tokens, revisions),
YouTrack-or-taskmaster backend choice in the TUI, and a first-pass
embedded Svelte UI. The frontend is functional but needs a major rework.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-27 22:23:11 +01:00
co-authored by Cursor
parent 98d2253f44
commit 4adfcdb95a
67 changed files with 7188 additions and 129 deletions
+29
View File
@@ -0,0 +1,29 @@
package syncbackend
import (
"context"
"task/internal/youtrack"
)
// ListYouTrackProjects lists projects via a master/instance token.
func ListYouTrackProjects(ctx context.Context, baseURL, token string) ([]RemoteProject, error) {
client := &youtrack.Client{BaseURL: baseURL, Token: token}
projects, err := client.ListProjects(ctx)
if err != nil {
return nil, err
}
out := make([]RemoteProject, 0, len(projects))
for _, p := range projects {
name := p.Name
if name == "" {
name = p.ShortName
}
out = append(out, RemoteProject{
Key: p.ShortName,
Name: name,
ID: p.ID,
})
}
return out, nil
}