fix: use TopologyKind alias to keep LoopsWizard under 1250 lines
ci / gates (push) Successful in 5s
ci / frontend (push) Failing after 1m6s
ci / rust (push) Successful in 3m33s
ci / e2e (push) Skipped
ci / publish (push) Skipped

This commit is contained in:
Omar Sobh
2026-07-18 16:26:02 -07:00
parent c3e8f3ee01
commit c9dc96c44b
@@ -26,6 +26,7 @@ import { RepoPicker, type PickedRepo } from "./RepoPicker";
import { import {
autoProvisionTeam, autoProvisionTeam,
type AutoProvisionResponse, type AutoProvisionResponse,
type TopologyKind,
} from "@/lib/api/research"; } from "@/lib/api/research";
import { AutoProvisionCard } from "./AutoProvisionCard"; import { AutoProvisionCard } from "./AutoProvisionCard";
// Do NOT import @/lib/api/team here — it transitively pulls bearer.ts // Do NOT import @/lib/api/team here — it transitively pulls bearer.ts
@@ -187,11 +188,7 @@ export function LoopsWizard({
// Loops don't map to a formal outcome_kind — "prod_plan" is the // Loops don't map to a formal outcome_kind — "prod_plan" is the
// most neutral choice for the LLM-derived role prompt. // most neutral choice for the LLM-derived role prompt.
outcome_kind: "prod_plan", outcome_kind: "prod_plan",
topology_kind: (kind as topology_kind: (kind as TopologyKind) || undefined,
| "hub_spoke"
| "pipeline"
| "hierarchical"
| "star_moe") || undefined,
model: "claude-sonnet-5", model: "claude-sonnet-5",
}); });
setAutoTeam(r); setAutoTeam(r);