@solidxai/core 0.1.19 → 0.1.20-beta.1
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 +16 -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/create-email-template.dto.d.ts +2 -0
- package/dist/dtos/create-email-template.dto.d.ts.map +1 -1
- package/dist/dtos/create-email-template.dto.js +13 -1
- package/dist/dtos/create-email-template.dto.js.map +1 -1
- package/dist/dtos/create-sms-template.dto.d.ts +2 -0
- package/dist/dtos/create-sms-template.dto.d.ts.map +1 -1
- package/dist/dtos/create-sms-template.dto.js +13 -1
- package/dist/dtos/create-sms-template.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-human-request.entity.d.ts.map +1 -1
- package/dist/entities/agent-human-request.entity.js +2 -1
- package/dist/entities/agent-human-request.entity.js.map +1 -1
- package/dist/entities/agent-job.entity.d.ts.map +1 -1
- package/dist/entities/agent-job.entity.js +5 -4
- package/dist/entities/agent-job.entity.js.map +1 -1
- package/dist/entities/agent-process.entity.d.ts.map +1 -1
- package/dist/entities/agent-process.entity.js +4 -3
- package/dist/entities/agent-process.entity.js.map +1 -1
- 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-session.entity.d.ts.map +1 -1
- package/dist/entities/agent-session.entity.js +4 -3
- package/dist/entities/agent-session.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-skill.entity.d.ts.map +1 -1
- package/dist/entities/agent-skill.entity.js +2 -1
- package/dist/entities/agent-skill.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/entities/agent-tool.entity.d.ts.map +1 -1
- package/dist/entities/agent-tool.entity.js +2 -1
- package/dist/entities/agent-tool.entity.js.map +1 -1
- package/dist/entities/email-template.entity.d.ts +2 -0
- package/dist/entities/email-template.entity.d.ts.map +1 -1
- package/dist/entities/email-template.entity.js +8 -1
- package/dist/entities/email-template.entity.js.map +1 -1
- package/dist/entities/secret.entity.js +1 -1
- package/dist/entities/secret.entity.js.map +1 -1
- package/dist/entities/sms-template.entity.d.ts +2 -0
- package/dist/entities/sms-template.entity.d.ts.map +1 -1
- package/dist/entities/sms-template.entity.js +8 -1
- package/dist/entities/sms-template.entity.js.map +1 -1
- package/dist/helpers/typeorm-db-helper.d.ts +1 -0
- package/dist/helpers/typeorm-db-helper.d.ts.map +1 -1
- package/dist/helpers/typeorm-db-helper.js +30 -0
- package/dist/helpers/typeorm-db-helper.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/module-metadata-seeder.service.d.ts.map +1 -1
- package/dist/seeders/module-metadata-seeder.service.js +2 -0
- package/dist/seeders/module-metadata-seeder.service.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +408 -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/create-email-template.dto.ts +11 -1
- package/src/dtos/create-sms-template.dto.ts +11 -1
- 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-human-request.entity.ts +2 -1
- package/src/entities/agent-job.entity.ts +5 -4
- package/src/entities/agent-process.entity.ts +4 -3
- package/src/entities/agent-registry.entity.ts +6 -1
- package/src/entities/agent-session.entity.ts +4 -3
- package/src/entities/agent-skill-registry.entity.ts +5 -3
- package/src/entities/agent-skill.entity.ts +2 -1
- package/src/entities/agent-tool-registry.entity.ts +6 -4
- package/src/entities/agent-tool.entity.ts +2 -1
- package/src/entities/email-template.entity.ts +8 -2
- package/src/entities/secret.entity.ts +1 -1
- package/src/entities/sms-template.entity.ts +8 -2
- package/src/helpers/typeorm-db-helper.ts +34 -0
- package/src/index.ts +6 -0
- package/src/repository/agent-hub-tag.repository.ts +19 -0
- package/src/seeders/module-metadata-seeder.service.ts +6 -0
- package/src/seeders/seed-data/solid-core-metadata.json +408 -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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.20-beta.1] - 2026-10-08
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- enhance boolean column type handling in entities and update rel… (#186)
|
|
8
|
+
- add module relation to email and SMS templates; update DTOs and seed data
|
|
9
|
+
|
|
10
|
+
## [0.1.20-beta.0] - 2026-10-08
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- add Agent Hub Tag functionality
|
|
15
|
+
- refactor agent tool lifecycle environment handling and add PostgreSQL URL generation
|
|
16
|
+
- enhance agent tool lifecycle preference handling and validation
|
|
17
|
+
- add checkTool method and lifecycle script for agent tools; enhance SecretService with findAvailableKeys
|
|
18
|
+
|
|
3
19
|
## [0.1.19] - 2026-10-08
|
|
4
20
|
|
|
5
21
|
### Added
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CreateAgentHubTagDto } from '../dtos/create-agent-hub-tag.dto';
|
|
2
|
+
import { UpdateAgentHubTagDto } from '../dtos/update-agent-hub-tag.dto';
|
|
3
|
+
import { AgentHubTagService } from '../services/agent-hub-tag.service';
|
|
4
|
+
export declare class AgentHubTagController {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: AgentHubTagService);
|
|
7
|
+
create(createDto: CreateAgentHubTagDto, files: Array<Express.Multer.File>): Promise<import("..").AgentHubTag>;
|
|
8
|
+
insertMany(createDtos: CreateAgentHubTagDto[], filesArray?: Express.Multer.File[][]): Promise<import("..").AgentHubTag[]>;
|
|
9
|
+
update(id: number, updateDto: UpdateAgentHubTagDto, files: Array<Express.Multer.File>): Promise<import("..").AgentHubTag>;
|
|
10
|
+
partialUpdate(id: number, updateDto: UpdateAgentHubTagDto, files: Array<Express.Multer.File>): Promise<import("..").AgentHubTag>;
|
|
11
|
+
recoverMany(ids: number[]): Promise<{
|
|
12
|
+
message: string;
|
|
13
|
+
recoveredIds: number[];
|
|
14
|
+
}>;
|
|
15
|
+
recover(id: number): Promise<{
|
|
16
|
+
message: string;
|
|
17
|
+
data: import("..").AgentHubTag;
|
|
18
|
+
}>;
|
|
19
|
+
findMany(query: any): Promise<any>;
|
|
20
|
+
findOne(id: string, query: any): Promise<import("..").AgentHubTag>;
|
|
21
|
+
deleteMany(ids: number[]): Promise<any>;
|
|
22
|
+
delete(id: number): Promise<import("..").AgentHubTag[]>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=agent-hub-tag.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-hub-tag.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/agent-hub-tag.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,qBAEa,qBAAqB;IACpB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,kBAAkB;IAKxD,MAAM,CAAS,SAAS,EAAE,oBAAoB,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOlG,UAAU,CAAS,UAAU,EAAE,oBAAoB,EAAE,EAAmB,UAAU,GAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,EAAO;IAOhH,MAAM,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,oBAAoB,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAO3H,aAAa,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,oBAAoB,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAM5H,WAAW,CAAS,GAAG,EAAE,MAAM,EAAE;;;;IAMjC,OAAO,CAAc,EAAE,EAAE,MAAM;;;;IAe/B,QAAQ,CAAU,KAAK,EAAE,GAAG;IAM5B,OAAO,CAAc,EAAE,EAAE,MAAM,EAAW,KAAK,EAAE,GAAG;IAMpD,UAAU,CAAS,GAAG,EAAE,MAAM,EAAE;IAMhC,MAAM,CAAc,EAAE,EAAE,MAAM;CAGrC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AgentHubTagController = void 0;
|
|
16
|
+
const openapi = require("@nestjs/swagger");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const platform_express_1 = require("@nestjs/platform-express");
|
|
19
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
20
|
+
const create_agent_hub_tag_dto_1 = require("../dtos/create-agent-hub-tag.dto");
|
|
21
|
+
const update_agent_hub_tag_dto_1 = require("../dtos/update-agent-hub-tag.dto");
|
|
22
|
+
const show_soft_deleted_enum_1 = require("../enums/show-soft-deleted.enum");
|
|
23
|
+
const agent_hub_tag_service_1 = require("../services/agent-hub-tag.service");
|
|
24
|
+
let AgentHubTagController = class AgentHubTagController {
|
|
25
|
+
constructor(service) {
|
|
26
|
+
this.service = service;
|
|
27
|
+
}
|
|
28
|
+
create(createDto, files) {
|
|
29
|
+
return this.service.create(createDto, files);
|
|
30
|
+
}
|
|
31
|
+
insertMany(createDtos, filesArray = []) {
|
|
32
|
+
return this.service.insertMany(createDtos, filesArray);
|
|
33
|
+
}
|
|
34
|
+
update(id, updateDto, files) {
|
|
35
|
+
return this.service.update(id, updateDto, files);
|
|
36
|
+
}
|
|
37
|
+
partialUpdate(id, updateDto, files) {
|
|
38
|
+
return this.service.update(id, updateDto, files, true);
|
|
39
|
+
}
|
|
40
|
+
async recoverMany(ids) {
|
|
41
|
+
return this.service.recoverMany(ids);
|
|
42
|
+
}
|
|
43
|
+
async recover(id) {
|
|
44
|
+
return this.service.recover(id);
|
|
45
|
+
}
|
|
46
|
+
async findMany(query) {
|
|
47
|
+
return this.service.find(query);
|
|
48
|
+
}
|
|
49
|
+
async findOne(id, query) {
|
|
50
|
+
return this.service.findOne(+id, query);
|
|
51
|
+
}
|
|
52
|
+
async deleteMany(ids) {
|
|
53
|
+
return this.service.deleteMany(ids);
|
|
54
|
+
}
|
|
55
|
+
async delete(id) {
|
|
56
|
+
return this.service.delete(id);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
exports.AgentHubTagController = AgentHubTagController;
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiBearerAuth)('jwt'),
|
|
62
|
+
(0, common_1.Post)(),
|
|
63
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
64
|
+
openapi.ApiResponse({ status: 201, type: require("../entities/agent-hub-tag.entity").AgentHubTag }),
|
|
65
|
+
__param(0, (0, common_1.Body)()),
|
|
66
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
67
|
+
__metadata("design:type", Function),
|
|
68
|
+
__metadata("design:paramtypes", [create_agent_hub_tag_dto_1.CreateAgentHubTagDto, Array]),
|
|
69
|
+
__metadata("design:returntype", void 0)
|
|
70
|
+
], AgentHubTagController.prototype, "create", null);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiBearerAuth)('jwt'),
|
|
73
|
+
(0, common_1.Post)('/bulk'),
|
|
74
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
75
|
+
openapi.ApiResponse({ status: 201, type: [require("../entities/agent-hub-tag.entity").AgentHubTag] }),
|
|
76
|
+
__param(0, (0, common_1.Body)()),
|
|
77
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
78
|
+
__metadata("design:type", Function),
|
|
79
|
+
__metadata("design:paramtypes", [Array, Array]),
|
|
80
|
+
__metadata("design:returntype", void 0)
|
|
81
|
+
], AgentHubTagController.prototype, "insertMany", null);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, swagger_1.ApiBearerAuth)('jwt'),
|
|
84
|
+
(0, common_1.Put)(':id'),
|
|
85
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
86
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/agent-hub-tag.entity").AgentHubTag }),
|
|
87
|
+
__param(0, (0, common_1.Param)('id')),
|
|
88
|
+
__param(1, (0, common_1.Body)()),
|
|
89
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
90
|
+
__metadata("design:type", Function),
|
|
91
|
+
__metadata("design:paramtypes", [Number, update_agent_hub_tag_dto_1.UpdateAgentHubTagDto, Array]),
|
|
92
|
+
__metadata("design:returntype", void 0)
|
|
93
|
+
], AgentHubTagController.prototype, "update", null);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, swagger_1.ApiBearerAuth)('jwt'),
|
|
96
|
+
(0, common_1.Patch)(':id'),
|
|
97
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
98
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/agent-hub-tag.entity").AgentHubTag }),
|
|
99
|
+
__param(0, (0, common_1.Param)('id')),
|
|
100
|
+
__param(1, (0, common_1.Body)()),
|
|
101
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
102
|
+
__metadata("design:type", Function),
|
|
103
|
+
__metadata("design:paramtypes", [Number, update_agent_hub_tag_dto_1.UpdateAgentHubTagDto, Array]),
|
|
104
|
+
__metadata("design:returntype", void 0)
|
|
105
|
+
], AgentHubTagController.prototype, "partialUpdate", null);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, swagger_1.ApiBearerAuth)('jwt'),
|
|
108
|
+
(0, common_1.Post)('/bulk-recover'),
|
|
109
|
+
openapi.ApiResponse({ status: 201 }),
|
|
110
|
+
__param(0, (0, common_1.Body)()),
|
|
111
|
+
__metadata("design:type", Function),
|
|
112
|
+
__metadata("design:paramtypes", [Array]),
|
|
113
|
+
__metadata("design:returntype", Promise)
|
|
114
|
+
], AgentHubTagController.prototype, "recoverMany", null);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, swagger_1.ApiBearerAuth)('jwt'),
|
|
117
|
+
(0, common_1.Get)('/recover/:id'),
|
|
118
|
+
openapi.ApiResponse({ status: 200 }),
|
|
119
|
+
__param(0, (0, common_1.Param)('id')),
|
|
120
|
+
__metadata("design:type", Function),
|
|
121
|
+
__metadata("design:paramtypes", [Number]),
|
|
122
|
+
__metadata("design:returntype", Promise)
|
|
123
|
+
], AgentHubTagController.prototype, "recover", null);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, swagger_1.ApiBearerAuth)('jwt'),
|
|
126
|
+
(0, swagger_1.ApiQuery)({ name: 'showSoftDeleted', required: false, enum: show_soft_deleted_enum_1.ShowSoftDeleted }),
|
|
127
|
+
(0, swagger_1.ApiQuery)({ name: 'limit', required: false, type: Number }),
|
|
128
|
+
(0, swagger_1.ApiQuery)({ name: 'offset', required: false, type: Number }),
|
|
129
|
+
(0, swagger_1.ApiQuery)({ name: 'fields', required: false, type: Array }),
|
|
130
|
+
(0, swagger_1.ApiQuery)({ name: 'sort', required: false, type: Array }),
|
|
131
|
+
(0, swagger_1.ApiQuery)({ name: 'groupBy', required: false, type: Array }),
|
|
132
|
+
(0, swagger_1.ApiQuery)({ name: 'populate', required: false, type: Array }),
|
|
133
|
+
(0, swagger_1.ApiQuery)({ name: 'populateMedia', required: false, type: Array }),
|
|
134
|
+
(0, swagger_1.ApiQuery)({ name: 'filters', required: false, type: Array }),
|
|
135
|
+
(0, common_1.Get)(),
|
|
136
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
137
|
+
__param(0, (0, common_1.Query)()),
|
|
138
|
+
__metadata("design:type", Function),
|
|
139
|
+
__metadata("design:paramtypes", [Object]),
|
|
140
|
+
__metadata("design:returntype", Promise)
|
|
141
|
+
], AgentHubTagController.prototype, "findMany", null);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, swagger_1.ApiBearerAuth)('jwt'),
|
|
144
|
+
(0, common_1.Get)(':id'),
|
|
145
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/agent-hub-tag.entity").AgentHubTag }),
|
|
146
|
+
__param(0, (0, common_1.Param)('id')),
|
|
147
|
+
__param(1, (0, common_1.Query)()),
|
|
148
|
+
__metadata("design:type", Function),
|
|
149
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
150
|
+
__metadata("design:returntype", Promise)
|
|
151
|
+
], AgentHubTagController.prototype, "findOne", null);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, swagger_1.ApiBearerAuth)('jwt'),
|
|
154
|
+
(0, common_1.Delete)('/bulk'),
|
|
155
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
156
|
+
__param(0, (0, common_1.Body)()),
|
|
157
|
+
__metadata("design:type", Function),
|
|
158
|
+
__metadata("design:paramtypes", [Array]),
|
|
159
|
+
__metadata("design:returntype", Promise)
|
|
160
|
+
], AgentHubTagController.prototype, "deleteMany", null);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, swagger_1.ApiBearerAuth)('jwt'),
|
|
163
|
+
(0, common_1.Delete)(':id'),
|
|
164
|
+
openapi.ApiResponse({ status: 200, type: [require("../entities/agent-hub-tag.entity").AgentHubTag] }),
|
|
165
|
+
__param(0, (0, common_1.Param)('id')),
|
|
166
|
+
__metadata("design:type", Function),
|
|
167
|
+
__metadata("design:paramtypes", [Number]),
|
|
168
|
+
__metadata("design:returntype", Promise)
|
|
169
|
+
], AgentHubTagController.prototype, "delete", null);
|
|
170
|
+
exports.AgentHubTagController = AgentHubTagController = __decorate([
|
|
171
|
+
(0, swagger_1.ApiTags)('Agent Hub'),
|
|
172
|
+
(0, common_1.Controller)('agent-hub-tag'),
|
|
173
|
+
__metadata("design:paramtypes", [agent_hub_tag_service_1.AgentHubTagService])
|
|
174
|
+
], AgentHubTagController);
|
|
175
|
+
//# sourceMappingURL=agent-hub-tag.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-hub-tag.controller.js","sourceRoot":"","sources":["../../src/controllers/agent-hub-tag.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA+H;AAC/H,+DAA+D;AAC/D,6CAAmE;AACnE,+EAAwE;AACxE,+EAAwE;AACxE,4EAAkE;AAClE,6EAAuE;AAIhE,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YAA6B,OAA2B;QAA3B,YAAO,GAAP,OAAO,CAAoB;IAAG,CAAC;IAK5D,MAAM,CAAS,SAA+B,EAAmB,KAAiC;QAChG,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;IAKD,UAAU,CAAS,UAAkC,EAAmB,aAAsC,EAAE;QAC9G,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACzD,CAAC;IAKD,MAAM,CAAc,EAAU,EAAU,SAA+B,EAAmB,KAAiC;QACzH,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;IAKD,aAAa,CAAc,EAAU,EAAU,SAA+B,EAAmB,KAAiC;QAChI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAIK,AAAN,KAAK,CAAC,WAAW,CAAS,GAAa;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAIK,AAAN,KAAK,CAAC,OAAO,CAAc,EAAU;QACnC,OAAO,IAAI,CAAC,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';\nimport { AnyFilesInterceptor } from '@nestjs/platform-express';\nimport { ApiBearerAuth, ApiQuery, ApiTags } from '@nestjs/swagger';\nimport { CreateAgentHubTagDto } from '../dtos/create-agent-hub-tag.dto';\nimport { UpdateAgentHubTagDto } from '../dtos/update-agent-hub-tag.dto';\nimport { ShowSoftDeleted } from '../enums/show-soft-deleted.enum';\nimport { AgentHubTagService } from '../services/agent-hub-tag.service';\n\n@ApiTags('Agent Hub')\n@Controller('agent-hub-tag')\nexport class AgentHubTagController {\n constructor(private readonly service: AgentHubTagService) {}\n\n @ApiBearerAuth('jwt')\n @Post()\n @UseInterceptors(AnyFilesInterceptor())\n create(@Body() createDto: CreateAgentHubTagDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.create(createDto, files);\n }\n\n @ApiBearerAuth('jwt')\n @Post('/bulk')\n @UseInterceptors(AnyFilesInterceptor())\n insertMany(@Body() createDtos: CreateAgentHubTagDto[], @UploadedFiles() filesArray: Express.Multer.File[][] = []) {\n return this.service.insertMany(createDtos, filesArray);\n }\n\n @ApiBearerAuth('jwt')\n @Put(':id')\n @UseInterceptors(AnyFilesInterceptor())\n update(@Param('id') id: number, @Body() updateDto: UpdateAgentHubTagDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.update(id, updateDto, files);\n }\n\n @ApiBearerAuth('jwt')\n @Patch(':id')\n @UseInterceptors(AnyFilesInterceptor())\n partialUpdate(@Param('id') id: number, @Body() updateDto: UpdateAgentHubTagDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.update(id, updateDto, files, true);\n }\n\n @ApiBearerAuth('jwt')\n @Post('/bulk-recover')\n async recoverMany(@Body() ids: number[]) {\n return this.service.recoverMany(ids);\n }\n\n @ApiBearerAuth('jwt')\n @Get('/recover/:id')\n async recover(@Param('id') id: number) {\n return this.service.recover(id);\n }\n\n @ApiBearerAuth('jwt')\n @ApiQuery({ name: 'showSoftDeleted', required: false, enum: ShowSoftDeleted })\n @ApiQuery({ name: 'limit', required: false, type: Number })\n @ApiQuery({ name: 'offset', required: false, type: Number })\n @ApiQuery({ name: 'fields', required: false, type: Array })\n @ApiQuery({ name: 'sort', required: false, type: Array })\n @ApiQuery({ name: 'groupBy', required: false, type: Array })\n @ApiQuery({ name: 'populate', required: false, type: Array })\n @ApiQuery({ name: 'populateMedia', required: false, type: Array })\n @ApiQuery({ name: 'filters', required: false, type: Array })\n @Get()\n async findMany(@Query() query: any) {\n return this.service.find(query);\n }\n\n @ApiBearerAuth('jwt')\n @Get(':id')\n async findOne(@Param('id') id: string, @Query() query: any) {\n return this.service.findOne(+id, query);\n }\n\n @ApiBearerAuth('jwt')\n @Delete('/bulk')\n async deleteMany(@Body() ids: number[]) {\n return this.service.deleteMany(ids);\n }\n\n @ApiBearerAuth('jwt')\n @Delete(':id')\n async delete(@Param('id') id: number) {\n return this.service.delete(id);\n }\n}\n"]}
|
|
@@ -8,6 +8,24 @@ export declare class AgentToolRegistryController {
|
|
|
8
8
|
insertMany(createDtos: CreateAgentToolRegistryDto[], filesArray?: Express.Multer.File[][]): Promise<import("..").AgentToolRegistry[]>;
|
|
9
9
|
update(id: number, updateDto: UpdateAgentToolRegistryDto, files: Array<Express.Multer.File>): Promise<import("..").AgentToolRegistry>;
|
|
10
10
|
partialUpdate(id: number, updateDto: UpdateAgentToolRegistryDto, files: Array<Express.Multer.File>): Promise<import("..").AgentToolRegistry>;
|
|
11
|
+
check(id: string, body: {
|
|
12
|
+
phase?: string;
|
|
13
|
+
checksum?: string;
|
|
14
|
+
}): Promise<{
|
|
15
|
+
toolId: number;
|
|
16
|
+
checksum: string;
|
|
17
|
+
phase: string;
|
|
18
|
+
config: {
|
|
19
|
+
status: string;
|
|
20
|
+
message: string;
|
|
21
|
+
requiredSecrets: string[];
|
|
22
|
+
missingSecrets: string[];
|
|
23
|
+
};
|
|
24
|
+
init: {
|
|
25
|
+
status: string;
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
11
29
|
recoverMany(ids: number[]): Promise<{
|
|
12
30
|
message: string;
|
|
13
31
|
recoveredIds: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-tool-registry.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/agent-tool-registry.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAGpF,qBAEa,2BAA2B;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,wBAAwB;IAK9D,MAAM,CAAS,SAAS,EAAE,0BAA0B,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOxG,UAAU,CAAS,UAAU,EAAE,0BAA0B,EAAE,EAAmB,UAAU,GAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,EAAO;IAQtH,MAAM,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,0BAA0B,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOjI,aAAa,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,0BAA0B,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-tool-registry.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/agent-tool-registry.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAGpF,qBAEa,2BAA2B;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,wBAAwB;IAK9D,MAAM,CAAS,SAAS,EAAE,0BAA0B,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOxG,UAAU,CAAS,UAAU,EAAE,0BAA0B,EAAE,EAAmB,UAAU,GAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,EAAO;IAQtH,MAAM,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,0BAA0B,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOjI,aAAa,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,0BAA0B,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAMxI,KAAK,CAAc,EAAE,EAAE,MAAM,EAAU,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;IAM5E,WAAW,CAAS,GAAG,EAAE,MAAM,EAAE;;;;IAMjC,OAAO,CAAc,EAAE,EAAE,MAAM;;;;IAgB/B,QAAQ,CAAU,KAAK,EAAE,GAAG;IAM5B,OAAO,CAAc,EAAE,EAAE,MAAM,EAAW,KAAK,EAAE,GAAG;IAMpD,UAAU,CAAS,GAAG,EAAE,MAAM,EAAE;IAMhC,MAAM,CAAc,EAAE,EAAE,MAAM;CAMrC"}
|
|
@@ -37,6 +37,9 @@ let AgentToolRegistryController = class AgentToolRegistryController {
|
|
|
37
37
|
partialUpdate(id, updateDto, files) {
|
|
38
38
|
return this.service.update(id, updateDto, files, true);
|
|
39
39
|
}
|
|
40
|
+
check(id, body) {
|
|
41
|
+
return this.service.checkTool(+id, body?.phase ?? '', body?.checksum ?? '');
|
|
42
|
+
}
|
|
40
43
|
async recoverMany(ids) {
|
|
41
44
|
return this.service.recoverMany(ids);
|
|
42
45
|
}
|
|
@@ -103,6 +106,16 @@ __decorate([
|
|
|
103
106
|
__metadata("design:paramtypes", [Number, update_agent_tool_registry_dto_1.UpdateAgentToolRegistryDto, Array]),
|
|
104
107
|
__metadata("design:returntype", void 0)
|
|
105
108
|
], AgentToolRegistryController.prototype, "partialUpdate", null);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
111
|
+
(0, common_1.Post)(':id/check'),
|
|
112
|
+
openapi.ApiResponse({ status: 201 }),
|
|
113
|
+
__param(0, (0, common_1.Param)('id')),
|
|
114
|
+
__param(1, (0, common_1.Body)()),
|
|
115
|
+
__metadata("design:type", Function),
|
|
116
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
117
|
+
__metadata("design:returntype", void 0)
|
|
118
|
+
], AgentToolRegistryController.prototype, "check", null);
|
|
106
119
|
__decorate([
|
|
107
120
|
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
108
121
|
(0, common_1.Post)('/bulk-recover'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-tool-registry.controller.js","sourceRoot":"","sources":["../../src/controllers/agent-tool-registry.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA+H;AAC/H,+DAA+D;AAC/D,6CAAmE;AACnE,yFAAmF;AACnF,2FAAoF;AACpF,2FAAoF;AACpF,4EAAkE;AAI3D,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACtC,YAA6B,OAAiC;QAAjC,YAAO,GAAP,OAAO,CAA0B;IAAG,CAAC;IAKlE,MAAM,CAAS,SAAqC,EAAmB,KAAiC;QACtG,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;IAKD,UAAU,CAAS,UAAwC,EAAmB,aAAsC,EAAE;QACpH,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACzD,CAAC;IAMD,MAAM,CAAc,EAAU,EAAU,SAAqC,EAAmB,KAAiC;QAC/H,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;IAKD,aAAa,CAAc,EAAU,EAAU,SAAqC,EAAmB,KAAiC;QACtI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAIK,AAAN,KAAK,CAAC,WAAW,CAAS,GAAa;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAIK,AAAN,KAAK,CAAC,OAAO,CAAc,EAAU;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAClC,CAAC;IAcK,AAAN,KAAK,CAAC,QAAQ,CAAU,KAAU;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAIK,AAAN,KAAK,CAAC,OAAO,CAAc,EAAU,EAAW,KAAU;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IAIK,AAAN,KAAK,CAAC,UAAU,CAAS,GAAa;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;IAIK,AAAN,KAAK,CAAC,MAAM,CAAc,EAAU;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACjC,CAAC;CAIF,CAAA;
|
|
1
|
+
{"version":3,"file":"agent-tool-registry.controller.js","sourceRoot":"","sources":["../../src/controllers/agent-tool-registry.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2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;qCAEM,sDAAwB;GADnD,2BAA2B,CAsFvC","sourcesContent":["import { Controller, Post, Body, Param, UploadedFiles, UseInterceptors, Put, Get, Query, Delete, Patch } from '@nestjs/common';\nimport { AnyFilesInterceptor } from \"@nestjs/platform-express\";\nimport { ApiBearerAuth, ApiQuery, ApiTags } from '@nestjs/swagger';\nimport { AgentToolRegistryService } from '../services/agent-tool-registry.service';\nimport { CreateAgentToolRegistryDto } from '../dtos/create-agent-tool-registry.dto';\nimport { UpdateAgentToolRegistryDto } from '../dtos/update-agent-tool-registry.dto';\nimport { ShowSoftDeleted } from '../enums/show-soft-deleted.enum';\n\n@ApiTags('Agent Hub')\n@Controller('agent-tool-registry')\nexport class AgentToolRegistryController {\n constructor(private readonly service: AgentToolRegistryService) {}\n\n @ApiBearerAuth(\"jwt\")\n @Post()\n @UseInterceptors(AnyFilesInterceptor())\n create(@Body() createDto: CreateAgentToolRegistryDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.create(createDto, files);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Post('/bulk')\n @UseInterceptors(AnyFilesInterceptor())\n insertMany(@Body() createDtos: CreateAgentToolRegistryDto[], @UploadedFiles() filesArray: Express.Multer.File[][] = []) {\n return this.service.insertMany(createDtos, filesArray);\n }\n\n\n @ApiBearerAuth(\"jwt\")\n @Put(':id')\n @UseInterceptors(AnyFilesInterceptor())\n update(@Param('id') id: number, @Body() updateDto: UpdateAgentToolRegistryDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.update(id, updateDto, files);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Patch(':id')\n @UseInterceptors(AnyFilesInterceptor())\n partialUpdate(@Param('id') id: number, @Body() updateDto: UpdateAgentToolRegistryDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.update(id, updateDto, files, true);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Post(':id/check')\n check(@Param('id') id: string, @Body() body: { phase?: string; checksum?: string }) {\n return this.service.checkTool(+id, body?.phase ?? '', body?.checksum ?? '');\n }\n\n @ApiBearerAuth(\"jwt\")\n @Post('/bulk-recover')\n async recoverMany(@Body() ids: number[]) {\n return this.service.recoverMany(ids);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Get('/recover/:id')\n async recover(@Param('id') id: number) {\n return this.service.recover(id);\n }\n \n @ApiBearerAuth(\"jwt\")\n @ApiQuery({ name: 'showSoftDeleted', required: false, enum: ShowSoftDeleted })\n @ApiQuery({ name: 'limit', required: false, type: Number })\n @ApiQuery({ name: 'offset', required: false, type: Number })\n @ApiQuery({ name: 'fields', required: false, type: Array })\n @ApiQuery({ name: 'sort', required: false, type: Array }) \n @ApiQuery({ name: 'groupBy', required: false, type: Array })\n @ApiQuery({ name: 'populate', required: false, type: Array })\n @ApiQuery({ name: 'populateMedia', required: false, type: Array })\n @ApiQuery({ name: 'filters', required: false, type: Array })\n\n @Get()\n async findMany(@Query() query: any) { \n return this.service.find(query); \n }\n\n @ApiBearerAuth(\"jwt\")\n @Get(':id')\n async findOne(@Param('id') id: string, @Query() query: any) {\n return this.service.findOne(+id, query);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Delete('/bulk')\n async deleteMany(@Body() ids: number[]) {\n return this.service.deleteMany(ids);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Delete(':id')\n async delete(@Param('id') id: number) {\n return this.service.delete(id);\n }\n\n\n\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 CreateAgentHubTagDto {
|
|
5
|
+
name: string;
|
|
6
|
+
skills: UpdateAgentSkillRegistryDto[];
|
|
7
|
+
skillsIds: number[];
|
|
8
|
+
skillsCommand: string;
|
|
9
|
+
tools: UpdateAgentToolRegistryDto[];
|
|
10
|
+
toolsIds: number[];
|
|
11
|
+
toolsCommand: string;
|
|
12
|
+
agents: UpdateAgentRegistryDto[];
|
|
13
|
+
agentsIds: number[];
|
|
14
|
+
agentsCommand: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=create-agent-hub-tag.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-agent-hub-tag.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-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;IAI7B,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,98 @@
|
|
|
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.CreateAgentHubTagDto = 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 CreateAgentHubTagDto {
|
|
21
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
22
|
+
return { 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.CreateAgentHubTagDto = CreateAgentHubTagDto;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, swagger_1.ApiProperty)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateAgentHubTagDto.prototype, "name", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsArray)(),
|
|
35
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
36
|
+
(0, class_transformer_1.Type)(() => update_agent_skill_registry_dto_1.UpdateAgentSkillRegistryDto),
|
|
37
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], CreateAgentHubTagDto.prototype, "skills", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsArray)(),
|
|
43
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
44
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
45
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], CreateAgentHubTagDto.prototype, "skillsIds", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CreateAgentHubTagDto.prototype, "skillsCommand", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsArray)(),
|
|
57
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
58
|
+
(0, class_transformer_1.Type)(() => update_agent_tool_registry_dto_1.UpdateAgentToolRegistryDto),
|
|
59
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
60
|
+
__metadata("design:type", Array)
|
|
61
|
+
], CreateAgentHubTagDto.prototype, "tools", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsArray)(),
|
|
65
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
66
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
67
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
68
|
+
__metadata("design:type", Array)
|
|
69
|
+
], CreateAgentHubTagDto.prototype, "toolsIds", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
(0, class_validator_1.IsString)(),
|
|
73
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], CreateAgentHubTagDto.prototype, "toolsCommand", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
(0, class_validator_1.IsArray)(),
|
|
79
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
80
|
+
(0, class_transformer_1.Type)(() => update_agent_registry_dto_1.UpdateAgentRegistryDto),
|
|
81
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
82
|
+
__metadata("design:type", Array)
|
|
83
|
+
], CreateAgentHubTagDto.prototype, "agents", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsOptional)(),
|
|
86
|
+
(0, class_validator_1.IsArray)(),
|
|
87
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
88
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
89
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
90
|
+
__metadata("design:type", Array)
|
|
91
|
+
], CreateAgentHubTagDto.prototype, "agentsIds", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
(0, class_validator_1.IsString)(),
|
|
95
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], CreateAgentHubTagDto.prototype, "agentsCommand", void 0);
|
|
98
|
+
//# sourceMappingURL=create-agent-hub-tag.dto.js.map
|
|
@@ -0,0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,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;;sDACd;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0DACZ;AAOrB;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,kDAAsB,CAAC;IAClC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oDACA;AAOjC;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","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { IsArray, IsInt, IsNotEmpty, IsOptional, 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 CreateAgentHubTagDto {\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\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 CreateAgentRegistryDto {
|
|
9
10
|
name: string;
|
|
10
11
|
title: string;
|
|
@@ -19,6 +20,9 @@ export declare class CreateAgentRegistryDto {
|
|
|
19
20
|
turnStepLimit: number;
|
|
20
21
|
costLimit: number;
|
|
21
22
|
configVersion?: number;
|
|
23
|
+
tags: UpdateAgentHubTagDto[];
|
|
24
|
+
tagsIds: number[];
|
|
25
|
+
tagsCommand: string;
|
|
22
26
|
agentTools: UpdateAgentToolDto[];
|
|
23
27
|
agentToolsIds: number[];
|
|
24
28
|
agentToolsCommand: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-agent-registry.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-agent-registry.dto.ts"],"names":[],"mappings":"AAIA,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":"create-agent-registry.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-agent-registry.dto.ts"],"names":[],"mappings":"AAIA,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;IAI/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,CAAC;IAK/B,YAAY,EAAE,MAAM,EAAE,CAAC;IAKvB,gBAAgB,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -22,6 +22,7 @@ const update_agent_secret_dto_1 = require("./update-agent-secret.dto");
|
|
|
22
22
|
const update_agent_process_dto_1 = require("./update-agent-process.dto");
|
|
23
23
|
const update_agent_session_dto_1 = require("./update-agent-session.dto");
|
|
24
24
|
const update_agent_job_dto_1 = require("./update-agent-job.dto");
|
|
25
|
+
const update_agent_hub_tag_dto_1 = require("./update-agent-hub-tag.dto");
|
|
25
26
|
class CreateAgentRegistryDto {
|
|
26
27
|
constructor() {
|
|
27
28
|
this.requiredInputs = "[]";
|
|
@@ -29,7 +30,7 @@ class CreateAgentRegistryDto {
|
|
|
29
30
|
this.costLimit = 3;
|
|
30
31
|
}
|
|
31
32
|
static _OPENAPI_METADATA_FACTORY() {
|
|
32
|
-
return { 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, default: "[]" }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, status: { required: true, type: () => String, default: "draft" }, stepLimit: { required: true, type: () => Number }, turnStepLimit: { required: true, type: () => Number }, costLimit: { required: true, type: () => Number, default: 3 }, 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 } };
|
|
33
|
+
return { 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, default: "[]" }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, status: { required: true, type: () => String, default: "draft" }, stepLimit: { required: true, type: () => Number }, turnStepLimit: { required: true, type: () => Number }, costLimit: { required: true, type: () => Number, default: 3 }, 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 } };
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
exports.CreateAgentRegistryDto = CreateAgentRegistryDto;
|
|
@@ -111,6 +112,28 @@ __decorate([
|
|
|
111
112
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
112
113
|
__metadata("design:type", Number)
|
|
113
114
|
], CreateAgentRegistryDto.prototype, "configVersion", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, class_validator_2.IsOptional)(),
|
|
117
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
118
|
+
(0, class_validator_2.IsArray)(),
|
|
119
|
+
(0, class_validator_2.ValidateNested)({ each: true }),
|
|
120
|
+
(0, class_transformer_1.Type)(() => update_agent_hub_tag_dto_1.UpdateAgentHubTagDto),
|
|
121
|
+
__metadata("design:type", Array)
|
|
122
|
+
], CreateAgentRegistryDto.prototype, "tags", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, class_validator_2.IsOptional)(),
|
|
125
|
+
(0, class_validator_2.IsArray)(),
|
|
126
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
127
|
+
(0, class_validator_2.IsInt)({ each: true }),
|
|
128
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
129
|
+
__metadata("design:type", Array)
|
|
130
|
+
], CreateAgentRegistryDto.prototype, "tagsIds", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, class_validator_1.IsString)(),
|
|
133
|
+
(0, class_validator_2.IsOptional)(),
|
|
134
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
135
|
+
__metadata("design:type", String)
|
|
136
|
+
], CreateAgentRegistryDto.prototype, "tagsCommand", void 0);
|
|
114
137
|
__decorate([
|
|
115
138
|
(0, class_validator_2.IsOptional)(),
|
|
116
139
|
(0, swagger_1.ApiProperty)(),
|
|
@@ -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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BAAI,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 } 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;
|