import type { AgentDecomposeResult, AgentDecomposeTarget } from '@ftb/shared';

export function filterDecomposeResultByTarget(
  result: AgentDecomposeResult,
  target: AgentDecomposeTarget = 'all',
): AgentDecomposeResult {
  if (target === 'dev_tasks') {
    return { ...result, testCaseDrafts: [] };
  }
  if (target === 'test_cases') {
    return { ...result, devTaskDrafts: [] };
  }
  return result;
}
