@solidxai/core 0.1.22-beta.3 → 0.1.22-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/dist/constants/error-messages.d.ts +1 -1
- package/dist/constants/error-messages.d.ts.map +1 -1
- package/dist/constants/error-messages.js +1 -1
- package/dist/constants/error-messages.js.map +1 -1
- package/dist/controllers/admin-embed.controller.d.ts +5 -0
- package/dist/controllers/admin-embed.controller.d.ts.map +1 -0
- package/dist/controllers/admin-embed.controller.js +58 -0
- package/dist/controllers/admin-embed.controller.js.map +1 -0
- package/dist/controllers/agent-registry.controller.d.ts +2 -0
- package/dist/controllers/agent-registry.controller.d.ts.map +1 -1
- package/dist/controllers/agent-registry.controller.js +14 -0
- package/dist/controllers/agent-registry.controller.js.map +1 -1
- package/dist/controllers/agent-session.controller.d.ts +8 -1
- package/dist/controllers/agent-session.controller.d.ts.map +1 -1
- package/dist/controllers/agent-session.controller.js +88 -2
- package/dist/controllers/agent-session.controller.js.map +1 -1
- package/dist/controllers/authentication.controller.d.ts +12 -1
- package/dist/controllers/authentication.controller.d.ts.map +1 -1
- package/dist/controllers/authentication.controller.js +26 -2
- package/dist/controllers/authentication.controller.js.map +1 -1
- package/dist/controllers/test-data.controller.d.ts +12 -0
- package/dist/controllers/test-data.controller.d.ts.map +1 -0
- package/dist/controllers/test-data.controller.js +66 -0
- package/dist/controllers/test-data.controller.js.map +1 -0
- package/dist/controllers/test-data.controller.spec.d.ts +2 -0
- package/dist/controllers/test-data.controller.spec.d.ts.map +1 -0
- package/dist/controllers/test-data.controller.spec.js +78 -0
- package/dist/controllers/test-data.controller.spec.js.map +1 -0
- package/dist/dtos/create-agent-job.dto.d.ts +1 -0
- package/dist/dtos/create-agent-job.dto.d.ts.map +1 -1
- package/dist/dtos/create-agent-job.dto.js +8 -1
- package/dist/dtos/create-agent-job.dto.js.map +1 -1
- package/dist/dtos/create-agent-process.dto.d.ts +5 -0
- package/dist/dtos/create-agent-process.dto.d.ts.map +1 -1
- package/dist/dtos/create-agent-process.dto.js +37 -1
- package/dist/dtos/create-agent-process.dto.js.map +1 -1
- package/dist/dtos/create-agent-registry.dto.d.ts +5 -0
- package/dist/dtos/create-agent-registry.dto.d.ts.map +1 -1
- package/dist/dtos/create-agent-registry.dto.js +39 -1
- package/dist/dtos/create-agent-registry.dto.js.map +1 -1
- package/dist/dtos/create-agent-session.dto.js +1 -1
- package/dist/dtos/create-agent-session.dto.js.map +1 -1
- package/dist/dtos/test-run-request.dto.d.ts +1 -0
- package/dist/dtos/test-run-request.dto.d.ts.map +1 -1
- package/dist/dtos/test-run-request.dto.js +7 -1
- package/dist/dtos/test-run-request.dto.js.map +1 -1
- package/dist/dtos/update-agent-deployment.dto.d.ts +8 -0
- package/dist/dtos/update-agent-deployment.dto.d.ts.map +1 -0
- package/dist/dtos/update-agent-deployment.dto.js +60 -0
- package/dist/dtos/update-agent-deployment.dto.js.map +1 -0
- package/dist/dtos/update-agent-job.dto.d.ts +1 -0
- package/dist/dtos/update-agent-job.dto.d.ts.map +1 -1
- package/dist/dtos/update-agent-job.dto.js +8 -1
- package/dist/dtos/update-agent-job.dto.js.map +1 -1
- package/dist/dtos/update-agent-process.dto.d.ts +5 -0
- package/dist/dtos/update-agent-process.dto.d.ts.map +1 -1
- package/dist/dtos/update-agent-process.dto.js +37 -1
- package/dist/dtos/update-agent-process.dto.js.map +1 -1
- package/dist/dtos/update-agent-registry.dto.d.ts +5 -0
- package/dist/dtos/update-agent-registry.dto.d.ts.map +1 -1
- package/dist/dtos/update-agent-registry.dto.js +39 -1
- package/dist/dtos/update-agent-registry.dto.js.map +1 -1
- package/dist/dtos/update-agent-session.dto.js +1 -1
- package/dist/dtos/update-agent-session.dto.js.map +1 -1
- package/dist/entities/agent-job.entity.d.ts +1 -0
- package/dist/entities/agent-job.entity.d.ts.map +1 -1
- package/dist/entities/agent-job.entity.js +7 -2
- package/dist/entities/agent-job.entity.js.map +1 -1
- package/dist/entities/agent-process.entity.d.ts +8 -0
- package/dist/entities/agent-process.entity.d.ts.map +1 -1
- package/dist/entities/agent-process.entity.js +38 -1
- package/dist/entities/agent-process.entity.js.map +1 -1
- package/dist/entities/agent-registry.entity.d.ts +5 -0
- package/dist/entities/agent-registry.entity.d.ts.map +1 -1
- package/dist/entities/agent-registry.entity.js +22 -1
- package/dist/entities/agent-registry.entity.js.map +1 -1
- package/dist/entities/agent-session.entity.d.ts.map +1 -1
- package/dist/entities/agent-session.entity.js +3 -1
- package/dist/entities/agent-session.entity.js.map +1 -1
- package/dist/guards/access-token.guard.d.ts +3 -1
- package/dist/guards/access-token.guard.d.ts.map +1 -1
- package/dist/guards/access-token.guard.js +11 -2
- package/dist/guards/access-token.guard.js.map +1 -1
- package/dist/helpers/agent-config-version-name.d.ts +2 -0
- package/dist/helpers/agent-config-version-name.d.ts.map +1 -0
- package/dist/helpers/agent-config-version-name.js +17 -0
- package/dist/helpers/agent-config-version-name.js.map +1 -0
- package/dist/helpers/agent-config-version-name.spec.d.ts +2 -0
- package/dist/helpers/agent-config-version-name.spec.d.ts.map +1 -0
- package/dist/helpers/agent-config-version-name.spec.js +31 -0
- package/dist/helpers/agent-config-version-name.spec.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/active-user-data.interface.d.ts +1 -0
- package/dist/interfaces/active-user-data.interface.d.ts.map +1 -1
- package/dist/interfaces/active-user-data.interface.js.map +1 -1
- package/dist/jobs/database/test-run-queue-subscriber-database.service.d.ts.map +1 -1
- package/dist/jobs/database/test-run-queue-subscriber-database.service.js +8 -4
- package/dist/jobs/database/test-run-queue-subscriber-database.service.js.map +1 -1
- package/dist/resources/admin-embed/solid-admin-embed.js +133 -0
- package/dist/resources/agent-embed/solid-agent-embed.js +243 -4
- package/dist/seeders/module-test-data.service.d.ts +19 -0
- package/dist/seeders/module-test-data.service.d.ts.map +1 -1
- package/dist/seeders/module-test-data.service.js +95 -15
- package/dist/seeders/module-test-data.service.js.map +1 -1
- package/dist/seeders/module-test-data.service.spec.d.ts +2 -0
- package/dist/seeders/module-test-data.service.spec.d.ts.map +1 -0
- package/dist/seeders/module-test-data.service.spec.js +158 -0
- package/dist/seeders/module-test-data.service.spec.js.map +1 -0
- package/dist/seeders/seed-data/solid-core-metadata.json +375 -11
- package/dist/services/agent-hub-process-manager.service.d.ts +16 -0
- package/dist/services/agent-hub-process-manager.service.d.ts.map +1 -1
- package/dist/services/agent-hub-process-manager.service.js +27 -3
- package/dist/services/agent-hub-process-manager.service.js.map +1 -1
- package/dist/services/agent-registry.service.d.ts +2 -0
- package/dist/services/agent-registry.service.d.ts.map +1 -1
- package/dist/services/agent-registry.service.js +36 -1
- package/dist/services/agent-registry.service.js.map +1 -1
- package/dist/services/api-key-portal-session.spec.d.ts +2 -0
- package/dist/services/api-key-portal-session.spec.d.ts.map +1 -0
- package/dist/services/api-key-portal-session.spec.js +71 -0
- package/dist/services/api-key-portal-session.spec.js.map +1 -0
- package/dist/services/api-key.service.d.ts +12 -0
- package/dist/services/api-key.service.d.ts.map +1 -1
- package/dist/services/api-key.service.js +58 -0
- package/dist/services/api-key.service.js.map +1 -1
- package/dist/services/authentication.service.d.ts +1 -0
- package/dist/services/authentication.service.d.ts.map +1 -1
- package/dist/services/authentication.service.js +14 -1
- package/dist/services/authentication.service.js.map +1 -1
- package/dist/services/crud.service.d.ts +1 -0
- package/dist/services/crud.service.d.ts.map +1 -1
- package/dist/services/crud.service.js +26 -2
- package/dist/services/crud.service.js.map +1 -1
- package/dist/services/settings/default-settings-provider.service.d.ts +16 -6
- package/dist/services/settings/default-settings-provider.service.d.ts.map +1 -1
- package/dist/services/settings/default-settings-provider.service.js +9 -3
- package/dist/services/settings/default-settings-provider.service.js.map +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +5 -0
- package/dist/solid-core.module.js.map +1 -1
- package/dist/testing/adapters/ui/browser-provisioner.d.ts +11 -0
- package/dist/testing/adapters/ui/browser-provisioner.d.ts.map +1 -1
- package/dist/testing/adapters/ui/browser-provisioner.js +51 -1
- package/dist/testing/adapters/ui/browser-provisioner.js.map +1 -1
- package/dist/testing/adapters/ui/browser-provisioner.spec.d.ts +2 -0
- package/dist/testing/adapters/ui/browser-provisioner.spec.d.ts.map +1 -0
- package/dist/testing/adapters/ui/browser-provisioner.spec.js +137 -0
- package/dist/testing/adapters/ui/browser-provisioner.spec.js.map +1 -0
- package/dist/testing/adapters/ui/playwright-adapter.d.ts +7 -0
- package/dist/testing/adapters/ui/playwright-adapter.d.ts.map +1 -1
- package/dist/testing/adapters/ui/playwright-adapter.js +40 -9
- package/dist/testing/adapters/ui/playwright-adapter.js.map +1 -1
- package/dist/testing/adapters/ui/run-video.d.ts +40 -0
- package/dist/testing/adapters/ui/run-video.d.ts.map +1 -0
- package/dist/testing/adapters/ui/run-video.js +113 -0
- package/dist/testing/adapters/ui/run-video.js.map +1 -0
- package/dist/testing/adapters/ui/run-video.spec.d.ts +2 -0
- package/dist/testing/adapters/ui/run-video.spec.d.ts.map +1 -0
- package/dist/testing/adapters/ui/run-video.spec.js +62 -0
- package/dist/testing/adapters/ui/run-video.spec.js.map +1 -0
- package/dist/testing/contracts/runtime-context.types.d.ts +7 -0
- package/dist/testing/contracts/runtime-context.types.d.ts.map +1 -1
- package/dist/testing/contracts/runtime-context.types.js.map +1 -1
- package/dist/testing/contracts/testing-metadata.types.d.ts +1 -0
- package/dist/testing/contracts/testing-metadata.types.d.ts.map +1 -1
- package/dist/testing/contracts/testing-metadata.types.js.map +1 -1
- package/dist/testing/core/interpolation.d.ts.map +1 -1
- package/dist/testing/core/interpolation.js +14 -2
- package/dist/testing/core/interpolation.js.map +1 -1
- package/dist/testing/core/step-data.d.ts +5 -0
- package/dist/testing/core/step-data.d.ts.map +1 -0
- package/dist/testing/core/step-data.js +14 -0
- package/dist/testing/core/step-data.js.map +1 -0
- package/dist/testing/core/step-data.spec.d.ts +2 -0
- package/dist/testing/core/step-data.spec.d.ts.map +1 -0
- package/dist/testing/core/step-data.spec.js +48 -0
- package/dist/testing/core/step-data.spec.js.map +1 -0
- package/dist/testing/core/testing-engine.d.ts +1 -1
- package/dist/testing/core/testing-engine.d.ts.map +1 -1
- package/dist/testing/core/testing-engine.js +27 -4
- package/dist/testing/core/testing-engine.js.map +1 -1
- package/dist/testing/reporter/lifecycle-events.types.d.ts +3 -2
- package/dist/testing/reporter/lifecycle-events.types.d.ts.map +1 -1
- package/dist/testing/reporter/lifecycle-events.types.js.map +1 -1
- package/dist/testing/reporter/lifecycle-webhook-reporter.d.ts +2 -1
- package/dist/testing/reporter/lifecycle-webhook-reporter.d.ts.map +1 -1
- package/dist/testing/reporter/lifecycle-webhook-reporter.js +3 -0
- package/dist/testing/reporter/lifecycle-webhook-reporter.js.map +1 -1
- package/dist/testing/reporter/reporter.types.d.ts +2 -1
- package/dist/testing/reporter/reporter.types.d.ts.map +1 -1
- package/dist/testing/reporter/reporter.types.js.map +1 -1
- package/dist/testing/runner/read-scenarios-file.d.ts +1 -0
- package/dist/testing/runner/read-scenarios-file.d.ts.map +1 -1
- package/dist/testing/runner/read-scenarios-file.js +20 -0
- package/dist/testing/runner/read-scenarios-file.js.map +1 -1
- package/dist/testing/runner/run-from-metadata.d.ts.map +1 -1
- package/dist/testing/runner/run-from-metadata.js +48 -10
- package/dist/testing/runner/run-from-metadata.js.map +1 -1
- package/dist/testing/runner/run-from-metadata.spec.js +41 -1
- package/dist/testing/runner/run-from-metadata.spec.js.map +1 -1
- package/dist/testing/runner/scenario-graph.d.ts +9 -0
- package/dist/testing/runner/scenario-graph.d.ts.map +1 -1
- package/dist/testing/runner/scenario-graph.js +47 -13
- package/dist/testing/runner/scenario-graph.js.map +1 -1
- package/dist/testing/steps/ui/navigation.step.d.ts.map +1 -1
- package/dist/testing/steps/ui/navigation.step.js +4 -1
- package/dist/testing/steps/ui/navigation.step.js.map +1 -1
- package/dist/testing/steps/util/random.step.d.ts.map +1 -1
- package/dist/testing/steps/util/random.step.js +4 -1
- package/dist/testing/steps/util/random.step.js.map +1 -1
- package/package.json +1 -1
- package/resources/admin-embed/solid-admin-embed.js +133 -0
- package/resources/agent-embed/solid-agent-embed.js +243 -4
- package/src/constants/error-messages.ts +2 -1
- package/src/controllers/admin-embed.controller.ts +34 -0
- package/src/controllers/agent-registry.controller.ts +8 -1
- package/src/controllers/agent-session.controller.ts +53 -2
- package/src/controllers/authentication.controller.ts +20 -1
- package/src/controllers/test-data.controller.spec.ts +94 -0
- package/src/controllers/test-data.controller.ts +58 -0
- package/src/dtos/create-agent-job.dto.ts +6 -0
- package/src/dtos/create-agent-process.dto.ts +32 -1
- package/src/dtos/create-agent-registry.dto.ts +34 -1
- package/src/dtos/create-agent-session.dto.ts +1 -1
- package/src/dtos/test-run-request.dto.ts +6 -0
- package/src/dtos/update-agent-deployment.dto.ts +37 -0
- package/src/dtos/update-agent-job.dto.ts +6 -0
- package/src/dtos/update-agent-process.dto.ts +32 -1
- package/src/dtos/update-agent-registry.dto.ts +34 -1
- package/src/dtos/update-agent-session.dto.ts +1 -1
- package/src/entities/agent-job.entity.ts +5 -1
- package/src/entities/agent-process.entity.ts +28 -0
- package/src/entities/agent-registry.entity.ts +15 -0
- package/src/entities/agent-session.entity.ts +3 -0
- package/src/guards/access-token.guard.ts +11 -1
- package/src/helpers/agent-config-version-name.spec.ts +35 -0
- package/src/helpers/agent-config-version-name.ts +16 -0
- package/src/index.ts +5 -0
- package/src/interfaces/active-user-data.interface.ts +3 -0
- package/src/jobs/database/test-run-queue-subscriber-database.service.ts +10 -6
- package/src/seeders/module-test-data.service.spec.ts +184 -0
- package/src/seeders/module-test-data.service.ts +136 -20
- package/src/seeders/seed-data/solid-core-metadata.json +376 -12
- package/src/services/agent-hub-process-manager.service.ts +35 -4
- package/src/services/agent-registry.service.ts +38 -2
- package/src/services/api-key-portal-session.spec.ts +75 -0
- package/src/services/api-key.service.ts +61 -0
- package/src/services/authentication.service.ts +16 -2
- package/src/services/crud.service.ts +30 -2
- package/src/services/settings/default-settings-provider.service.ts +13 -3
- package/src/solid-core.module.ts +5 -0
- package/src/testing/adapters/ui/browser-provisioner.spec.ts +131 -0
- package/src/testing/adapters/ui/browser-provisioner.ts +85 -2
- package/src/testing/adapters/ui/playwright-adapter.ts +53 -11
- package/src/testing/adapters/ui/run-video.spec.ts +72 -0
- package/src/testing/adapters/ui/run-video.ts +122 -0
- package/src/testing/contracts/runtime-context.types.ts +16 -0
- package/src/testing/contracts/testing-metadata.types.ts +5 -0
- package/src/testing/core/interpolation.ts +11 -2
- package/src/testing/core/step-data.spec.ts +59 -0
- package/src/testing/core/step-data.ts +14 -0
- package/src/testing/core/testing-engine.ts +33 -5
- package/src/testing/reporter/lifecycle-events.types.ts +5 -2
- package/src/testing/reporter/lifecycle-webhook-reporter.ts +4 -1
- package/src/testing/reporter/reporter.types.ts +3 -1
- package/src/testing/runner/read-scenarios-file.ts +24 -0
- package/src/testing/runner/run-from-metadata.spec.ts +48 -1
- package/src/testing/runner/run-from-metadata.ts +66 -21
- package/src/testing/runner/scenario-graph.ts +55 -12
- package/src/testing/steps/ui/navigation.step.ts +4 -1
- package/src/testing/steps/util/random.step.ts +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-agent-registry.dto.js","sourceRoot":"","sources":["../../src/dtos/create-agent-registry.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,qDAA2G;AAC3G,yDAAyC;AACzC,mEAA6D;AAC7D,qEAA+D;AAC/D,mEAA6D;AAC7D,uEAAiE;AACjE,yEAAmE;AACnE,yEAAmE;AACnE,iEAA2D;AAC3D,yEAAkE;AAElE,MAAa,sBAAsB;IAAnC;QA6BI,mBAAc,GAAW,IAAI,CAAC;QAe9B,WAAM,GAAW,OAAO,CAAC;QAezB,cAAS,GAAW,CAAC,CAAC;KA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{ IsString } from 'class-validator';\nimport { IsNotEmpty, IsJSON, IsInt, IsNumber, ValidateNested, IsArray, IsOptional } from 'class-validator';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentToolDto } from './update-agent-tool.dto';\nimport { UpdateAgentSkillDto } from './update-agent-skill.dto';\nimport { UpdateAgentRoleDto } from './update-agent-role.dto';\nimport { UpdateAgentSecretDto } from './update-agent-secret.dto';\nimport { UpdateAgentProcessDto } from './update-agent-process.dto';\nimport { UpdateAgentSessionDto } from './update-agent-session.dto';\nimport { UpdateAgentJobDto } from './update-agent-job.dto';\nimport { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';\n\nexport class CreateAgentRegistryDto {\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n name: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n title: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n description?: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n iconName?: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n systemPrompt: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n requiredInputs: string = \"[]\";\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n reasoningModelKey: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n fastModelKey: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n status: string = \"draft\";\n\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n stepLimit: number;\n\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n turnStepLimit: number;\n\n @IsNotEmpty()\n @IsNumber()\n @ApiProperty()\n costLimit: number = 3;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n configVersion?: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n moduleId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n moduleUserKey: string;\n\n @IsOptional()\n @ApiProperty({ required: false })\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentHubTagDto)\n tags: UpdateAgentHubTagDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n tagsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n tagsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentToolDto)\n agentTools: UpdateAgentToolDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentToolsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentToolsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSkillDto)\n agentSkills: UpdateAgentSkillDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSkillsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSkillsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentRoleDto)\n agentRoles: UpdateAgentRoleDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentRolesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentRolesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSecretDto)\n agentSecrets: UpdateAgentSecretDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSecretsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSecretsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentProcessDto)\n agentProcesses: UpdateAgentProcessDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentProcessesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentProcessesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSessionDto)\n agentSessions: UpdateAgentSessionDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSessionsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSessionsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentJobDto)\n agentJobs: UpdateAgentJobDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentJobsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentJobsCommand: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"create-agent-registry.dto.js","sourceRoot":"","sources":["../../src/dtos/create-agent-registry.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,qDAA4H;AAC5H,yDAAyC;AACzC,mEAA6D;AAC7D,qEAA+D;AAC/D,mEAA6D;AAC7D,uEAAiE;AACjE,yEAAmE;AACnE,yEAAmE;AACnE,iEAA2D;AAC3D,yEAAkE;AAElE,MAAa,sBAAsB;IAAnC;QA6BI,mBAAc,GAAW,IAAI,CAAC;QAe9B,WAAM,GAAW,OAAO,CAAC;QAezB,cAAS,GAAW,CAAC,CAAC;KA2LzB;;;;CAAA;AAtPD,wDAsPC;AAlPG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;qDACA;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DACZ;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE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AAE;IACT,IAAA,qBAAW,GAAE;;iEACc;AAK5B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;qEACgB;AAO9B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gDAAqB,CAAC;;6DACK;AAKvC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;gEACa;AAK3B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;oEACe;AAO7B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wCAAiB,CAAC;;yDACC;AAK/B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;4DACS;AAKvB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;gEACW","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { IsString } from 'class-validator';\nimport { IsNotEmpty, IsJSON, IsInt, IsNumber, ValidateNested, IsArray, IsOptional, Min, ValidateIf } from 'class-validator';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentToolDto } from './update-agent-tool.dto';\nimport { UpdateAgentSkillDto } from './update-agent-skill.dto';\nimport { UpdateAgentRoleDto } from './update-agent-role.dto';\nimport { UpdateAgentSecretDto } from './update-agent-secret.dto';\nimport { UpdateAgentProcessDto } from './update-agent-process.dto';\nimport { UpdateAgentSessionDto } from './update-agent-session.dto';\nimport { UpdateAgentJobDto } from './update-agent-job.dto';\nimport { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';\n\nexport class CreateAgentRegistryDto {\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n name: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n title: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n description?: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n iconName?: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n systemPrompt: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n requiredInputs: string = \"[]\";\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n reasoningModelKey: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n fastModelKey: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n status: string = \"draft\";\n\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n stepLimit: number;\n\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n turnStepLimit: number;\n\n @IsNotEmpty()\n @IsNumber()\n @ApiProperty()\n costLimit: number = 3;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n configVersion?: number;\n\n @IsOptional()\n @IsString()\n @IsNotEmpty()\n @ApiProperty({ required: false, nullable: true, type: String })\n runner?: string | null;\n\n @ValidateIf((_object, value) => value !== undefined)\n @IsInt()\n @Min(0)\n @ApiProperty({ required: false, minimum: 0 })\n minProcesses?: number;\n\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n @ApiProperty({ required: false, nullable: true, type: Number, minimum: 1 })\n maxProcesses?: number | null;\n\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n @ApiProperty({ required: false, nullable: true, type: Number, minimum: 1 })\n processCpu?: number | null;\n\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n @ApiProperty({ required: false, nullable: true, type: Number, minimum: 1 })\n processMemory?: number | null;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n moduleId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n moduleUserKey: string;\n\n @IsOptional()\n @ApiProperty({ required: false })\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentHubTagDto)\n tags: UpdateAgentHubTagDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n tagsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n tagsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentToolDto)\n agentTools: UpdateAgentToolDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentToolsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentToolsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSkillDto)\n agentSkills: UpdateAgentSkillDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSkillsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSkillsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentRoleDto)\n agentRoles: UpdateAgentRoleDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentRolesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentRolesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSecretDto)\n agentSecrets: UpdateAgentSecretDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSecretsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSecretsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentProcessDto)\n agentProcesses: UpdateAgentProcessDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentProcessesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentProcessesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSessionDto)\n agentSessions: UpdateAgentSessionDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSessionsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSessionsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentJobDto)\n agentJobs: UpdateAgentJobDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentJobsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentJobsCommand: string;\n}\n"]}
|
|
@@ -61,7 +61,7 @@ __decorate([
|
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, class_validator_3.IsNotEmpty)(),
|
|
63
63
|
(0, class_validator_3.IsString)(),
|
|
64
|
-
(0, swagger_1.ApiProperty)(),
|
|
64
|
+
(0, swagger_1.ApiProperty)({ description: "Original session entry point. Use api or webhook for the background jobs inbox." }),
|
|
65
65
|
__metadata("design:type", String)
|
|
66
66
|
], CreateAgentSessionDto.prototype, "trigger", void 0);
|
|
67
67
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-agent-session.dto.js","sourceRoot":"","sources":["../../src/dtos/create-agent-session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAwC;AACxC,qDAA6C;AAC7C,qDAAgH;AAChH,yDAAyC;AACzC,iEAA2D;AAC3D,qEAA+D;AAC/D,+FAAwF;AACxF,qFAA8E;AAE9E,MAAa,qBAAqB;IAAlC;QA6CI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,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4CAAmB,CAAC;;0DACG;AAKnC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;6DACW;AAKzB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;iEACa;AAO3B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qEAA+B,CAAC;;sEACe;AAK3D;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;yEACuB;AAKrC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;6EACyB;AAOvC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2DAA0B,CAAC;;iEACU;AAKjD;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;oEACkB;AAKhC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;wEACoB","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { IsInt } from 'class-validator';\nimport { IsOptional } from 'class-validator';\nimport { IsString, IsNotEmpty, IsJSON, IsNumber, IsDate, ValidateNested, IsArray, IsIn } from 'class-validator';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentJobDto } from './update-agent-job.dto';\nimport { UpdateAgentEventDto } from './update-agent-event.dto';\nimport { UpdateAgentSessionCheckpointDto } from './update-agent-session-checkpoint.dto';\nimport { UpdateAgentHumanRequestDto } from './update-agent-human-request.dto';\n\nexport class CreateAgentSessionDto {\n @IsOptional()\n @IsInt()\n @ApiProperty()\n agentId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentUserKey: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n processId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n processUserKey: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty({ description: \"Original session entry point. Use api or webhook for the background jobs inbox.\" })\n trigger: string;\n\n @IsOptional()\n @IsString()\n @IsIn([\"solidx\", \"agentHub\"])\n @ApiProperty({ enum: [\"solidx\", \"agentHub\"], required: false })\n runtime: \"solidx\" | \"agentHub\";\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty({ description: \"queued: Background session waiting for its first job to be claimed; active: Interactive session open, waiting for the user's next message; running: A turn is executing; awaiting_input: Parked on a request_human_input question; awaiting_approval: Parked on a tool approval; completed, failed, cancelled, expired: Terminal.\" })\n status: string = \"queued\";\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n inputs: string = \"{}\";\n\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n configVersion: number;\n\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n turnCount: number = 0;\n\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n totalSteps: number = 0;\n\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n totalInputTokens: number = 0;\n\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n totalOutputTokens: number = 0;\n\n @IsNotEmpty()\n @IsNumber()\n @ApiProperty()\n totalCost: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n error: string;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n endedAt: Date;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n reasoningModelKey: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n fastModelKey: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentJobDto)\n agentJobs: UpdateAgentJobDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentJobsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentJobsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentEventDto)\n agentEvents: UpdateAgentEventDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentEventsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentEventsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSessionCheckpointDto)\n agentSessionCheckpoints: UpdateAgentSessionCheckpointDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSessionCheckpointsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSessionCheckpointsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentHumanRequestDto)\n agentHumanRequests: UpdateAgentHumanRequestDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentHumanRequestsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentHumanRequestsCommand: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-run-request.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/test-run-request.dto.ts"],"names":[],"mappings":"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15
15
|
class TestRunRequestDto {
|
|
16
16
|
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
-
return { scenarios: { required: false, type: () => [Object] }, scenariosPath: { required: false, type: () => String }, data: { required: false, type: () => [Object] }, roles: { required: false, type: () => [Object] }, users: { required: false, type: () => [Object] }, baseUrl: { required: false, type: () => String }, uiBaseUrl: { required: false, type: () => String }, type: { required: false, type: () => Object }, env: { required: false, type: () => String }, headless: { required: false, type: () => Boolean }, recordVideo: { required: false, type: () => Boolean }, healing: { required: false, type: () => Object, enum: ['off', 'report', 'auto'] }, viewport: { required: false, type: () => ({ width: { required: true, type: () => Number }, height: { required: true, type: () => Number }, isMobile: { required: false, type: () => Boolean }, hasTouch: { required: false, type: () => Boolean }, deviceScaleFactor: { required: false, type: () => Number }, userAgent: { required: false, type: () => String } }) }, failFast: { required: false, type: () => Boolean }, includeTags: { required: false, type: () => [String] }, scenarioIds: { required: false, type: () => [String] }, skipScenarioIds: { required: false, type: () => [String] }, webhookUrl: { required: true, type: () => String }, externalRunId: { required: false, type: () => String }, variables: { required: false, type: () => Object }, capture: { required: false, type: () => Object }, mobile: { required: false, type: () => Object }, printApiLogs: { required: false, type: () => Boolean }, broker: { required: false, type: () => String } };
|
|
17
|
+
return { scenarios: { required: false, type: () => [Object] }, scenariosPath: { required: false, type: () => String }, scenarioPaths: { required: false, type: () => [String] }, data: { required: false, type: () => [Object] }, roles: { required: false, type: () => [Object] }, users: { required: false, type: () => [Object] }, baseUrl: { required: false, type: () => String }, uiBaseUrl: { required: false, type: () => String }, type: { required: false, type: () => Object }, env: { required: false, type: () => String }, headless: { required: false, type: () => Boolean }, recordVideo: { required: false, type: () => Boolean }, healing: { required: false, type: () => Object, enum: ['off', 'report', 'auto'] }, viewport: { required: false, type: () => ({ width: { required: true, type: () => Number }, height: { required: true, type: () => Number }, isMobile: { required: false, type: () => Boolean }, hasTouch: { required: false, type: () => Boolean }, deviceScaleFactor: { required: false, type: () => Number }, userAgent: { required: false, type: () => String } }) }, failFast: { required: false, type: () => Boolean }, includeTags: { required: false, type: () => [String] }, scenarioIds: { required: false, type: () => [String] }, skipScenarioIds: { required: false, type: () => [String] }, webhookUrl: { required: true, type: () => String }, externalRunId: { required: false, type: () => String }, variables: { required: false, type: () => Object }, capture: { required: false, type: () => Object }, mobile: { required: false, type: () => Object }, printApiLogs: { required: false, type: () => Boolean }, broker: { required: false, type: () => String } };
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
exports.TestRunRequestDto = TestRunRequestDto;
|
|
@@ -28,6 +28,12 @@ __decorate([
|
|
|
28
28
|
(0, class_validator_1.IsString)(),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], TestRunRequestDto.prototype, "scenariosPath", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsArray)(),
|
|
34
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
35
|
+
__metadata("design:type", Array)
|
|
36
|
+
], TestRunRequestDto.prototype, "scenarioPaths", void 0);
|
|
31
37
|
__decorate([
|
|
32
38
|
(0, class_validator_1.IsOptional)(),
|
|
33
39
|
(0, class_validator_1.IsArray)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-run-request.dto.js","sourceRoot":"","sources":["../../src/dtos/test-run-request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAOyB;AA+BzB,MAAa,iBAAiB;;
|
|
1
|
+
{"version":3,"file":"test-run-request.dto.js","sourceRoot":"","sources":["../../src/dtos/test-run-request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAOyB;AA+BzB,MAAa,iBAAiB;;krBAuDtB,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC;;CA2DhC;AAlHD,8CAkHC;AA/GC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;oDACiB;AAI3B;IAFC,IAAA,4BAAU,GA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DACS;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACY;AASvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACwB;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACmB;AAK9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACoB;AAI/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;uDACW;AAKvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACK","sourcesContent":["import {\n IsArray,\n IsBoolean,\n IsIn,\n IsObject,\n IsOptional,\n IsString,\n} from 'class-validator';\n\nimport type { MobileRunOptionsInput } from '../testing/adapters/mobile/mobile.types';\nimport type {\n HealingPolicy,\n ScenarioSpec,\n ScenarioType,\n TestingDataRecord,\n TestingRoleSpec,\n TestingUserSpec,\n} from '../testing/contracts/testing-metadata.types';\n\n/**\n * Per-scenario capture toggles. Structurally compatible with the typed\n * `CaptureOptions` introduced in Phase 2 (A3, in adapters/ui/ui.types.ts).\n */\nexport interface CaptureOptionsInput {\n console?: boolean;\n network?: boolean;\n screenshotOnFailure?: boolean;\n screenshotAtEnd?: boolean;\n video?: boolean;\n har?: boolean;\n}\n\n/**\n * Body of `POST /test-runs`. Carries the FULL test definition inline (scenarios +\n * optional data/roles/users — the `testing` block minus `specs`), so the runner is\n * location-agnostic and never reads a fixed module/path. `specs` (custom step code)\n * cannot travel inline and must be deployed on the worker.\n */\nexport class TestRunRequestDto {\n @IsOptional()\n @IsArray()\n scenarios?: ScenarioSpec[];\n\n @IsOptional()\n @IsString()\n scenariosPath?: string;\n\n /** One file per scenario, in run order (each holds one scenario's JSON). Takes precedence over `scenariosPath`. */\n @IsOptional()\n @IsArray()\n @IsString({ each: true })\n scenarioPaths?: string[];\n\n @IsOptional()\n @IsArray()\n data?: TestingDataRecord[];\n\n @IsOptional()\n @IsArray()\n roles?: TestingRoleSpec[];\n\n @IsOptional()\n @IsArray()\n users?: TestingUserSpec[];\n\n /** API base URL for relative request URLs. */\n @IsOptional()\n @IsString()\n baseUrl?: string;\n\n /** UI base URL for relative navigation (Playwright). */\n @IsOptional()\n @IsString()\n uiBaseUrl?: string;\n\n @IsOptional()\n @IsString()\n type?: ScenarioType;\n\n @IsOptional()\n @IsString()\n env?: string;\n\n @IsOptional()\n @IsBoolean()\n headless?: boolean;\n\n @IsOptional()\n @IsBoolean()\n recordVideo?: boolean;\n\n /** Selector healing for UI steps: off | report (default) | auto. */\n @IsOptional()\n @IsIn(['off', 'report', 'auto'])\n healing?: HealingPolicy;\n \n /** Browser window size (and phone emulation) for UI scenarios; omit for the default 1280x720 desktop window. Phone/tablet emulation sets isMobile, hasTouch, deviceScaleFactor and userAgent. */\n @IsOptional()\n @IsObject()\n viewport?: { width: number; height: number; isMobile?: boolean; hasTouch?: boolean; deviceScaleFactor?: number; userAgent?: string };\n\n @IsOptional()\n @IsBoolean()\n failFast?: boolean;\n\n @IsOptional()\n @IsArray()\n includeTags?: string[];\n\n @IsOptional()\n @IsArray()\n scenarioIds?: string[];\n\n @IsOptional()\n @IsArray()\n skipScenarioIds?: string[];\n\n /** Where lifecycle events are POSTed (e.g. testingHub ingest endpoint). */\n @IsString()\n webhookUrl!: string;\n\n /** Correlation id supplied by the caller (e.g. testingHub TestRun id). */\n @IsOptional()\n @IsString()\n externalRunId?: string;\n\n /**\n * Per-run env variables for `${env:X}` interpolation — e.g. { BASE_URL: app.url }\n * so scenarios target the application under test rather than the runner itself.\n * (Distinct from `env` above, which is the dev/uat/prod environment label.)\n */\n @IsOptional()\n @IsObject()\n variables?: Record<string, string>;\n\n @IsOptional()\n @IsObject()\n capture?: CaptureOptionsInput;\n\n /** Device and app for mobile scenarios (Appium). Required when a scenario is a mobile scenario. */\n @IsOptional()\n @IsObject()\n mobile?: MobileRunOptionsInput;\n\n @IsOptional()\n @IsBoolean()\n printApiLogs?: boolean;\n\n /** Queue broker override: database | redis | rabbitmq (default: database). */\n @IsOptional()\n @IsString()\n broker?: string;\n}\n\n/** Queue payload = the request plus the runner-generated run id. */\nexport interface TestRunJobPayload extends TestRunRequestDto {\n runId: string;\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class UpdateAgentDeploymentDto {
|
|
2
|
+
runner?: 'local' | 'docker' | 'ecs' | null;
|
|
3
|
+
minProcesses?: number;
|
|
4
|
+
maxProcesses?: number | null;
|
|
5
|
+
processCpu?: number | null;
|
|
6
|
+
processMemory?: number | null;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=update-agent-deployment.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-deployment.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-agent-deployment.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,wBAAwB;IAInC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC;IAM3C,YAAY,CAAC,EAAE,MAAM,CAAC;IAOtB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO3B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateAgentDeploymentDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
class UpdateAgentDeploymentDto {
|
|
18
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
+
return { runner: { required: false, type: () => Object, enum: ['local', 'docker', 'ecs'] }, minProcesses: { required: false, type: () => Number, minimum: 0 }, maxProcesses: { required: false, type: () => Number, nullable: true, minimum: 1 }, processCpu: { required: false, type: () => Number, nullable: true, minimum: 1 }, processMemory: { required: false, type: () => Number, nullable: true, minimum: 1 } };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.UpdateAgentDeploymentDto = UpdateAgentDeploymentDto;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: ['local', 'docker', 'ecs'], nullable: true }),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsIn)(['local', 'docker', 'ecs']),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpdateAgentDeploymentDto.prototype, "runner", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiPropertyOptional)({ minimum: 0 }),
|
|
31
|
+
(0, class_validator_1.ValidateIf)((_object, value) => value !== undefined),
|
|
32
|
+
(0, class_validator_1.IsInt)(),
|
|
33
|
+
(0, class_validator_1.Min)(0),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], UpdateAgentDeploymentDto.prototype, "minProcesses", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiPropertyOptional)({ nullable: true, minimum: 1, type: Number }),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
40
|
+
(0, class_validator_1.IsInt)(),
|
|
41
|
+
(0, class_validator_1.Min)(1),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], UpdateAgentDeploymentDto.prototype, "maxProcesses", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiPropertyOptional)({ nullable: true, minimum: 1, type: Number }),
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
48
|
+
(0, class_validator_1.IsInt)(),
|
|
49
|
+
(0, class_validator_1.Min)(1),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], UpdateAgentDeploymentDto.prototype, "processCpu", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiPropertyOptional)({ nullable: true, minimum: 1, type: Number }),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
56
|
+
(0, class_validator_1.IsInt)(),
|
|
57
|
+
(0, class_validator_1.Min)(1),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], UpdateAgentDeploymentDto.prototype, "processMemory", void 0);
|
|
60
|
+
//# sourceMappingURL=update-agent-deployment.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-deployment.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-deployment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAAsD;AACtD,yDAAyC;AACzC,qDAA2E;AAE3E,MAAa,wBAAwB;;sEAG7B,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC;;CA6BjC;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uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;+DACuB","sourcesContent":["import { ApiPropertyOptional } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { IsIn, IsInt, IsOptional, Min, ValidateIf } from 'class-validator';\n\nexport class UpdateAgentDeploymentDto {\n @ApiPropertyOptional({ enum: ['local', 'docker', 'ecs'], nullable: true })\n @IsOptional()\n @IsIn(['local', 'docker', 'ecs'])\n runner?: 'local' | 'docker' | 'ecs' | null;\n\n @ApiPropertyOptional({ minimum: 0 })\n @ValidateIf((_object, value) => value !== undefined)\n @IsInt()\n @Min(0)\n minProcesses?: number;\n\n @ApiPropertyOptional({ nullable: true, minimum: 1, type: Number })\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n maxProcesses?: number | null;\n\n @ApiPropertyOptional({ nullable: true, minimum: 1, type: Number })\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n processCpu?: number | null;\n\n @ApiPropertyOptional({ nullable: true, minimum: 1, type: Number })\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n processMemory?: number | null;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-agent-job.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-agent-job.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E,qBAAa,iBAAiB;IAG1B,EAAE,EAAE,MAAM,CAAC;IAKX,SAAS,EAAE,MAAM,CAAC;IAKlB,cAAc,EAAE,MAAM,CAAC;IAKvB,OAAO,EAAE,MAAM,CAAC;IAKhB,YAAY,EAAE,MAAM,CAAC;IAMrB,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,EAAE,MAAM,CAAC;IAMd,cAAc,EAAE,MAAM,CAAC;IAMvB,MAAM,EAAE,MAAM,CAAC;IAKf,UAAU,EAAE,MAAM,CAAC;IAKnB,cAAc,EAA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C;IAKf,KAAK,EAAE,MAAM,CAAC;IAKd,SAAS,EAAE,IAAI,CAAC;IAKhB,UAAU,EAAE,IAAI,CAAC;IAOjB,kBAAkB,EAAE,0BAA0B,EAAE,CAAC;IAKjD,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAKhC,yBAAyB,EAAE,MAAM,CAAC;CACrC"}
|
|
@@ -17,7 +17,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
17
17
|
const update_agent_human_request_dto_1 = require("./update-agent-human-request.dto");
|
|
18
18
|
class UpdateAgentJobDto {
|
|
19
19
|
static _OPENAPI_METADATA_FACTORY() {
|
|
20
|
-
return { id: { required: true, type: () => Number }, sessionId: { required: true, type: () => Number }, sessionUserKey: { required: true, type: () => String }, agentId: { required: true, type: () => Number }, agentUserKey: { required: true, type: () => String }, kind: { required: true, type: () => String }, input: { required: true, type: () => String }, callerSnapshot: { required: true, type: () => String }, status: { required: true, type: () => String }, leaseToken: { required: true, type: () => String }, leaseExpiresAt: { required: true, type: () => Date }, attempts: { required: true, type: () => Number }, idempotencyKey: { required: true, type: () => String }, webhookUrl: { required: true, type: () => String }, webhookSecret: { required: true, type: () => String }, timeoutSeconds: { required: true, type: () => Number }, maxSteps: { required: true, type: () => Number }, result: { required: true, type: () => String }, error: { required: true, type: () => String }, startedAt: { required: true, type: () => Date }, finishedAt: { required: true, type: () => Date }, agentHumanRequests: { required: true, type: () => [require("./update-agent-human-request.dto").UpdateAgentHumanRequestDto] }, agentHumanRequestsIds: { required: true, type: () => [Number] }, agentHumanRequestsCommand: { required: true, type: () => String } };
|
|
20
|
+
return { id: { required: true, type: () => Number }, sessionId: { required: true, type: () => Number }, sessionUserKey: { required: true, type: () => String }, agentId: { required: true, type: () => Number }, agentUserKey: { required: true, type: () => String }, kind: { required: true, type: () => String }, input: { required: true, type: () => String }, callerSnapshot: { required: true, type: () => String }, status: { required: true, type: () => String }, leaseToken: { required: true, type: () => String }, leaseExpiresAt: { required: true, type: () => Date }, dispatchedAt: { required: false, type: () => Date, nullable: true }, attempts: { required: true, type: () => Number }, idempotencyKey: { required: true, type: () => String }, webhookUrl: { required: true, type: () => String }, webhookSecret: { required: true, type: () => String }, timeoutSeconds: { required: true, type: () => Number }, maxSteps: { required: true, type: () => Number }, result: { required: true, type: () => String }, error: { required: true, type: () => String }, startedAt: { required: true, type: () => Date }, finishedAt: { required: true, type: () => Date }, agentHumanRequests: { required: true, type: () => [require("./update-agent-human-request.dto").UpdateAgentHumanRequestDto] }, agentHumanRequestsIds: { required: true, type: () => [Number] }, agentHumanRequestsCommand: { required: true, type: () => String } };
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
exports.UpdateAgentJobDto = UpdateAgentJobDto;
|
|
@@ -89,6 +89,13 @@ __decorate([
|
|
|
89
89
|
(0, swagger_1.ApiProperty)(),
|
|
90
90
|
__metadata("design:type", Date)
|
|
91
91
|
], UpdateAgentJobDto.prototype, "leaseExpiresAt", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
95
|
+
(0, class_validator_1.IsDate)(),
|
|
96
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true, type: Date }),
|
|
97
|
+
__metadata("design:type", Date)
|
|
98
|
+
], UpdateAgentJobDto.prototype, "dispatchedAt", void 0);
|
|
92
99
|
__decorate([
|
|
93
100
|
(0, class_validator_1.IsNotEmpty)(),
|
|
94
101
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-agent-job.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-job.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAkH;AAClH,6CAA8C;AAC9C,yDAAyC;AACzC,qFAA8E;AAE9E,MAAa,iBAAiB;;;;
|
|
1
|
+
{"version":3,"file":"update-agent-job.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-job.dto.ts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A,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2DAA0B,CAAC;;6DACU;AAKjD;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;gEACkB;AAKhC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;oEACoB","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsDate, ValidateNested, IsArray } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentHumanRequestDto } from './update-agent-human-request.dto';\n\nexport class UpdateAgentJobDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n sessionId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n sessionUserKey: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n agentId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentUserKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n kind: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n input: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n callerSnapshot: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n leaseToken: string;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n leaseExpiresAt: Date;\n\n @IsOptional()\n @Type(() => Date)\n @IsDate()\n @ApiProperty({ required: false, nullable: true, type: Date })\n dispatchedAt?: Date | null;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n attempts: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n idempotencyKey: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n webhookUrl: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n webhookSecret: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n timeoutSeconds: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n maxSteps: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n result: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n error: string;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n startedAt: Date;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n finishedAt: Date;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentHumanRequestDto)\n agentHumanRequests: UpdateAgentHumanRequestDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentHumanRequestsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentHumanRequestsCommand: string;\n}\n"]}
|
|
@@ -6,6 +6,11 @@ export declare class UpdateAgentProcessDto {
|
|
|
6
6
|
host: string;
|
|
7
7
|
port: number;
|
|
8
8
|
pid: number;
|
|
9
|
+
runner?: string | null;
|
|
10
|
+
runnerRef?: string | null;
|
|
11
|
+
runtimeVersion?: string | null;
|
|
12
|
+
cpu?: number | null;
|
|
13
|
+
memory?: number | null;
|
|
9
14
|
wsUrl: string;
|
|
10
15
|
status: string;
|
|
11
16
|
configVersion: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-agent-process.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-agent-process.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,qBAAa,qBAAqB;IAG9B,EAAE,EAAE,MAAM,CAAC;IAKX,OAAO,EAAE,MAAM,CAAC;IAKhB,YAAY,EAAE,MAAM,CAAC;IAMrB,IAAI,EAAE,MAAM,CAAC;IAMb,IAAI,EAAE,MAAM,CAAC;IAKb,G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MAAM,CAAC;IAMpB,eAAe,EAAE,MAAM,CAAC;IAMxB,UAAU,EAAE,MAAM,CAAC;IAKnB,WAAW,EAAE,IAAI,CAAC;IAKlB,SAAS,EAAE,IAAI,CAAC;IAOhB,aAAa,EAAE,qBAAqB,EAAE,CAAC;IAKvC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAK3B,oBAAoB,EAAE,MAAM,CAAC;CAChC"}
|
|
@@ -17,7 +17,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
17
17
|
const update_agent_session_dto_1 = require("./update-agent-session.dto");
|
|
18
18
|
class UpdateAgentProcessDto {
|
|
19
19
|
static _OPENAPI_METADATA_FACTORY() {
|
|
20
|
-
return { id: { required: true, type: () => Number }, agentId: { required: true, type: () => Number }, agentUserKey: { required: true, type: () => String }, host: { required: true, type: () => String }, port: { required: true, type: () => Number }, pid: { required: true, type: () => Number }, wsUrl: { required: true, type: () => String }, status: { required: true, type: () => String }, configVersion: { required: true, type: () => Number }, openSessions: { required: true, type: () => Number }, runningTurns: { required: true, type: () => Number }, maxSessions: { required: true, type: () => Number }, maxRunningTurns: { required: true, type: () => Number }, loadReport: { required: true, type: () => String }, heartbeatAt: { required: true, type: () => Date }, stoppedAt: { required: true, type: () => Date }, agentSessions: { required: true, type: () => [require("./update-agent-session.dto").UpdateAgentSessionDto] }, agentSessionsIds: { required: true, type: () => [Number] }, agentSessionsCommand: { required: true, type: () => String } };
|
|
20
|
+
return { id: { required: true, type: () => Number }, agentId: { required: true, type: () => Number }, agentUserKey: { required: true, type: () => String }, host: { required: true, type: () => String }, port: { required: true, type: () => Number }, pid: { required: true, type: () => Number }, runner: { required: false, type: () => String, nullable: true }, runnerRef: { required: false, type: () => String, nullable: true, maxLength: 512 }, runtimeVersion: { required: false, type: () => String, nullable: true }, cpu: { required: false, type: () => Number, nullable: true, minimum: 1 }, memory: { required: false, type: () => Number, nullable: true, minimum: 1 }, wsUrl: { required: true, type: () => String }, status: { required: true, type: () => String }, configVersion: { required: true, type: () => Number }, openSessions: { required: true, type: () => Number }, runningTurns: { required: true, type: () => Number }, maxSessions: { required: true, type: () => Number }, maxRunningTurns: { required: true, type: () => Number }, loadReport: { required: true, type: () => String }, heartbeatAt: { required: true, type: () => Date }, stoppedAt: { required: true, type: () => Date }, agentSessions: { required: true, type: () => [require("./update-agent-session.dto").UpdateAgentSessionDto] }, agentSessionsIds: { required: true, type: () => [Number] }, agentSessionsCommand: { required: true, type: () => String } };
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
exports.UpdateAgentProcessDto = UpdateAgentProcessDto;
|
|
@@ -58,6 +58,42 @@ __decorate([
|
|
|
58
58
|
(0, swagger_1.ApiProperty)(),
|
|
59
59
|
__metadata("design:type", Number)
|
|
60
60
|
], UpdateAgentProcessDto.prototype, "pid", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
65
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true, type: String }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], UpdateAgentProcessDto.prototype, "runner", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
(0, class_validator_1.MaxLength)(512),
|
|
72
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true, type: String, maxLength: 512 }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], UpdateAgentProcessDto.prototype, "runnerRef", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true, type: String }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], UpdateAgentProcessDto.prototype, "runtimeVersion", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
84
|
+
(0, class_validator_1.IsInt)(),
|
|
85
|
+
(0, class_validator_1.Min)(1),
|
|
86
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true, type: Number, minimum: 1 }),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], UpdateAgentProcessDto.prototype, "cpu", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.IsOptional)(),
|
|
91
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
92
|
+
(0, class_validator_1.IsInt)(),
|
|
93
|
+
(0, class_validator_1.Min)(1),
|
|
94
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true, type: Number, minimum: 1 }),
|
|
95
|
+
__metadata("design:type", Number)
|
|
96
|
+
], UpdateAgentProcessDto.prototype, "memory", void 0);
|
|
61
97
|
__decorate([
|
|
62
98
|
(0, class_validator_1.IsNotEmpty)(),
|
|
63
99
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-agent-process.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-process.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"update-agent-process.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-process.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAkI;AAClI,6CAA8C;AAC9C,yDAAyC;AACzC,yEAAmE;AAEnE,MAAa,qBAAqB;;;;CAyIjC;AAzID,sDAyIC;AAtIG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iDACG;AAKX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;sDACE;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4B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,GAAE;;yDACK;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;8BACD,IAAI;0DAAC;AAKlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;8BACH,IAAI;wDAAC;AAOhB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gDAAqB,CAAC;;4DACK;AAKvC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;+DACa;AAK3B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;mEACe","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsDate, ValidateNested, IsArray, MaxLength, Min } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentSessionDto } from './update-agent-session.dto';\n\nexport class UpdateAgentProcessDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n agentId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentUserKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n host: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n port: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n pid: number;\n\n @IsOptional()\n @IsString()\n @IsNotEmpty()\n @ApiProperty({ required: false, nullable: true, type: String })\n runner?: string | null;\n\n @IsOptional()\n @IsString()\n @MaxLength(512)\n @ApiProperty({ required: false, nullable: true, type: String, maxLength: 512 })\n runnerRef?: string | null;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false, nullable: true, type: String })\n runtimeVersion?: string | null;\n\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n @ApiProperty({ required: false, nullable: true, type: Number, minimum: 1 })\n cpu?: number | null;\n\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n @ApiProperty({ required: false, nullable: true, type: Number, minimum: 1 })\n memory?: number | null;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n wsUrl: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n configVersion: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n openSessions: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n runningTurns: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n maxSessions: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n maxRunningTurns: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n loadReport: string;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n heartbeatAt: Date;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n stoppedAt: Date;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSessionDto)\n agentSessions: UpdateAgentSessionDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSessionsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSessionsCommand: string;\n}\n"]}
|
|
@@ -21,6 +21,11 @@ export declare class UpdateAgentRegistryDto {
|
|
|
21
21
|
turnStepLimit: number;
|
|
22
22
|
costLimit: number;
|
|
23
23
|
configVersion?: number;
|
|
24
|
+
runner?: string | null;
|
|
25
|
+
minProcesses?: number;
|
|
26
|
+
maxProcesses?: number | null;
|
|
27
|
+
processCpu?: number | null;
|
|
28
|
+
processMemory?: number | null;
|
|
24
29
|
moduleId: number;
|
|
25
30
|
moduleUserKey: string;
|
|
26
31
|
tags: UpdateAgentHubTagDto[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-agent-registry.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-agent-registry.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,qBAAa,sBAAsB;IAG/B,EAAE,EAAE,MAAM,CAAC;IAMX,IAAI,EAAE,MAAM,CAAC;IAMb,KAAK,EAAE,MAAM,CAAC;IAKd,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,YAAY,EAAE,MAAM,CAAC;IAMrB,cAAc,EAAE,MAAM,CAAC;IAMvB,iBAAiB,EAAE,MAAM,CAAC;IAM1B,YAAY,EAAE,MAAM,CAAC;IAMrB,MAAM,EAAE,MAAM,CAAC;IAMf,SAAS,EAAE,MAAM,CAAC;IAMlB,aAAa,EAAE,MAAM,CAAC;IAMtB,SAAS,EAAE,MAAM,CAAC;IAKlB,aAAa,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"update-agent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AAM,CAAC;IAKjB,aAAa,EAAE,MAAM,CAAC;IAOtB,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAO7B,OAAO,EAAE,MAAM,EAAE,CAAC;IAKlB,WAAW,EAAE,MAAM,CAAC;IAOpB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IAKjC,aAAa,EAAE,MAAM,EAAE,CAAC;IAKxB,iBAAiB,EAAE,MAAM,CAAC;IAO1B,WAAW,EAAE,mBAAmB,EAAE,CAAC;IAKnC,cAAc,EAAE,MAAM,EAAE,CAAC;IAKzB,kBAAkB,EAAE,MAAM,CAAC;IAO3B,UAAU,EAAE,kBAAkB,EAAE,CAAC;IAKjC,aAAa,EAAE,MAAM,EAAE,CAAC;IAKxB,iBAAiB,EAAE,MAAM,CAAC;IAO1B,YAAY,EAAE,oBAAoB,EAAE,CAAC;IAKrC,eAAe,EAAE,MAAM,EAAE,CAAC;IAK1B,mBAAmB,EAAE,MAAM,CAAC;IAO5B,cAAc,EAAE,qBAAqB,EAAE,CAAC;IAKxC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAK5B,qBAAqB,EAAE,MAAM,CAAC;IAO9B,aAAa,EAAE,qBAAqB,EAAE,CAAC;IAKvC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAK3B,oBAAoB,EAAE,MAAM,CAAC;IAO7B,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAK/B,YAAY,EAAE,MAAM,EAAE,CAAC;IAKvB,gBAAgB,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -24,7 +24,7 @@ const update_agent_job_dto_1 = require("./update-agent-job.dto");
|
|
|
24
24
|
const update_agent_hub_tag_dto_1 = require("./update-agent-hub-tag.dto");
|
|
25
25
|
class UpdateAgentRegistryDto {
|
|
26
26
|
static _OPENAPI_METADATA_FACTORY() {
|
|
27
|
-
return { id: { required: true, type: () => Number }, name: { required: true, type: () => String }, title: { required: true, type: () => String }, description: { required: false, type: () => String }, iconName: { required: false, type: () => String }, systemPrompt: { required: true, type: () => String }, requiredInputs: { required: true, type: () => String }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, status: { required: true, type: () => String }, stepLimit: { required: true, type: () => Number }, turnStepLimit: { required: true, type: () => Number }, costLimit: { required: true, type: () => Number }, configVersion: { required: false, type: () => Number }, moduleId: { required: true, type: () => Number }, moduleUserKey: { required: true, type: () => String }, tags: { required: true, type: () => [require("./update-agent-hub-tag.dto").UpdateAgentHubTagDto] }, tagsIds: { required: true, type: () => [Number] }, tagsCommand: { required: true, type: () => String }, agentTools: { required: true, type: () => [require("./update-agent-tool.dto").UpdateAgentToolDto] }, agentToolsIds: { required: true, type: () => [Number] }, agentToolsCommand: { required: true, type: () => String }, agentSkills: { required: true, type: () => [require("./update-agent-skill.dto").UpdateAgentSkillDto] }, agentSkillsIds: { required: true, type: () => [Number] }, agentSkillsCommand: { required: true, type: () => String }, agentRoles: { required: true, type: () => [require("./update-agent-role.dto").UpdateAgentRoleDto] }, agentRolesIds: { required: true, type: () => [Number] }, agentRolesCommand: { required: true, type: () => String }, agentSecrets: { required: true, type: () => [require("./update-agent-secret.dto").UpdateAgentSecretDto] }, agentSecretsIds: { required: true, type: () => [Number] }, agentSecretsCommand: { required: true, type: () => String }, agentProcesses: { required: true, type: () => [require("./update-agent-process.dto").UpdateAgentProcessDto] }, agentProcessesIds: { required: true, type: () => [Number] }, agentProcessesCommand: { required: true, type: () => String }, agentSessions: { required: true, type: () => [require("./update-agent-session.dto").UpdateAgentSessionDto] }, agentSessionsIds: { required: true, type: () => [Number] }, agentSessionsCommand: { required: true, type: () => String }, agentJobs: { required: true, type: () => [require("./update-agent-job.dto").UpdateAgentJobDto] }, agentJobsIds: { required: true, type: () => [Number] }, agentJobsCommand: { required: true, type: () => String } };
|
|
27
|
+
return { id: { required: true, type: () => Number }, name: { required: true, type: () => String }, title: { required: true, type: () => String }, description: { required: false, type: () => String }, iconName: { required: false, type: () => String }, systemPrompt: { required: true, type: () => String }, requiredInputs: { required: true, type: () => String }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, status: { required: true, type: () => String }, stepLimit: { required: true, type: () => Number }, turnStepLimit: { required: true, type: () => Number }, costLimit: { required: true, type: () => Number }, configVersion: { required: false, type: () => Number }, runner: { required: false, type: () => String, nullable: true }, minProcesses: { required: false, type: () => Number, minimum: 0 }, maxProcesses: { required: false, type: () => Number, nullable: true, minimum: 1 }, processCpu: { required: false, type: () => Number, nullable: true, minimum: 1 }, processMemory: { required: false, type: () => Number, nullable: true, minimum: 1 }, moduleId: { required: true, type: () => Number }, moduleUserKey: { required: true, type: () => String }, tags: { required: true, type: () => [require("./update-agent-hub-tag.dto").UpdateAgentHubTagDto] }, tagsIds: { required: true, type: () => [Number] }, tagsCommand: { required: true, type: () => String }, agentTools: { required: true, type: () => [require("./update-agent-tool.dto").UpdateAgentToolDto] }, agentToolsIds: { required: true, type: () => [Number] }, agentToolsCommand: { required: true, type: () => String }, agentSkills: { required: true, type: () => [require("./update-agent-skill.dto").UpdateAgentSkillDto] }, agentSkillsIds: { required: true, type: () => [Number] }, agentSkillsCommand: { required: true, type: () => String }, agentRoles: { required: true, type: () => [require("./update-agent-role.dto").UpdateAgentRoleDto] }, agentRolesIds: { required: true, type: () => [Number] }, agentRolesCommand: { required: true, type: () => String }, agentSecrets: { required: true, type: () => [require("./update-agent-secret.dto").UpdateAgentSecretDto] }, agentSecretsIds: { required: true, type: () => [Number] }, agentSecretsCommand: { required: true, type: () => String }, agentProcesses: { required: true, type: () => [require("./update-agent-process.dto").UpdateAgentProcessDto] }, agentProcessesIds: { required: true, type: () => [Number] }, agentProcessesCommand: { required: true, type: () => String }, agentSessions: { required: true, type: () => [require("./update-agent-session.dto").UpdateAgentSessionDto] }, agentSessionsIds: { required: true, type: () => [Number] }, agentSessionsCommand: { required: true, type: () => String }, agentJobs: { required: true, type: () => [require("./update-agent-job.dto").UpdateAgentJobDto] }, agentJobsIds: { required: true, type: () => [Number] }, agentJobsCommand: { required: true, type: () => String } };
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
exports.UpdateAgentRegistryDto = UpdateAgentRegistryDto;
|
|
@@ -121,6 +121,44 @@ __decorate([
|
|
|
121
121
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
122
122
|
__metadata("design:type", Number)
|
|
123
123
|
], UpdateAgentRegistryDto.prototype, "configVersion", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
|
+
(0, class_validator_1.IsString)(),
|
|
127
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
128
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true, type: String }),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], UpdateAgentRegistryDto.prototype, "runner", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, class_validator_1.ValidateIf)((_object, value) => value !== undefined),
|
|
133
|
+
(0, class_validator_1.IsInt)(),
|
|
134
|
+
(0, class_validator_1.Min)(0),
|
|
135
|
+
(0, swagger_1.ApiProperty)({ required: false, minimum: 0 }),
|
|
136
|
+
__metadata("design:type", Number)
|
|
137
|
+
], UpdateAgentRegistryDto.prototype, "minProcesses", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, class_validator_1.IsOptional)(),
|
|
140
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
141
|
+
(0, class_validator_1.IsInt)(),
|
|
142
|
+
(0, class_validator_1.Min)(1),
|
|
143
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true, type: Number, minimum: 1 }),
|
|
144
|
+
__metadata("design:type", Number)
|
|
145
|
+
], UpdateAgentRegistryDto.prototype, "maxProcesses", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, class_validator_1.IsOptional)(),
|
|
148
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
149
|
+
(0, class_validator_1.IsInt)(),
|
|
150
|
+
(0, class_validator_1.Min)(1),
|
|
151
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true, type: Number, minimum: 1 }),
|
|
152
|
+
__metadata("design:type", Number)
|
|
153
|
+
], UpdateAgentRegistryDto.prototype, "processCpu", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, class_validator_1.IsOptional)(),
|
|
156
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
157
|
+
(0, class_validator_1.IsInt)(),
|
|
158
|
+
(0, class_validator_1.Min)(1),
|
|
159
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true, type: Number, minimum: 1 }),
|
|
160
|
+
__metadata("design:type", Number)
|
|
161
|
+
], UpdateAgentRegistryDto.prototype, "processMemory", void 0);
|
|
124
162
|
__decorate([
|
|
125
163
|
(0, class_validator_1.IsOptional)(),
|
|
126
164
|
(0, class_validator_1.IsInt)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-agent-registry.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-registry.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAoH;AACpH,6CAA8C;AAC9C,yDAAyC;AACzC,mEAA6D;AAC7D,qEAA+D;AAC/D,mEAA6D;AAC7D,uEAAiE;AACjE,yEAAmE;AACnE,yEAAmE;AACnE,iEAA2D;AAC3D,yEAAkE;AAElE,MAAa,sBAAsB;;;;CAmOlC;AAnOD,wDAmOC;AAhOG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;kDACG;AAMX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD;AAMb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;qDACA;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAA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IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gDAAqB,CAAC;;8DACM;AAKxC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;iEACc;AAK5B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;qEACgB;AAO9B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gDAAqB,CAAC;;6DACK;AAKvC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;gEACa;AAK3B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;oEACe;AAO7B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wCAAiB,CAAC;;yDACC;AAK/B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;4DACS;AAKvB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;gEACW","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsNumber, ValidateNested, IsArray } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentToolDto } from './update-agent-tool.dto';\nimport { UpdateAgentSkillDto } from './update-agent-skill.dto';\nimport { UpdateAgentRoleDto } from './update-agent-role.dto';\nimport { UpdateAgentSecretDto } from './update-agent-secret.dto';\nimport { UpdateAgentProcessDto } from './update-agent-process.dto';\nimport { UpdateAgentSessionDto } from './update-agent-session.dto';\nimport { UpdateAgentJobDto } from './update-agent-job.dto';\nimport { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';\n\nexport class UpdateAgentRegistryDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n name: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n title: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n description?: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n iconName?: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n systemPrompt: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n requiredInputs: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n reasoningModelKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n fastModelKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n stepLimit: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n turnStepLimit: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsNumber()\n @ApiProperty()\n costLimit: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n configVersion?: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n moduleId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n moduleUserKey: string;\n\n @IsOptional()\n @ApiProperty({ required: false })\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentHubTagDto)\n tags: UpdateAgentHubTagDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n tagsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n tagsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentToolDto)\n agentTools: UpdateAgentToolDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentToolsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentToolsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSkillDto)\n agentSkills: UpdateAgentSkillDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSkillsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSkillsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentRoleDto)\n agentRoles: UpdateAgentRoleDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentRolesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentRolesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSecretDto)\n agentSecrets: UpdateAgentSecretDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSecretsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSecretsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentProcessDto)\n agentProcesses: UpdateAgentProcessDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentProcessesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentProcessesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSessionDto)\n agentSessions: UpdateAgentSessionDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSessionsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSessionsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentJobDto)\n agentJobs: UpdateAgentJobDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentJobsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentJobsCommand: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"update-agent-registry.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-registry.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAqI;AACrI,6CAA8C;AAC9C,yDAAyC;AACzC,mEAA6D;AAC7D,qEAA+D;AAC/D,mEAA6D;AAC7D,uEAAiE;AACjE,yEAAmE;AACnE,yEAAmE;AACnE,iEAA2D;AAC3D,yEAAkE;AAElE,MAAa,sBAAsB;;;;CAoQlC;AApQD,wDAoQC;AAjQG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;kDACG;AAMX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD;AAMb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;qDACA;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DACZ;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ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;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gDAAqB,CAAC;;8DACM;AAKxC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;iEACc;AAK5B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;qEACgB;AAO9B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gDAAqB,CAAC;;6DACK;AAKvC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;gEACa;AAK3B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;oEACe;AAO7B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wCAAiB,CAAC;;yDACC;AAK/B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;4DACS;AAKvB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;gEACW","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsNumber, ValidateNested, IsArray, Min, ValidateIf } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentToolDto } from './update-agent-tool.dto';\nimport { UpdateAgentSkillDto } from './update-agent-skill.dto';\nimport { UpdateAgentRoleDto } from './update-agent-role.dto';\nimport { UpdateAgentSecretDto } from './update-agent-secret.dto';\nimport { UpdateAgentProcessDto } from './update-agent-process.dto';\nimport { UpdateAgentSessionDto } from './update-agent-session.dto';\nimport { UpdateAgentJobDto } from './update-agent-job.dto';\nimport { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';\n\nexport class UpdateAgentRegistryDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n name: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n title: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n description?: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n iconName?: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n systemPrompt: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n requiredInputs: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n reasoningModelKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n fastModelKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n stepLimit: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n turnStepLimit: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsNumber()\n @ApiProperty()\n costLimit: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n configVersion?: number;\n\n @IsOptional()\n @IsString()\n @IsNotEmpty()\n @ApiProperty({ required: false, nullable: true, type: String })\n runner?: string | null;\n\n @ValidateIf((_object, value) => value !== undefined)\n @IsInt()\n @Min(0)\n @ApiProperty({ required: false, minimum: 0 })\n minProcesses?: number;\n\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n @ApiProperty({ required: false, nullable: true, type: Number, minimum: 1 })\n maxProcesses?: number | null;\n\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n @ApiProperty({ required: false, nullable: true, type: Number, minimum: 1 })\n processCpu?: number | null;\n\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n @ApiProperty({ required: false, nullable: true, type: Number, minimum: 1 })\n processMemory?: number | null;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n moduleId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n moduleUserKey: string;\n\n @IsOptional()\n @ApiProperty({ required: false })\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentHubTagDto)\n tags: UpdateAgentHubTagDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n tagsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n tagsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentToolDto)\n agentTools: UpdateAgentToolDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentToolsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentToolsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSkillDto)\n agentSkills: UpdateAgentSkillDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSkillsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSkillsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentRoleDto)\n agentRoles: UpdateAgentRoleDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentRolesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentRolesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSecretDto)\n agentSecrets: UpdateAgentSecretDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSecretsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSecretsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentProcessDto)\n agentProcesses: UpdateAgentProcessDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentProcessesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentProcessesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSessionDto)\n agentSessions: UpdateAgentSessionDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSessionsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSessionsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentJobDto)\n agentJobs: UpdateAgentJobDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentJobsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentJobsCommand: string;\n}\n"]}
|
|
@@ -57,7 +57,7 @@ __decorate([
|
|
|
57
57
|
(0, class_validator_1.IsNotEmpty)(),
|
|
58
58
|
(0, class_validator_1.IsOptional)(),
|
|
59
59
|
(0, class_validator_1.IsString)(),
|
|
60
|
-
(0, swagger_1.ApiProperty)(),
|
|
60
|
+
(0, swagger_1.ApiProperty)({ description: "Original session entry point. Use api or webhook for the background jobs inbox." }),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
62
|
], UpdateAgentSessionDto.prototype, "trigger", void 0);
|
|
63
63
|
__decorate([
|