@solidxai/core 0.1.19-beta.5 → 0.1.20-beta.0
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 +73 -0
- package/dist/controllers/agent-hub-tag.controller.d.ts +24 -0
- package/dist/controllers/agent-hub-tag.controller.d.ts.map +1 -0
- package/dist/controllers/agent-hub-tag.controller.js +175 -0
- package/dist/controllers/agent-hub-tag.controller.js.map +1 -0
- package/dist/controllers/agent-tool-registry.controller.d.ts +18 -0
- package/dist/controllers/agent-tool-registry.controller.d.ts.map +1 -1
- package/dist/controllers/agent-tool-registry.controller.js +13 -0
- package/dist/controllers/agent-tool-registry.controller.js.map +1 -1
- package/dist/dtos/create-agent-hub-tag.dto.d.ts +16 -0
- package/dist/dtos/create-agent-hub-tag.dto.d.ts.map +1 -0
- package/dist/dtos/create-agent-hub-tag.dto.js +98 -0
- package/dist/dtos/create-agent-hub-tag.dto.js.map +1 -0
- package/dist/dtos/create-agent-registry.dto.d.ts +4 -0
- package/dist/dtos/create-agent-registry.dto.d.ts.map +1 -1
- package/dist/dtos/create-agent-registry.dto.js +24 -1
- package/dist/dtos/create-agent-registry.dto.js.map +1 -1
- package/dist/dtos/create-agent-skill-registry.dto.d.ts +4 -1
- package/dist/dtos/create-agent-skill-registry.dto.d.ts.map +1 -1
- package/dist/dtos/create-agent-skill-registry.dto.js +21 -5
- package/dist/dtos/create-agent-skill-registry.dto.js.map +1 -1
- package/dist/dtos/create-agent-tool-registry.dto.d.ts +4 -1
- package/dist/dtos/create-agent-tool-registry.dto.d.ts.map +1 -1
- package/dist/dtos/create-agent-tool-registry.dto.js +24 -8
- package/dist/dtos/create-agent-tool-registry.dto.js.map +1 -1
- package/dist/dtos/update-agent-hub-tag.dto.d.ts +17 -0
- package/dist/dtos/update-agent-hub-tag.dto.d.ts.map +1 -0
- package/dist/dtos/update-agent-hub-tag.dto.js +104 -0
- package/dist/dtos/update-agent-hub-tag.dto.js.map +1 -0
- package/dist/dtos/update-agent-registry.dto.d.ts +4 -0
- package/dist/dtos/update-agent-registry.dto.d.ts.map +1 -1
- package/dist/dtos/update-agent-registry.dto.js +24 -1
- package/dist/dtos/update-agent-registry.dto.js.map +1 -1
- package/dist/dtos/update-agent-skill-registry.dto.d.ts +4 -1
- package/dist/dtos/update-agent-skill-registry.dto.d.ts.map +1 -1
- package/dist/dtos/update-agent-skill-registry.dto.js +20 -4
- package/dist/dtos/update-agent-skill-registry.dto.js.map +1 -1
- package/dist/dtos/update-agent-tool-registry.dto.d.ts +4 -1
- package/dist/dtos/update-agent-tool-registry.dto.d.ts.map +1 -1
- package/dist/dtos/update-agent-tool-registry.dto.js +24 -8
- package/dist/dtos/update-agent-tool-registry.dto.js.map +1 -1
- package/dist/entities/agent-hub-tag.entity.d.ts +11 -0
- package/dist/entities/agent-hub-tag.entity.d.ts.map +1 -0
- package/dist/entities/agent-hub-tag.entity.js +45 -0
- package/dist/entities/agent-hub-tag.entity.js.map +1 -0
- package/dist/entities/agent-registry.entity.d.ts +2 -0
- package/dist/entities/agent-registry.entity.d.ts.map +1 -1
- package/dist/entities/agent-registry.entity.js +7 -1
- package/dist/entities/agent-registry.entity.js.map +1 -1
- package/dist/entities/agent-skill-registry.entity.d.ts +2 -1
- package/dist/entities/agent-skill-registry.entity.d.ts.map +1 -1
- package/dist/entities/agent-skill-registry.entity.js +5 -4
- package/dist/entities/agent-skill-registry.entity.js.map +1 -1
- package/dist/entities/agent-tool-registry.entity.d.ts +2 -1
- package/dist/entities/agent-tool-registry.entity.d.ts.map +1 -1
- package/dist/entities/agent-tool-registry.entity.js +7 -6
- package/dist/entities/agent-tool-registry.entity.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/repository/agent-hub-tag.repository.d.ts +12 -0
- package/dist/repository/agent-hub-tag.repository.d.ts.map +1 -0
- package/dist/repository/agent-hub-tag.repository.js +39 -0
- package/dist/repository/agent-hub-tag.repository.js.map +1 -0
- package/dist/seeders/seed-data/solid-core-metadata.json +344 -30
- package/dist/services/agent-hub-tag.service.d.ts +12 -0
- package/dist/services/agent-hub-tag.service.d.ts.map +1 -0
- package/dist/services/agent-hub-tag.service.js +38 -0
- package/dist/services/agent-hub-tag.service.js.map +1 -0
- package/dist/services/agent-tool-registry.service.d.ts +23 -1
- package/dist/services/agent-tool-registry.service.d.ts.map +1 -1
- package/dist/services/agent-tool-registry.service.js +168 -4
- package/dist/services/agent-tool-registry.service.js.map +1 -1
- package/dist/services/agent-tool-registry.service.spec.js +1 -1
- package/dist/services/agent-tool-registry.service.spec.js.map +1 -1
- package/dist/services/secret.service.d.ts +1 -0
- package/dist/services/secret.service.d.ts.map +1 -1
- package/dist/services/secret.service.js +10 -0
- package/dist/services/secret.service.js.map +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +8 -0
- package/dist/solid-core.module.js.map +1 -1
- package/package.json +1 -1
- package/src/controllers/agent-hub-tag.controller.ts +86 -0
- package/src/controllers/agent-tool-registry.controller.ts +6 -0
- package/src/dtos/create-agent-hub-tag.dto.ts +70 -0
- package/src/dtos/create-agent-registry.dto.ts +20 -0
- package/src/dtos/create-agent-skill-registry.dto.ts +19 -4
- package/src/dtos/create-agent-tool-registry.dto.ts +21 -6
- package/src/dtos/update-agent-hub-tag.dto.ts +75 -0
- package/src/dtos/update-agent-registry.dto.ts +20 -0
- package/src/dtos/update-agent-skill-registry.dto.ts +17 -3
- package/src/dtos/update-agent-tool-registry.dto.ts +20 -6
- package/src/entities/agent-hub-tag.entity.ts +21 -0
- package/src/entities/agent-registry.entity.ts +6 -1
- package/src/entities/agent-skill-registry.entity.ts +5 -3
- package/src/entities/agent-tool-registry.entity.ts +6 -4
- package/src/index.ts +6 -0
- package/src/repository/agent-hub-tag.repository.ts +19 -0
- package/src/seeders/seed-data/solid-core-metadata.json +344 -30
- package/src/services/agent-hub-tag.service.ts +19 -0
- package/src/services/agent-tool-registry.service.spec.ts +1 -1
- package/src/services/agent-tool-registry.service.ts +161 -1
- package/src/services/secret.service.ts +10 -0
- package/src/solid-core.module.ts +8 -0
|
@@ -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;
|
|
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;KAgJzB;;;;CAAA;AA3MD,wDA2MC;AAvMG;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,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A,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 } 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 @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,11 +1,14 @@
|
|
|
1
1
|
import { UpdateAgentSkillDto } from './update-agent-skill.dto';
|
|
2
|
+
import { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';
|
|
2
3
|
export declare class CreateAgentSkillRegistryDto {
|
|
3
4
|
name: string;
|
|
4
5
|
type: string;
|
|
5
6
|
iconName?: string;
|
|
6
7
|
description: string;
|
|
7
8
|
body: string;
|
|
8
|
-
tags:
|
|
9
|
+
tags: UpdateAgentHubTagDto[];
|
|
10
|
+
tagsIds: number[];
|
|
11
|
+
tagsCommand: string;
|
|
9
12
|
agentSkills: UpdateAgentSkillDto[];
|
|
10
13
|
agentSkillsIds: number[];
|
|
11
14
|
agentSkillsCommand: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-agent-skill-registry.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-agent-skill-registry.dto.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"create-agent-skill-registry.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-agent-skill-registry.dto.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,qBAAa,2BAA2B;IAIpC,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAY;IAKxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,MAAM,CAAC;IAOb,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAO7B,OAAO,EAAE,MAAM,EAAE,CAAC;IAKlB,WAAW,EAAE,MAAM,CAAC;IAOpB,WAAW,EAAE,mBAAmB,EAAE,CAAC;IAKnC,cAAc,EAAE,MAAM,EAAE,CAAC;IAKzB,kBAAkB,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -16,13 +16,13 @@ const class_validator_1 = require("class-validator");
|
|
|
16
16
|
const class_validator_2 = require("class-validator");
|
|
17
17
|
const class_transformer_1 = require("class-transformer");
|
|
18
18
|
const update_agent_skill_dto_1 = require("./update-agent-skill.dto");
|
|
19
|
+
const update_agent_hub_tag_dto_1 = require("./update-agent-hub-tag.dto");
|
|
19
20
|
class CreateAgentSkillRegistryDto {
|
|
20
21
|
constructor() {
|
|
21
22
|
this.type = "custom";
|
|
22
|
-
this.tags = "{}";
|
|
23
23
|
}
|
|
24
24
|
static _OPENAPI_METADATA_FACTORY() {
|
|
25
|
-
return { name: { required: true, type: () => String }, type: { required: true, type: () => String, default: "custom" }, iconName: { required: false, type: () => String }, description: { required: true, type: () => String }, body: { required: true, type: () => String }, tags: { required: true, type: () =>
|
|
25
|
+
return { name: { required: true, type: () => String }, type: { required: true, type: () => String, default: "custom" }, iconName: { required: false, type: () => String }, description: { required: true, type: () => String }, body: { 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 }, agentSkills: { required: true, type: () => [require("./update-agent-skill.dto").UpdateAgentSkillDto] }, agentSkillsIds: { required: true, type: () => [Number] }, agentSkillsCommand: { required: true, type: () => String } };
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
exports.CreateAgentSkillRegistryDto = CreateAgentSkillRegistryDto;
|
|
@@ -57,11 +57,27 @@ __decorate([
|
|
|
57
57
|
__metadata("design:type", String)
|
|
58
58
|
], CreateAgentSkillRegistryDto.prototype, "body", void 0);
|
|
59
59
|
__decorate([
|
|
60
|
-
(0, class_validator_2.
|
|
60
|
+
(0, class_validator_2.IsOptional)(),
|
|
61
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
62
|
+
(0, class_validator_2.IsArray)(),
|
|
63
|
+
(0, class_validator_2.ValidateNested)({ each: true }),
|
|
64
|
+
(0, class_transformer_1.Type)(() => update_agent_hub_tag_dto_1.UpdateAgentHubTagDto),
|
|
65
|
+
__metadata("design:type", Array)
|
|
66
|
+
], CreateAgentSkillRegistryDto.prototype, "tags", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_2.IsOptional)(),
|
|
69
|
+
(0, class_validator_2.IsArray)(),
|
|
70
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
71
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
72
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
73
|
+
__metadata("design:type", Array)
|
|
74
|
+
], CreateAgentSkillRegistryDto.prototype, "tagsIds", void 0);
|
|
75
|
+
__decorate([
|
|
61
76
|
(0, class_validator_1.IsString)(),
|
|
62
|
-
(0,
|
|
77
|
+
(0, class_validator_2.IsOptional)(),
|
|
78
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
63
79
|
__metadata("design:type", String)
|
|
64
|
-
], CreateAgentSkillRegistryDto.prototype, "
|
|
80
|
+
], CreateAgentSkillRegistryDto.prototype, "tagsCommand", void 0);
|
|
65
81
|
__decorate([
|
|
66
82
|
(0, class_validator_2.IsOptional)(),
|
|
67
83
|
(0, swagger_1.ApiProperty)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-agent-skill-registry.dto.js","sourceRoot":"","sources":["../../src/dtos/create-agent-skill-registry.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"create-agent-skill-registry.dto.js","sourceRoot":"","sources":["../../src/dtos/create-agent-skill-registry.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAkD;AAClD,qDAA0F;AAC1F,yDAAyC;AACzC,qEAA+D;AAC/D,yEAAkE;AAElE,MAAa,2BAA2B;IAAxC;QASI,SAAI,GAAW,QAAQ,CAAC;KAoD3B;;;;CAAA;AA7DD,kEA6DC;AAzDG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;yDACD;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;yDACU;AAKxB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;6DACf;AAKlB;I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ator';\nimport { IsNotEmpty, IsJSON, ValidateNested, IsArray, IsOptional } from 'class-validator';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentSkillDto } from './update-agent-skill.dto';\nimport { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';\n\nexport class CreateAgentSkillRegistryDto {\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n name: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n type: string = \"custom\";\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n iconName?: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n description: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n body: 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(() => 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"]}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { UpdateAgentToolDto } from './update-agent-tool.dto';
|
|
2
|
+
import { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';
|
|
2
3
|
export declare class CreateAgentToolRegistryDto {
|
|
3
4
|
name: string;
|
|
4
5
|
type: string;
|
|
5
6
|
iconName?: string;
|
|
6
7
|
description: string;
|
|
7
|
-
tags: string;
|
|
8
8
|
sourceCode: string;
|
|
9
9
|
checksum?: string;
|
|
10
10
|
status: string;
|
|
11
11
|
lastLoadError: string;
|
|
12
|
+
tags: UpdateAgentHubTagDto[];
|
|
13
|
+
tagsIds: number[];
|
|
14
|
+
tagsCommand: string;
|
|
12
15
|
agentTools: UpdateAgentToolDto[];
|
|
13
16
|
agentToolsIds: number[];
|
|
14
17
|
agentToolsCommand: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-agent-tool-registry.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-agent-tool-registry.dto.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"create-agent-tool-registry.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-agent-tool-registry.dto.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,qBAAa,0BAA0B;IAInC,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAC;IAKb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,WAAW,EAAE,MAAM,CAAC;IAKpB,UAAU,EAAE,MAAM,CAAC;IAKnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,MAAM,EAAE,MAAM,CAAc;IAK5B,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;CAC7B"}
|
|
@@ -16,13 +16,13 @@ const class_validator_1 = require("class-validator");
|
|
|
16
16
|
const class_validator_2 = require("class-validator");
|
|
17
17
|
const class_transformer_1 = require("class-transformer");
|
|
18
18
|
const update_agent_tool_dto_1 = require("./update-agent-tool.dto");
|
|
19
|
+
const update_agent_hub_tag_dto_1 = require("./update-agent-hub-tag.dto");
|
|
19
20
|
class CreateAgentToolRegistryDto {
|
|
20
21
|
constructor() {
|
|
21
|
-
this.tags = "[]";
|
|
22
22
|
this.status = "inactive";
|
|
23
23
|
}
|
|
24
24
|
static _OPENAPI_METADATA_FACTORY() {
|
|
25
|
-
return { name: { required: true, type: () => String }, type: { required: true, type: () => String }, iconName: { required: false, type: () => String }, description: { required: true, type: () => String },
|
|
25
|
+
return { name: { required: true, type: () => String }, type: { required: true, type: () => String }, iconName: { required: false, type: () => String }, description: { required: true, type: () => String }, sourceCode: { required: true, type: () => String }, checksum: { required: false, type: () => String }, status: { required: true, type: () => String, default: "inactive" }, lastLoadError: { 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 } };
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
exports.CreateAgentToolRegistryDto = CreateAgentToolRegistryDto;
|
|
@@ -50,12 +50,6 @@ __decorate([
|
|
|
50
50
|
(0, swagger_1.ApiProperty)(),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
52
|
], CreateAgentToolRegistryDto.prototype, "description", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, class_validator_2.IsNotEmpty)(),
|
|
55
|
-
(0, class_validator_1.IsString)(),
|
|
56
|
-
(0, swagger_1.ApiProperty)(),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], CreateAgentToolRegistryDto.prototype, "tags", void 0);
|
|
59
53
|
__decorate([
|
|
60
54
|
(0, class_validator_2.IsNotEmpty)(),
|
|
61
55
|
(0, class_validator_1.IsString)(),
|
|
@@ -80,6 +74,28 @@ __decorate([
|
|
|
80
74
|
(0, swagger_1.ApiProperty)(),
|
|
81
75
|
__metadata("design:type", String)
|
|
82
76
|
], CreateAgentToolRegistryDto.prototype, "lastLoadError", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_2.IsOptional)(),
|
|
79
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
80
|
+
(0, class_validator_2.IsArray)(),
|
|
81
|
+
(0, class_validator_2.ValidateNested)({ each: true }),
|
|
82
|
+
(0, class_transformer_1.Type)(() => update_agent_hub_tag_dto_1.UpdateAgentHubTagDto),
|
|
83
|
+
__metadata("design:type", Array)
|
|
84
|
+
], CreateAgentToolRegistryDto.prototype, "tags", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_validator_2.IsOptional)(),
|
|
87
|
+
(0, class_validator_2.IsArray)(),
|
|
88
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
89
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
90
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
91
|
+
__metadata("design:type", Array)
|
|
92
|
+
], CreateAgentToolRegistryDto.prototype, "tagsIds", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_validator_1.IsString)(),
|
|
95
|
+
(0, class_validator_2.IsOptional)(),
|
|
96
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], CreateAgentToolRegistryDto.prototype, "tagsCommand", void 0);
|
|
83
99
|
__decorate([
|
|
84
100
|
(0, class_validator_2.IsOptional)(),
|
|
85
101
|
(0, swagger_1.ApiProperty)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-agent-tool-registry.dto.js","sourceRoot":"","sources":["../../src/dtos/create-agent-tool-registry.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"create-agent-tool-registry.dto.js","sourceRoot":"","sources":["../../src/dtos/create-ag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G,EAAE,CAAC,+CAAoB,CAAC;;wDACJ;AAO7B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DACf;AAKlB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+DACb;AAOpB;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,0CAAkB,CAAC;;8DACE;AAKjC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;iEACU;AAKxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;qEACY","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { IsInt, IsString } from 'class-validator';\nimport { IsNotEmpty, IsOptional, ValidateNested, IsArray } from 'class-validator';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentToolDto } from './update-agent-tool.dto';\nimport { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';\n\nexport class CreateAgentToolRegistryDto {\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n name: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n type: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n iconName?: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n description: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n sourceCode: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n checksum?: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n status: string = \"inactive\";\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n lastLoadError: 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"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UpdateAgentSkillRegistryDto } from './update-agent-skill-registry.dto';
|
|
2
|
+
import { UpdateAgentToolRegistryDto } from './update-agent-tool-registry.dto';
|
|
3
|
+
import { UpdateAgentRegistryDto } from './update-agent-registry.dto';
|
|
4
|
+
export declare class UpdateAgentHubTagDto {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
skills: UpdateAgentSkillRegistryDto[];
|
|
8
|
+
skillsIds: number[];
|
|
9
|
+
skillsCommand: string;
|
|
10
|
+
tools: UpdateAgentToolRegistryDto[];
|
|
11
|
+
toolsIds: number[];
|
|
12
|
+
toolsCommand: string;
|
|
13
|
+
agents: UpdateAgentRegistryDto[];
|
|
14
|
+
agentsIds: number[];
|
|
15
|
+
agentsCommand: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=update-agent-hub-tag.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-hub-tag.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-agent-hub-tag.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,qBAAa,oBAAoB;IAG7B,EAAE,EAAE,MAAM,CAAC;IAMX,IAAI,EAAE,MAAM,CAAC;IAOb,MAAM,EAAE,2BAA2B,EAAE,CAAC;IAOtC,SAAS,EAAE,MAAM,EAAE,CAAC;IAKpB,aAAa,EAAE,MAAM,CAAC;IAOtB,KAAK,EAAE,0BAA0B,EAAE,CAAC;IAOpC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAKnB,YAAY,EAAE,MAAM,CAAC;IAOrB,MAAM,EAAE,sBAAsB,EAAE,CAAC;IAOjC,SAAS,EAAE,MAAM,EAAE,CAAC;IAKpB,aAAa,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1,104 @@
|
|
|
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.UpdateAgentHubTagDto = 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
|
+
const update_agent_skill_registry_dto_1 = require("./update-agent-skill-registry.dto");
|
|
18
|
+
const update_agent_tool_registry_dto_1 = require("./update-agent-tool-registry.dto");
|
|
19
|
+
const update_agent_registry_dto_1 = require("./update-agent-registry.dto");
|
|
20
|
+
class UpdateAgentHubTagDto {
|
|
21
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
22
|
+
return { id: { required: true, type: () => Number }, name: { required: true, type: () => String }, skills: { required: true, type: () => [require("./update-agent-skill-registry.dto").UpdateAgentSkillRegistryDto] }, skillsIds: { required: true, type: () => [Number] }, skillsCommand: { required: true, type: () => String }, tools: { required: true, type: () => [require("./update-agent-tool-registry.dto").UpdateAgentToolRegistryDto] }, toolsIds: { required: true, type: () => [Number] }, toolsCommand: { required: true, type: () => String }, agents: { required: true, type: () => [require("./update-agent-registry.dto").UpdateAgentRegistryDto] }, agentsIds: { required: true, type: () => [Number] }, agentsCommand: { required: true, type: () => String } };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.UpdateAgentHubTagDto = UpdateAgentHubTagDto;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsInt)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], UpdateAgentHubTagDto.prototype, "id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UpdateAgentHubTagDto.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsArray)(),
|
|
41
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
42
|
+
(0, class_transformer_1.Type)(() => update_agent_skill_registry_dto_1.UpdateAgentSkillRegistryDto),
|
|
43
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
44
|
+
__metadata("design:type", Array)
|
|
45
|
+
], UpdateAgentHubTagDto.prototype, "skills", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsArray)(),
|
|
49
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
50
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
51
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], UpdateAgentHubTagDto.prototype, "skillsIds", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], UpdateAgentHubTagDto.prototype, "skillsCommand", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsArray)(),
|
|
63
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
64
|
+
(0, class_transformer_1.Type)(() => update_agent_tool_registry_dto_1.UpdateAgentToolRegistryDto),
|
|
65
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
66
|
+
__metadata("design:type", Array)
|
|
67
|
+
], UpdateAgentHubTagDto.prototype, "tools", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsArray)(),
|
|
71
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
72
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
73
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
74
|
+
__metadata("design:type", Array)
|
|
75
|
+
], UpdateAgentHubTagDto.prototype, "toolsIds", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
(0, class_validator_1.IsString)(),
|
|
79
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], UpdateAgentHubTagDto.prototype, "toolsCommand", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, class_validator_1.IsArray)(),
|
|
85
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
86
|
+
(0, class_transformer_1.Type)(() => update_agent_registry_dto_1.UpdateAgentRegistryDto),
|
|
87
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
88
|
+
__metadata("design:type", Array)
|
|
89
|
+
], UpdateAgentHubTagDto.prototype, "agents", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_validator_1.IsOptional)(),
|
|
92
|
+
(0, class_validator_1.IsArray)(),
|
|
93
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
94
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
95
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
96
|
+
__metadata("design:type", Array)
|
|
97
|
+
], UpdateAgentHubTagDto.prototype, "agentsIds", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_validator_1.IsOptional)(),
|
|
100
|
+
(0, class_validator_1.IsString)(),
|
|
101
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], UpdateAgentHubTagDto.prototype, "agentsCommand", void 0);
|
|
104
|
+
//# sourceMappingURL=update-agent-hub-tag.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-hub-tag.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-hub-tag.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,yDAAyC;AACzC,qDAAmG;AACnG,uFAAgF;AAChF,qFAA8E;AAC9E,2EAAqE;AAErE,MAAa,oBAAoB;;;;CAmEhC;AAnED,oDAmEC;AAhEG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;gDACG;AAMX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kDACpB;AAOb;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6DAA2B,CAAC;IACvC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oDACK;AAOtC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;uDACb;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DACX;AAOtB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAA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IsString, ValidateNested } from 'class-validator';\nimport { UpdateAgentSkillRegistryDto } from './update-agent-skill-registry.dto';\nimport { UpdateAgentToolRegistryDto } from './update-agent-tool-registry.dto';\nimport { UpdateAgentRegistryDto } from './update-agent-registry.dto';\n\nexport class UpdateAgentHubTagDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsOptional()\n @IsNotEmpty()\n @IsString()\n @ApiProperty({ required: false })\n name: string;\n\n @IsOptional()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSkillRegistryDto)\n @ApiProperty({ required: false })\n skills: UpdateAgentSkillRegistryDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n skillsIds: number[];\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n skillsCommand: string;\n\n @IsOptional()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentToolRegistryDto)\n @ApiProperty({ required: false })\n tools: UpdateAgentToolRegistryDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n toolsIds: number[];\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n toolsCommand: string;\n\n @IsOptional()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentRegistryDto)\n @ApiProperty({ required: false })\n agents: UpdateAgentRegistryDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n agentsIds: number[];\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n agentsCommand: string;\n}\n"]}
|
|
@@ -5,6 +5,7 @@ import { UpdateAgentSecretDto } from './update-agent-secret.dto';
|
|
|
5
5
|
import { UpdateAgentProcessDto } from './update-agent-process.dto';
|
|
6
6
|
import { UpdateAgentSessionDto } from './update-agent-session.dto';
|
|
7
7
|
import { UpdateAgentJobDto } from './update-agent-job.dto';
|
|
8
|
+
import { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';
|
|
8
9
|
export declare class UpdateAgentRegistryDto {
|
|
9
10
|
id: number;
|
|
10
11
|
name: string;
|
|
@@ -20,6 +21,9 @@ export declare class UpdateAgentRegistryDto {
|
|
|
20
21
|
turnStepLimit: number;
|
|
21
22
|
costLimit: number;
|
|
22
23
|
configVersion?: number;
|
|
24
|
+
tags: UpdateAgentHubTagDto[];
|
|
25
|
+
tagsIds: number[];
|
|
26
|
+
tagsCommand: string;
|
|
23
27
|
agentTools: UpdateAgentToolDto[];
|
|
24
28
|
agentToolsIds: number[];
|
|
25
29
|
agentToolsCommand: string;
|
|
@@ -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;
|
|
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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AAc,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"}
|
|
@@ -21,9 +21,10 @@ const update_agent_secret_dto_1 = require("./update-agent-secret.dto");
|
|
|
21
21
|
const update_agent_process_dto_1 = require("./update-agent-process.dto");
|
|
22
22
|
const update_agent_session_dto_1 = require("./update-agent-session.dto");
|
|
23
23
|
const update_agent_job_dto_1 = require("./update-agent-job.dto");
|
|
24
|
+
const update_agent_hub_tag_dto_1 = require("./update-agent-hub-tag.dto");
|
|
24
25
|
class UpdateAgentRegistryDto {
|
|
25
26
|
static _OPENAPI_METADATA_FACTORY() {
|
|
26
|
-
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 }, 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 }, 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
28
|
}
|
|
28
29
|
}
|
|
29
30
|
exports.UpdateAgentRegistryDto = UpdateAgentRegistryDto;
|
|
@@ -120,6 +121,28 @@ __decorate([
|
|
|
120
121
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
121
122
|
__metadata("design:type", Number)
|
|
122
123
|
], UpdateAgentRegistryDto.prototype, "configVersion", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
127
|
+
(0, class_validator_1.IsArray)(),
|
|
128
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
129
|
+
(0, class_transformer_1.Type)(() => update_agent_hub_tag_dto_1.UpdateAgentHubTagDto),
|
|
130
|
+
__metadata("design:type", Array)
|
|
131
|
+
], UpdateAgentRegistryDto.prototype, "tags", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, class_validator_1.IsOptional)(),
|
|
134
|
+
(0, class_validator_1.IsArray)(),
|
|
135
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
136
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
137
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
138
|
+
__metadata("design:type", Array)
|
|
139
|
+
], UpdateAgentRegistryDto.prototype, "tagsIds", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, class_validator_1.IsString)(),
|
|
142
|
+
(0, class_validator_1.IsOptional)(),
|
|
143
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], UpdateAgentRegistryDto.prototype, "tagsCommand", void 0);
|
|
123
146
|
__decorate([
|
|
124
147
|
(0, class_validator_1.IsOptional)(),
|
|
125
148
|
(0, swagger_1.ApiProperty)(),
|
|
@@ -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;
|
|
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;;;;CAyNlC;AAzND,wDAyNC;AAtNG;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,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,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 @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,4 +1,5 @@
|
|
|
1
1
|
import { UpdateAgentSkillDto } from './update-agent-skill.dto';
|
|
2
|
+
import { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';
|
|
2
3
|
export declare class UpdateAgentSkillRegistryDto {
|
|
3
4
|
id: number;
|
|
4
5
|
name: string;
|
|
@@ -6,7 +7,9 @@ export declare class UpdateAgentSkillRegistryDto {
|
|
|
6
7
|
iconName?: string;
|
|
7
8
|
description: string;
|
|
8
9
|
body: string;
|
|
9
|
-
tags:
|
|
10
|
+
tags: UpdateAgentHubTagDto[];
|
|
11
|
+
tagsIds: number[];
|
|
12
|
+
tagsCommand: string;
|
|
10
13
|
agentSkills: UpdateAgentSkillDto[];
|
|
11
14
|
agentSkillsIds: number[];
|
|
12
15
|
agentSkillsCommand: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-agent-skill-registry.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-agent-skill-registry.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"update-agent-skill-registry.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-agent-skill-registry.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,qBAAa,2BAA2B;IAGpC,EAAE,EAAE,MAAM,CAAC;IAMX,IAAI,EAAE,MAAM,CAAC;IAMb,IAAI,EAAE,MAAM,CAAC;IAKb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,WAAW,EAAE,MAAM,CAAC;IAMpB,IAAI,EAAE,MAAM,CAAC;IAOb,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAO7B,OAAO,EAAE,MAAM,EAAE,CAAC;IAKlB,WAAW,EAAE,MAAM,CAAC;IAOpB,WAAW,EAAE,mBAAmB,EAAE,CAAC;IAKnC,cAAc,EAAE,MAAM,EAAE,CAAC;IAKzB,kBAAkB,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -15,9 +15,10 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
const swagger_1 = require("@nestjs/swagger");
|
|
16
16
|
const class_transformer_1 = require("class-transformer");
|
|
17
17
|
const update_agent_skill_dto_1 = require("./update-agent-skill.dto");
|
|
18
|
+
const update_agent_hub_tag_dto_1 = require("./update-agent-hub-tag.dto");
|
|
18
19
|
class UpdateAgentSkillRegistryDto {
|
|
19
20
|
static _OPENAPI_METADATA_FACTORY() {
|
|
20
|
-
return { id: { required: true, type: () => Number }, name: { required: true, type: () => String }, type: { required: true, type: () => String }, iconName: { required: false, type: () => String }, description: { required: true, type: () => String }, body: { required: true, type: () => String }, tags: { required: true, type: () => String }, agentSkills: { required: true, type: () => [require("./update-agent-skill.dto").UpdateAgentSkillDto] }, agentSkillsIds: { required: true, type: () => [Number] }, agentSkillsCommand: { required: true, type: () => String } };
|
|
21
|
+
return { id: { required: true, type: () => Number }, name: { required: true, type: () => String }, type: { required: true, type: () => String }, iconName: { required: false, type: () => String }, description: { required: true, type: () => String }, body: { 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 }, agentSkills: { required: true, type: () => [require("./update-agent-skill.dto").UpdateAgentSkillDto] }, agentSkillsIds: { required: true, type: () => [Number] }, agentSkillsCommand: { required: true, type: () => String } };
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
exports.UpdateAgentSkillRegistryDto = UpdateAgentSkillRegistryDto;
|
|
@@ -61,12 +62,27 @@ __decorate([
|
|
|
61
62
|
__metadata("design:type", String)
|
|
62
63
|
], UpdateAgentSkillRegistryDto.prototype, "body", void 0);
|
|
63
64
|
__decorate([
|
|
64
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
65
65
|
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
67
|
+
(0, class_validator_1.IsArray)(),
|
|
68
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
69
|
+
(0, class_transformer_1.Type)(() => update_agent_hub_tag_dto_1.UpdateAgentHubTagDto),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], UpdateAgentSkillRegistryDto.prototype, "tags", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_validator_1.IsArray)(),
|
|
75
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
76
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
77
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
78
|
+
__metadata("design:type", Array)
|
|
79
|
+
], UpdateAgentSkillRegistryDto.prototype, "tagsIds", void 0);
|
|
80
|
+
__decorate([
|
|
66
81
|
(0, class_validator_1.IsString)(),
|
|
67
|
-
(0,
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
68
84
|
__metadata("design:type", String)
|
|
69
|
-
], UpdateAgentSkillRegistryDto.prototype, "
|
|
85
|
+
], UpdateAgentSkillRegistryDto.prototype, "tagsCommand", void 0);
|
|
70
86
|
__decorate([
|
|
71
87
|
(0, class_validator_1.IsOptional)(),
|
|
72
88
|
(0, swagger_1.ApiProperty)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-agent-skill-registry.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-skill-registry.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA0G;AA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AAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4DACf;AAKlB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gEACb;AAOpB;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,4CAAmB,CAAC;;gEACG;AAKnC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;mEACW;AAKzB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;uEACa","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, ValidateNested, IsArray } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentSkillDto } from './update-agent-skill.dto';\nimport { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';\n\nexport class UpdateAgentSkillRegistryDto {\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 type: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n iconName?: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n description: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n body: 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(() => 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"]}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { UpdateAgentToolDto } from './update-agent-tool.dto';
|
|
2
|
+
import { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';
|
|
2
3
|
export declare class UpdateAgentToolRegistryDto {
|
|
3
4
|
id: number;
|
|
4
5
|
name: string;
|
|
5
6
|
type: string;
|
|
6
7
|
iconName?: string;
|
|
7
8
|
description: string;
|
|
8
|
-
tags: string;
|
|
9
9
|
sourceCode: string;
|
|
10
10
|
checksum?: string;
|
|
11
11
|
status: string;
|
|
12
12
|
lastLoadError: string;
|
|
13
|
+
tags: UpdateAgentHubTagDto[];
|
|
14
|
+
tagsIds: number[];
|
|
15
|
+
tagsCommand: string;
|
|
13
16
|
agentTools: UpdateAgentToolDto[];
|
|
14
17
|
agentToolsIds: number[];
|
|
15
18
|
agentToolsCommand: string;
|