feat(ai): 优化拆解重跑与结果展示

This commit is contained in:
Script Generator
2026-06-26 11:01:11 +08:00
parent 55e24442ab
commit 56e0fe562d
36 changed files with 1342 additions and 186 deletions

View File

@@ -1,4 +1,4 @@
import { IsString, IsArray, ValidateNested, IsOptional } from 'class-validator';
import { IsString, IsArray, ValidateNested, IsOptional, IsIn } from 'class-validator';
import { Type } from 'class-transformer';
export class DecomposeReqMemberDto {
@@ -34,6 +34,10 @@ export class DecomposeDto {
@IsString()
planId!: string;
@IsOptional()
@IsIn(['all', 'dev_tasks', 'test_cases'])
target?: 'all' | 'dev_tasks' | 'test_cases';
@IsArray()
@ValidateNested({ each: true })
@Type(() => DecomposeReqRequirementDto)