feat(ai): support approved agent commands

This commit is contained in:
2026-10-14 16:23:20 +09:00
parent 4bdae4b24a
commit 767a6b40c7
5 changed files with 162 additions and 5 deletions
+28
View File
@@ -28,6 +28,27 @@ class AgentWorkspaceModuleDto {
files: AgentWorkspaceFileDto[];
}
class AgentRuntimeLogDto {
@IsString()
@MinLength(1)
@MaxLength(120)
moduleName: string;
@IsString()
@MinLength(1)
@MaxLength(40)
state: string;
@IsString()
@MaxLength(20_000)
content: string;
@IsOptional()
@IsString()
@MaxLength(500)
message?: string;
}
export class CreateAgentPlanDto {
@IsUUID()
courseId: string;
@@ -48,4 +69,11 @@ export class CreateAgentPlanDto {
@ValidateNested({ each: true })
@Type(() => AgentWorkspaceModuleDto)
modules: AgentWorkspaceModuleDto[];
@IsOptional()
@IsArray()
@ArrayMaxSize(3)
@ValidateNested({ each: true })
@Type(() => AgentRuntimeLogDto)
runtimeLogs?: AgentRuntimeLogDto[];
}