Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/manifest/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func GetEndpoints(ctx context.Context) (*Manifest, error) {
// Use custom backend URL for HTTP API
manifest.SetHTTPBaseURL(CustomBackendURL)
} else {
// Extract base URL from default manifest URL (e.g., "https://dashboard.seedfa.st")
// Extract base URL from default manifest URL (e.g., "https://seedfa.st")
// This ensures HTTP API goes to the same host where manifest was fetched
baseURL := strings.TrimSuffix(defaultManifestURL, "/cli-endpoints.json")
manifest.SetHTTPBaseURL(baseURL)
Expand Down
6 changes: 2 additions & 4 deletions internal/manifest/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ func (m *Manifest) HTTPBaseURL() string {
}

host := u.Host
if strings.HasPrefix(host, "agent.") {
// Replace agent subdomain with dashboard (e.g., agent.seedfa.st -> dashboard.seedfa.st)
host = strings.Replace(host, "agent.", "dashboard.", 1)
}
// Strip agent subdomain (e.g., agent.seedfa.st -> seedfa.st)
host = strings.TrimPrefix(host, "agent.")

// Remove default ports (80 for http, 443 for https)
if (scheme == "http" && strings.HasSuffix(host, ":80")) ||
Expand Down
4 changes: 2 additions & 2 deletions internal/mcpserver/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (s *Server) toolDoctor(ctx context.Context) (CallToolResult, error) {
} else {
sb.WriteString("Auth: NOT CONFIGURED\n")
sb.WriteString(" Add SEEDFAST_API_KEY to your MCP config env section\n")
sb.WriteString(" Get your key from https://dashboard.seedfa.st/\n")
sb.WriteString(" Get your key from https://seedfa.st/dashboard\n")
}

sb.WriteString(fmt.Sprintf("Platform: %s/%s\n", runtime.GOOS, runtime.GOARCH))
Expand All @@ -110,7 +110,7 @@ func (s *Server) getAuthToken() (string, error) {
if token == "" {
return "", fmt.Errorf("SEEDFAST_API_KEY not configured. " +
"Add it to your MCP config env section. " +
"Get your key from https://dashboard.seedfa.st/")
"Get your key from https://seedfa.st/dashboard")
}
return strings.TrimSpace(token), nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/orchestration/completion_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (ch *CompletionHandler) NotifyCompletion(elapsed time.Duration, tableCount

// Display dashboard link with arrow and cyan color
arrowAndLabel := pterm.NewStyle(pterm.FgLightCyan).Sprint("→ View stats: ")
dashboardURL := pterm.NewStyle(pterm.FgCyan).Sprint("https://dashboard.seedfa.st")
dashboardURL := pterm.NewStyle(pterm.FgCyan).Sprint("https://seedfa.st/dashboard")
pterm.Println(arrowAndLabel + dashboardURL)
}

Expand Down
4 changes: 2 additions & 2 deletions internal/ui/tui/components/summary_box.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/charmbracelet/lipgloss"
)

const dashboardURL = "https://dashboard.seedfa.st"
const dashboardURL = "https://seedfa.st/dashboard"

// SummaryBoxComponent renders the completion or failure summary.
type SummaryBoxComponent struct {
Expand Down Expand Up @@ -56,7 +56,7 @@ func (s SummaryBoxComponent) View() string {
// viewSuccess renders:
//
// ✓ Seeded 10 tables (123,456 rows) in 2m 15s
// → View stats: https://dashboard.seedfa.st
// → View stats: https://seedfa.st/dashboard
func (s SummaryBoxComponent) viewSuccess() string {
var sb strings.Builder

Expand Down
2 changes: 1 addition & 1 deletion internal/ui/tui/components/summary_box_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestSuccessSummary(t *testing.T) {
if !strings.Contains(view, "2m 30s") {
t.Error("should contain '2m 30s'")
}
if !strings.Contains(view, "dashboard.seedfa.st") {
if !strings.Contains(view, "seedfa.st/dashboard") {
t.Error("should contain dashboard URL when totalRows > 0")
}
if !strings.Contains(view, "View stats") {
Expand Down
Loading