MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / buildDrafts

Function buildDrafts

frontend/dashboard/src/components/Routing.tsx:529–538  ·  view source on GitHub ↗
(config: RoutingConfigState)

Source from the content-addressed store, hash-verified

527}
528
529function buildDrafts(config: RoutingConfigState): Record<string, DraftState> {
530 const next: Record<string, DraftState> = {};
531 for (const mode of MODES) {
532 const rows = config.modes?.[mode]?.tiers ?? {};
533 for (const tier of TIERS) {
534 next[draftKey(mode, tier)] = createDraft(rows[tier]);
535 }
536 }
537 return next;
538}
539
540function parseCsv(value: string): string[] {
541 return value

Callers 2

RoutingFunction · 0.85
applyConfigFunction · 0.85

Calls 2

draftKeyFunction · 0.85
createDraftFunction · 0.85

Tested by

no test coverage detected