@samanhappy/mcphub 0.10.6 → 0.11.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/README.fr.md +36 -152
- package/README.md +34 -255
- package/README.zh.md +33 -212
- package/dist/config/DaoConfigService.js +3 -3
- package/dist/config/DaoConfigService.js.map +1 -1
- package/dist/controllers/authController.js +2 -2
- package/dist/controllers/authController.js.map +1 -1
- package/dist/controllers/groupController.js +24 -24
- package/dist/controllers/groupController.js.map +1 -1
- package/dist/controllers/openApiController.js +1 -1
- package/dist/controllers/openApiController.js.map +1 -1
- package/dist/controllers/serverController.js +95 -61
- package/dist/controllers/serverController.js.map +1 -1
- package/dist/controllers/userController.js +22 -21
- package/dist/controllers/userController.js.map +1 -1
- package/dist/dao/DaoFactory.js +19 -0
- package/dist/dao/DaoFactory.js.map +1 -1
- package/dist/dao/DatabaseDaoFactory.js +68 -0
- package/dist/dao/DatabaseDaoFactory.js.map +1 -0
- package/dist/dao/GroupDaoDbImpl.js +131 -0
- package/dist/dao/GroupDaoDbImpl.js.map +1 -0
- package/dist/dao/ServerDaoDbImpl.js +109 -0
- package/dist/dao/ServerDaoDbImpl.js.map +1 -0
- package/dist/dao/SystemConfigDaoDbImpl.js +56 -0
- package/dist/dao/SystemConfigDaoDbImpl.js.map +1 -0
- package/dist/dao/UserConfigDaoDbImpl.js +61 -0
- package/dist/dao/UserConfigDaoDbImpl.js.map +1 -0
- package/dist/dao/UserDaoDbImpl.js +90 -0
- package/dist/dao/UserDaoDbImpl.js.map +1 -0
- package/dist/dao/index.js +7 -0
- package/dist/dao/index.js.map +1 -1
- package/dist/db/entities/Group.js +49 -0
- package/dist/db/entities/Group.js.map +1 -0
- package/dist/db/entities/Server.js +93 -0
- package/dist/db/entities/Server.js.map +1 -0
- package/dist/db/entities/SystemConfig.js +66 -0
- package/dist/db/entities/SystemConfig.js.map +1 -0
- package/dist/db/entities/User.js +45 -0
- package/dist/db/entities/User.js.map +1 -0
- package/dist/db/entities/UserConfig.js +45 -0
- package/dist/db/entities/UserConfig.js.map +1 -0
- package/dist/db/entities/index.js +7 -2
- package/dist/db/entities/index.js.map +1 -1
- package/dist/db/repositories/GroupRepository.js +81 -0
- package/dist/db/repositories/GroupRepository.js.map +1 -0
- package/dist/db/repositories/ServerRepository.js +80 -0
- package/dist/db/repositories/ServerRepository.js.map +1 -0
- package/dist/db/repositories/SystemConfigRepository.js +64 -0
- package/dist/db/repositories/SystemConfigRepository.js.map +1 -0
- package/dist/db/repositories/UserConfigRepository.js +69 -0
- package/dist/db/repositories/UserConfigRepository.js.map +1 -0
- package/dist/db/repositories/UserRepository.js +68 -0
- package/dist/db/repositories/UserRepository.js.map +1 -0
- package/dist/db/repositories/index.js +6 -1
- package/dist/db/repositories/index.js.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/middlewares/auth.js +1 -1
- package/dist/middlewares/auth.js.map +1 -1
- package/dist/middlewares/userContext.js +1 -1
- package/dist/middlewares/userContext.js.map +1 -1
- package/dist/models/User.js +29 -48
- package/dist/models/User.js.map +1 -1
- package/dist/routes/index.js +2 -1
- package/dist/routes/index.js.map +1 -1
- package/dist/scripts/migrate-to-database.js +5 -0
- package/dist/scripts/migrate-to-database.js.map +1 -0
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/services/groupService.js +87 -113
- package/dist/services/groupService.js.map +1 -1
- package/dist/services/keepAliveService.js +58 -0
- package/dist/services/keepAliveService.js.map +1 -0
- package/dist/services/mcpOAuthProvider.js +22 -28
- package/dist/services/mcpOAuthProvider.js.map +1 -1
- package/dist/services/mcpService.js +73 -92
- package/dist/services/mcpService.js.map +1 -1
- package/dist/services/oauthServerService.js +18 -12
- package/dist/services/oauthServerService.js.map +1 -1
- package/dist/services/oauthService.js +11 -10
- package/dist/services/oauthService.js.map +1 -1
- package/dist/services/oauthSettingsStore.js +17 -12
- package/dist/services/oauthSettingsStore.js.map +1 -1
- package/dist/services/openApiGeneratorService.js +6 -7
- package/dist/services/openApiGeneratorService.js.map +1 -1
- package/dist/services/sseService.js +20 -62
- package/dist/services/sseService.js.map +1 -1
- package/dist/services/userService.js +38 -45
- package/dist/services/userService.js.map +1 -1
- package/dist/utils/migration.js +184 -0
- package/dist/utils/migration.js.map +1 -0
- package/dist/utils/oauthBearer.js +3 -3
- package/dist/utils/oauthBearer.js.map +1 -1
- package/frontend/dist/assets/index-Dno2pywv.js +251 -0
- package/frontend/dist/assets/index-Dno2pywv.js.map +1 -0
- package/frontend/dist/index.html +1 -1
- package/mcp_settings.json +23 -1
- package/package.json +1 -1
- package/frontend/dist/assets/index-DDht0WYq.js +0 -251
- package/frontend/dist/assets/index-DDht0WYq.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserConfigDaoDbImpl.js","sourceRoot":"","sources":["../../src/dao/UserConfigDaoDbImpl.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAG9B;QACE,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;QAC/C,MAAM,MAAM,GAA+B,EAAE,CAAC;QAE9C,KAAK,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YACzD,MAAM,CAAC,QAAQ,CAAC,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,GAAG,MAAM,CAAC,gBAAgB;aAC3B,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,QAAgB;QACxB,MAAM,MAAM,GAAG,MAAM,IAAI,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M,KAAK,IAAI,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,QAAgB;QAC1B,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACvC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import bcrypt from 'bcrypt';
|
|
2
|
+
import { UserRepository } from '../db/repositories/UserRepository.js';
|
|
3
|
+
/**
|
|
4
|
+
* Database-backed implementation of UserDao
|
|
5
|
+
*/
|
|
6
|
+
export class UserDaoDbImpl {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.repository = new UserRepository();
|
|
9
|
+
}
|
|
10
|
+
async findAll() {
|
|
11
|
+
const users = await this.repository.findAll();
|
|
12
|
+
return users.map((u) => ({
|
|
13
|
+
username: u.username,
|
|
14
|
+
password: u.password,
|
|
15
|
+
isAdmin: u.isAdmin,
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
async findById(username) {
|
|
19
|
+
const user = await this.repository.findByUsername(username);
|
|
20
|
+
if (!user)
|
|
21
|
+
return null;
|
|
22
|
+
return {
|
|
23
|
+
username: user.username,
|
|
24
|
+
password: user.password,
|
|
25
|
+
isAdmin: user.isAdmin,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
async findByUsername(username) {
|
|
29
|
+
return await this.findById(username);
|
|
30
|
+
}
|
|
31
|
+
async create(entity) {
|
|
32
|
+
const user = await this.repository.create({
|
|
33
|
+
username: entity.username,
|
|
34
|
+
password: entity.password,
|
|
35
|
+
isAdmin: entity.isAdmin || false,
|
|
36
|
+
});
|
|
37
|
+
return {
|
|
38
|
+
username: user.username,
|
|
39
|
+
password: user.password,
|
|
40
|
+
isAdmin: user.isAdmin,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
async createWithHashedPassword(username, password, isAdmin) {
|
|
44
|
+
const hashedPassword = await bcrypt.hash(password, 10);
|
|
45
|
+
return await this.create({ username, password: hashedPassword, isAdmin });
|
|
46
|
+
}
|
|
47
|
+
async update(username, entity) {
|
|
48
|
+
const user = await this.repository.update(username, {
|
|
49
|
+
password: entity.password,
|
|
50
|
+
isAdmin: entity.isAdmin,
|
|
51
|
+
});
|
|
52
|
+
if (!user)
|
|
53
|
+
return null;
|
|
54
|
+
return {
|
|
55
|
+
username: user.username,
|
|
56
|
+
password: user.password,
|
|
57
|
+
isAdmin: user.isAdmin,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
async delete(username) {
|
|
61
|
+
return await this.repository.delete(username);
|
|
62
|
+
}
|
|
63
|
+
async exists(username) {
|
|
64
|
+
return await this.repository.exists(username);
|
|
65
|
+
}
|
|
66
|
+
async count() {
|
|
67
|
+
return await this.repository.count();
|
|
68
|
+
}
|
|
69
|
+
async validateCredentials(username, password) {
|
|
70
|
+
const user = await this.findByUsername(username);
|
|
71
|
+
if (!user) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
return await bcrypt.compare(password, user.password);
|
|
75
|
+
}
|
|
76
|
+
async updatePassword(username, newPassword) {
|
|
77
|
+
const hashedPassword = await bcrypt.hash(newPassword, 10);
|
|
78
|
+
const result = await this.update(username, { password: hashedPassword });
|
|
79
|
+
return result !== null;
|
|
80
|
+
}
|
|
81
|
+
async findAdmins() {
|
|
82
|
+
const users = await this.repository.findAdmins();
|
|
83
|
+
return users.map((u) => ({
|
|
84
|
+
username: u.username,
|
|
85
|
+
password: u.password,
|
|
86
|
+
isAdmin: u.isAdmin,
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=UserDaoDbImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDaoDbImpl.js","sourceRoot":"","sources":["../../src/dao/UserDaoDbImpl.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAG5B,OA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AC,IAAI,EAAE,CAAC;YACV,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvD,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,QAAgB,EAAE,WAAmB;QACxD,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QAC1D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC;QACzE,OAAO,MAAM,KAAK,IAAI,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,UAAU;QACd,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QACjD,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACvB,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,OAAO,EAAE,CAAC,CAAC,OAAO;SACnB,CAAC,CAAC,CAAC;IACN,CAAC;CACF"}
|
package/dist/dao/index.js
CHANGED
|
@@ -6,6 +6,13 @@ export * from './ServerDao.js';
|
|
|
6
6
|
export * from './GroupDao.js';
|
|
7
7
|
export * from './SystemConfigDao.js';
|
|
8
8
|
export * from './UserConfigDao.js';
|
|
9
|
+
// Export database implementations
|
|
10
|
+
export * from './UserDaoDbImpl.js';
|
|
11
|
+
export * from './ServerDaoDbImpl.js';
|
|
12
|
+
export * from './GroupDaoDbImpl.js';
|
|
13
|
+
export * from './SystemConfigDaoDbImpl.js';
|
|
14
|
+
export * from './UserConfigDaoDbImpl.js';
|
|
9
15
|
// Export the DAO factory and convenience functions
|
|
10
16
|
export * from './DaoFactory.js';
|
|
17
|
+
export * from './DatabaseDaoFactory.js';
|
|
11
18
|
//# sourceMappingURL=index.js.map
|
package/dist/dao/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dao/index.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,mDAAmD;AACnD,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dao/index.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,kCAAkC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AAEzC,mDAAmD;AACnD,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, } from 'typeorm';
|
|
11
|
+
/**
|
|
12
|
+
* Group entity for database storage
|
|
13
|
+
*/
|
|
14
|
+
let Group = class Group {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
PrimaryGeneratedColumn('uuid'),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], Group.prototype, "id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
Column({ type: 'varchar', length: 255 }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], Group.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
Column({ type: 'text', nullable: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], Group.prototype, "description", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
Column({ type: 'simple-json' }),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], Group.prototype, "servers", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Column({ type: 'varchar', length: 255, nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Group.prototype, "owner", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamp' }),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], Group.prototype, "createdAt", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamp' }),
|
|
42
|
+
__metadata("design:type", Date)
|
|
43
|
+
], Group.prototype, "updatedAt", void 0);
|
|
44
|
+
Group = __decorate([
|
|
45
|
+
Entity({ name: 'groups' })
|
|
46
|
+
], Group);
|
|
47
|
+
export { Group };
|
|
48
|
+
export default Group;
|
|
49
|
+
//# sourceMappingURL=Group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../src/db/entities/Group.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AAEI,IAAM,KAAK,GAAX,MAAM,KAAK;CAqBjB,CAAA;AAnBC;IADC,sBAAsB,CAAC,MAAM,CAAC;;iCACpB;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mCAC5B;AAGb;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACpB;AAGrB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACvB,KAAK;sCAAsD;AAGpE;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC1C;AAGf;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACjD,IAAI;wCAAC;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACjD,IAAI;wCAAC;AApBL,KAAK;IADjB,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;GACd,KAAK,CAqBjB;;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, } from 'typeorm';
|
|
11
|
+
/**
|
|
12
|
+
* Server configuration entity for database storage
|
|
13
|
+
*/
|
|
14
|
+
let Server = class Server {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
PrimaryGeneratedColumn('uuid'),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], Server.prototype, "id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
Column({ type: 'varchar', length: 255, unique: true }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], Server.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
Column({ type: 'varchar', length: 50, nullable: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], Server.prototype, "type", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
Column({ type: 'text', nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Server.prototype, "url", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Column({ type: 'varchar', length: 500, nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Server.prototype, "command", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], Server.prototype, "args", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], Server.prototype, "env", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], Server.prototype, "headers", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
Column({ type: 'boolean', default: true }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], Server.prototype, "enabled", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
Column({ type: 'varchar', length: 255, nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], Server.prototype, "owner", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
Column({ type: 'boolean', default: false }),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], Server.prototype, "enableKeepAlive", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
Column({ type: 'int', nullable: true }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], Server.prototype, "keepAliveInterval", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], Server.prototype, "tools", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], Server.prototype, "prompts", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], Server.prototype, "options", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], Server.prototype, "oauth", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamp' }),
|
|
82
|
+
__metadata("design:type", Date)
|
|
83
|
+
], Server.prototype, "createdAt", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamp' }),
|
|
86
|
+
__metadata("design:type", Date)
|
|
87
|
+
], Server.prototype, "updatedAt", void 0);
|
|
88
|
+
Server = __decorate([
|
|
89
|
+
Entity({ name: 'servers' })
|
|
90
|
+
], Server);
|
|
91
|
+
export { Server };
|
|
92
|
+
export default Server;
|
|
93
|
+
//# sourceMappingURL=Server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Server.js","sourceRoot":"","sources":["../../../src/db/entities/Server.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AAEI,IAAM,MAAM,GAAZ,MAAM,MAAM;CAsDlB,CAAA;AApDC;IADC,sBAAsB,CAAC,MAAM,CAAC;;kCACpB;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;oCAC1C;AAGb;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC1C;AAGd;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCAC5B;AAGb;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACxC;AAGjB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC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AAS,EAAE,CAAC;GACf,MAAM,CAsDlB;;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, Column, PrimaryColumn, CreateDateColumn, UpdateDateColumn } from 'typeorm';
|
|
11
|
+
/**
|
|
12
|
+
* System configuration entity for database storage
|
|
13
|
+
* Using singleton pattern - only one record with id = 'default'
|
|
14
|
+
*/
|
|
15
|
+
let SystemConfig = class SystemConfig {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
PrimaryColumn({ type: 'varchar', length: 50, default: 'default' }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], SystemConfig.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
23
|
+
__metadata("design:type", Object)
|
|
24
|
+
], SystemConfig.prototype, "routing", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], SystemConfig.prototype, "install", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], SystemConfig.prototype, "smartRouting", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], SystemConfig.prototype, "mcpRouter", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
Column({ type: 'varchar', length: 10, nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], SystemConfig.prototype, "nameSeparator", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], SystemConfig.prototype, "oauth", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], SystemConfig.prototype, "oauthServer", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
Column({ type: 'boolean', nullable: true }),
|
|
51
|
+
__metadata("design:type", Boolean)
|
|
52
|
+
], SystemConfig.prototype, "enableSessionRebuild", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamp' }),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], SystemConfig.prototype, "createdAt", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamp' }),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], SystemConfig.prototype, "updatedAt", void 0);
|
|
61
|
+
SystemConfig = __decorate([
|
|
62
|
+
Entity({ name: 'system_config' })
|
|
63
|
+
], SystemConfig);
|
|
64
|
+
export { SystemConfig };
|
|
65
|
+
export default SystemConfig;
|
|
66
|
+
//# sourceMappingURL=SystemConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemConfig.js","sourceRoot":"","sources":["../../../src/db/entities/SystemConfig.ts"],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AY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACjD,IAAI;+CAAC;AAhCL,YAAY;IADxB,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;GACrB,YAAY,CAiCxB;;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, } from 'typeorm';
|
|
11
|
+
/**
|
|
12
|
+
* User entity for database storage
|
|
13
|
+
*/
|
|
14
|
+
let User = class User {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
PrimaryGeneratedColumn('uuid'),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], User.prototype, "id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
Column({ type: 'varchar', length: 255, unique: true }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], User.prototype, "username", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
Column({ type: 'varchar', length: 255 }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], User.prototype, "password", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
Column({ type: 'boolean', default: false }),
|
|
30
|
+
__metadata("design:type", Boolean)
|
|
31
|
+
], User.prototype, "isAdmin", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamp' }),
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], User.prototype, "createdAt", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamp' }),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], User.prototype, "updatedAt", void 0);
|
|
40
|
+
User = __decorate([
|
|
41
|
+
Entity({ name: 'users' })
|
|
42
|
+
], User);
|
|
43
|
+
export { User };
|
|
44
|
+
export default User;
|
|
45
|
+
//# sourceMappingURL=User.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/db/entities/User.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AAEI,IAAM,IAAI,GAAV,MAAM,IAAI;CAkBhB,CAAA;AAhBC;IADC,sBAAsB,CAAC,MAAM,CAAC;;gCACpB;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;sCACtC;AAGjB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;sCACxB;AAGjB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qCAC3B;AAGjB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACjD,IAAI;uCAAC;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACjD,IAAI;uCAAC;AAjBL,IAAI;IADhB,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;GACb,IAAI,CAkBhB;;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, } from 'typeorm';
|
|
11
|
+
/**
|
|
12
|
+
* User configuration entity for database storage
|
|
13
|
+
*/
|
|
14
|
+
let UserConfig = class UserConfig {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
PrimaryGeneratedColumn('uuid'),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], UserConfig.prototype, "id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
Column({ type: 'varchar', length: 255, unique: true }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], UserConfig.prototype, "username", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], UserConfig.prototype, "routing", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], UserConfig.prototype, "additionalConfig", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamp' }),
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], UserConfig.prototype, "createdAt", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamp' }),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], UserConfig.prototype, "updatedAt", void 0);
|
|
40
|
+
UserConfig = __decorate([
|
|
41
|
+
Entity({ name: 'user_configs' })
|
|
42
|
+
], UserConfig);
|
|
43
|
+
export { UserConfig };
|
|
44
|
+
export default UserConfig;
|
|
45
|
+
//# sourceMappingURL=UserConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserConfig.js","sourceRoot":"","sources":["../../../src/db/entities/UserConfig.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAU;CAkBtB,CAAA;AAhBC;IADC,sBAAsB,CAAC,MAAM,CAAC;;sCACpB;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;4CACtC;AAGjB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAClB;AAG9B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACT;AAGvC;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACjD,IAAI;6CAAC;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACjD,IAAI;6CAAC;AAjBL,UAAU;IADtB,MAAM,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;GACpB,UAAU,CAkBtB;;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { VectorEmbedding } from './VectorEmbedding.js';
|
|
2
|
+
import User from './User.js';
|
|
3
|
+
import Server from './Server.js';
|
|
4
|
+
import Group from './Group.js';
|
|
5
|
+
import SystemConfig from './SystemConfig.js';
|
|
6
|
+
import UserConfig from './UserConfig.js';
|
|
2
7
|
// Export all entities
|
|
3
|
-
export default [VectorEmbedding];
|
|
8
|
+
export default [VectorEmbedding, User, Server, Group, SystemConfig, UserConfig];
|
|
4
9
|
// Export individual entities for direct use
|
|
5
|
-
export { VectorEmbedding };
|
|
10
|
+
export { VectorEmbedding, User, Server, Group, SystemConfig, UserConfig };
|
|
6
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/db/entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/db/entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAC7C,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,sBAAsB;AACtB,eAAe,CAAC,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;AAEhF,4CAA4C;AAC5C,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Group } from '../entities/Group.js';
|
|
2
|
+
import { getAppDataSource } from '../connection.js';
|
|
3
|
+
/**
|
|
4
|
+
* Repository for Group entity
|
|
5
|
+
*/
|
|
6
|
+
export class GroupRepository {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.repository = getAppDataSource().getRepository(Group);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Find all groups
|
|
12
|
+
*/
|
|
13
|
+
async findAll() {
|
|
14
|
+
return await this.repository.find();
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Find group by ID
|
|
18
|
+
*/
|
|
19
|
+
async findById(id) {
|
|
20
|
+
return await this.repository.findOne({ where: { id } });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Find group by name
|
|
24
|
+
*/
|
|
25
|
+
async findByName(name) {
|
|
26
|
+
return await this.repository.findOne({ where: { name } });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Create a new group
|
|
30
|
+
*/
|
|
31
|
+
async create(group) {
|
|
32
|
+
const newGroup = this.repository.create(group);
|
|
33
|
+
return await this.repository.save(newGroup);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Update an existing group
|
|
37
|
+
*/
|
|
38
|
+
async update(id, groupData) {
|
|
39
|
+
const group = await this.findById(id);
|
|
40
|
+
if (!group) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
const updated = this.repository.merge(group, groupData);
|
|
44
|
+
return await this.repository.save(updated);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Delete a group
|
|
48
|
+
*/
|
|
49
|
+
async delete(id) {
|
|
50
|
+
const result = await this.repository.delete({ id });
|
|
51
|
+
return (result.affected ?? 0) > 0;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if group exists by ID
|
|
55
|
+
*/
|
|
56
|
+
async exists(id) {
|
|
57
|
+
const count = await this.repository.count({ where: { id } });
|
|
58
|
+
return count > 0;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Check if group exists by name
|
|
62
|
+
*/
|
|
63
|
+
async existsByName(name) {
|
|
64
|
+
const count = await this.repository.count({ where: { name } });
|
|
65
|
+
return count > 0;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Count total groups
|
|
69
|
+
*/
|
|
70
|
+
async count() {
|
|
71
|
+
return await this.repository.count();
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Find groups by owner
|
|
75
|
+
*/
|
|
76
|
+
async findByOwner(owner) {
|
|
77
|
+
return await this.repository.find({ where: { owner } });
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export default GroupRepository;
|
|
81
|
+
//# sourceMappingURL=GroupRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupRepository.js","sourceRoot":"","sources":["../../../src/db/repositories/GroupRepository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AACH,MAAM,OAAO,eAAe;IAG1B;QACE,IAAI,CAAC,UAAU,GAAG,gBAAgB,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,C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CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAC7D,OAAO,KAAK,GAAG,CAAC,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAAC,IAAY;QAC7B,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAC/D,OAAO,KAAK,GAAG,CAAC,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAK;QACT,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,CAAC,KAAa;QAC7B,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Server } from '../entities/Server.js';
|
|
2
|
+
import { getAppDataSource } from '../connection.js';
|
|
3
|
+
/**
|
|
4
|
+
* Repository for Server entity
|
|
5
|
+
*/
|
|
6
|
+
export class ServerRepository {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.repository = getAppDataSource().getRepository(Server);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Find all servers
|
|
12
|
+
*/
|
|
13
|
+
async findAll() {
|
|
14
|
+
return await this.repository.find();
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Find server by name
|
|
18
|
+
*/
|
|
19
|
+
async findByName(name) {
|
|
20
|
+
return await this.repository.findOne({ where: { name } });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create a new server
|
|
24
|
+
*/
|
|
25
|
+
async create(server) {
|
|
26
|
+
const newServer = this.repository.create(server);
|
|
27
|
+
return await this.repository.save(newServer);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Update an existing server
|
|
31
|
+
*/
|
|
32
|
+
async update(name, serverData) {
|
|
33
|
+
const server = await this.findByName(name);
|
|
34
|
+
if (!server) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
const updated = this.repository.merge(server, serverData);
|
|
38
|
+
return await this.repository.save(updated);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Delete a server
|
|
42
|
+
*/
|
|
43
|
+
async delete(name) {
|
|
44
|
+
const result = await this.repository.delete({ name });
|
|
45
|
+
return (result.affected ?? 0) > 0;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if server exists
|
|
49
|
+
*/
|
|
50
|
+
async exists(name) {
|
|
51
|
+
const count = await this.repository.count({ where: { name } });
|
|
52
|
+
return count > 0;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Count total servers
|
|
56
|
+
*/
|
|
57
|
+
async count() {
|
|
58
|
+
return await this.repository.count();
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Find servers by owner
|
|
62
|
+
*/
|
|
63
|
+
async findByOwner(owner) {
|
|
64
|
+
return await this.repository.find({ where: { owner } });
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Find enabled servers
|
|
68
|
+
*/
|
|
69
|
+
async findEnabled() {
|
|
70
|
+
return await this.repository.find({ where: { enabled: true } });
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Set server enabled status
|
|
74
|
+
*/
|
|
75
|
+
async setEnabled(name, enabled) {
|
|
76
|
+
return await this.update(name, { enabled });
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export default ServerRepository;
|
|
80
|
+
//# sourceMappingURL=ServerRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerRepository.js","sourceRoot":"","sources":["../../../src/db/repositories/ServerRepository.ts"],"names":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