feat: bootstrap supply intelligence baseline

This commit is contained in:
Your Name
2026-05-07 10:16:46 +08:00
commit afdbea6fb5
62 changed files with 9170 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package main
import (
"context"
"log"
"net/http"
"time"
"supply-intelligence/internal/app"
"supply-intelligence/internal/domain"
)
func main() {
application := app.New()
application.Repo.UpsertRoutingState(domain.AccountRoutingState{
AccountID: 1,
Platform: "openai",
AccountStatus: domain.AccountStatusActive,
RoutingEnabled: true,
RiskScore: 10,
ReasonCode: "ok",
LastProbeAt: time.Now().UTC(),
Version: 1,
})
application.StartBackground(context.Background())
defer application.StopBackground()
log.Println("supply-intelligence listening on :8080")
if err := http.ListenAndServe(":8080", application.Server.Routes()); err != nil {
log.Fatal(err)
}
}