package main import ( "os/exec" "strings" "testing" ) // The client goes onto employees' laptops: none of the server, agent, store // or setup code may come with it, and it must build where llmgw does not. func TestTheClientCarriesNoServerCode(t *testing.T) { out, err := exec.Command("go", "list", "-deps", ".").Output() if err != nil { t.Skipf("go list: %v", err) } for _, dep := range strings.Fields(string(out)) { for _, banned := range []string{"/internal/store", "/internal/router", "/internal/agent", "/internal/control", "/internal/cli", "/internal/guard", "github.com/jackc/pgx"} { if strings.Contains(dep, banned) { t.Errorf("llmgw-kb depends on %s", dep) } } } }