@bpinhosilva/agent-orchestrator 0.0.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/.github/ISSUE_TEMPLATE/bug_report.md +25 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +18 -0
- package/.github/workflows/ci.yml +34 -0
- package/.github/workflows/gitleaks.yml +22 -0
- package/.github/workflows/release.yml +38 -0
- package/.husky/commit-msg +1 -0
- package/.husky/pre-commit +6 -0
- package/.prettierrc +4 -0
- package/.releaserc.json +31 -0
- package/CONTRIBUTING.md +64 -0
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/TODO.md +14 -0
- package/commitlint.config.js +3 -0
- package/dist/agents/agents.controller.d.ts +8 -0
- package/dist/agents/agents.controller.js +39 -0
- package/dist/agents/agents.controller.js.map +1 -0
- package/dist/agents/agents.module.d.ts +2 -0
- package/dist/agents/agents.module.js +23 -0
- package/dist/agents/agents.module.js.map +1 -0
- package/dist/agents/agents.service.d.ts +10 -0
- package/dist/agents/agents.service.js +33 -0
- package/dist/agents/agents.service.js.map +1 -0
- package/dist/agents/dto/agent-request.dto.d.ts +3 -0
- package/dist/agents/dto/agent-request.dto.js +21 -0
- package/dist/agents/dto/agent-request.dto.js.map +1 -0
- package/dist/agents/implementations/gemini.agent.d.ts +8 -0
- package/dist/agents/implementations/gemini.agent.js +59 -0
- package/dist/agents/implementations/gemini.agent.js.map +1 -0
- package/dist/agents/interfaces/agent.interface.d.ts +8 -0
- package/dist/agents/interfaces/agent.interface.js +2 -0
- package/dist/agents/interfaces/agent.interface.js.map +1 -0
- package/dist/app.controller.d.ts +6 -0
- package/dist/app.controller.js +33 -0
- package/dist/app.controller.js.map +1 -0
- package/dist/app.module.d.ts +2 -0
- package/dist/app.module.js +31 -0
- package/dist/app.module.js.map +1 -0
- package/dist/app.service.d.ts +3 -0
- package/dist/app.service.js +19 -0
- package/dist/app.service.js.map +1 -0
- package/dist/cli.js +21 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +15 -0
- package/dist/main.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/docker-compose.yml +21 -0
- package/eslint.config.mjs +35 -0
- package/nest-cli.json +8 -0
- package/package.json +98 -0
- package/public/index.html +20 -0
- package/src/agents/agents.controller.spec.ts +46 -0
- package/src/agents/agents.controller.ts +17 -0
- package/src/agents/agents.module.ts +11 -0
- package/src/agents/agents.service.spec.ts +44 -0
- package/src/agents/agents.service.ts +23 -0
- package/src/agents/dto/agent-request.dto.ts +7 -0
- package/src/agents/implementations/gemini.agent.spec.ts +41 -0
- package/src/agents/implementations/gemini.agent.ts +50 -0
- package/src/agents/interfaces/agent.interface.ts +9 -0
- package/src/app.controller.spec.ts +22 -0
- package/src/app.controller.ts +12 -0
- package/src/app.module.ts +19 -0
- package/src/app.service.ts +8 -0
- package/src/cli.ts +23 -0
- package/src/main.ts +18 -0
- package/test/app.e2e-spec.ts +56 -0
- package/test/jest-e2e.json +9 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1,33 @@
|
|
|
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.AppController = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const app_service_1 = require("./app.service");
|
|
15
|
+
let AppController = class AppController {
|
|
16
|
+
constructor(appService) {
|
|
17
|
+
this.appService = appService;
|
|
18
|
+
}
|
|
19
|
+
getHello() {
|
|
20
|
+
return this.appService.getHello();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.AppController = AppController;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, common_1.Get)(),
|
|
26
|
+
__metadata("design:type", Function),
|
|
27
|
+
__metadata("design:paramtypes", []),
|
|
28
|
+
__metadata("design:returntype", String)
|
|
29
|
+
], AppController.prototype, "getHello", null);
|
|
30
|
+
exports.AppController = AppController = __decorate([
|
|
31
|
+
(0, common_1.Controller)(),
|
|
32
|
+
__metadata("design:paramtypes", [app_service_1.AppService])
|
|
33
|
+
], AppController);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiD;AACjD,+CAA2C;AAGpC,IAAM,aAAa,GAAnB,MAAM,aAAa;IACK;IAA7B,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAGvD,QAAQ;QACN,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IACpC,CAAC;CACF,CAAA;AAPY,sCAAa;AAIxB;IADC,IAAA,YAAG,GAAE;;;;6CAGL;wBANU,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAE8B,wBAAU;GADxC,aAAa,CAOzB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AppModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const serve_static_1 = require("@nestjs/serve-static");
|
|
12
|
+
const path_1 = require("path");
|
|
13
|
+
const agents_module_1 = require("./agents/agents.module");
|
|
14
|
+
const app_controller_1 = require("./app.controller");
|
|
15
|
+
const app_service_1 = require("./app.service");
|
|
16
|
+
let AppModule = class AppModule {
|
|
17
|
+
};
|
|
18
|
+
exports.AppModule = AppModule;
|
|
19
|
+
exports.AppModule = AppModule = __decorate([
|
|
20
|
+
(0, common_1.Module)({
|
|
21
|
+
imports: [
|
|
22
|
+
serve_static_1.ServeStaticModule.forRoot({
|
|
23
|
+
rootPath: (0, path_1.join)(__dirname, '..', 'public'),
|
|
24
|
+
exclude: ['/api/(.*)'],
|
|
25
|
+
}),
|
|
26
|
+
agents_module_1.AgentsModule,
|
|
27
|
+
],
|
|
28
|
+
controllers: [app_controller_1.AppController],
|
|
29
|
+
providers: [app_service_1.AppService],
|
|
30
|
+
})
|
|
31
|
+
], AppModule);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uDAAyD;AACzD,+BAA4B;AAC5B,0DAAsD;AACtD,qDAAiD;AACjD,+CAA2C;AAapC,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IAXrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,gCAAiB,CAAC,OAAO,CAAC;gBACxB,QAAQ,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,QAAQ,CAAC;gBACzC,OAAO,EAAE,CAAC,WAAW,CAAC;aACvB,CAAC;YACF,4BAAY;SACb;QACD,WAAW,EAAE,CAAC,8BAAa,CAAC;QAC5B,SAAS,EAAE,CAAC,wBAAU,CAAC;KACxB,CAAC;GACW,SAAS,CAAG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AppService = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
let AppService = class AppService {
|
|
12
|
+
getHello() {
|
|
13
|
+
return 'Hello World!';
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
exports.AppService = AppService;
|
|
17
|
+
exports.AppService = AppService = __decorate([
|
|
18
|
+
(0, common_1.Injectable)()
|
|
19
|
+
], AppService);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.service.js","sourceRoot":"","sources":["../src/app.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,UAAU,GAAhB,MAAM,UAAU;IACrB,QAAQ;QACN,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AAJY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;GACA,UAAU,CAItB"}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const commander_1 = require("commander");
|
|
5
|
+
const core_1 = require("@nestjs/core");
|
|
6
|
+
const app_module_1 = require("./app.module");
|
|
7
|
+
const program = new commander_1.Command();
|
|
8
|
+
program
|
|
9
|
+
.name('agent-orchestrator')
|
|
10
|
+
.description('An open-source AI agent orchestrator platform')
|
|
11
|
+
.version('0.0.1');
|
|
12
|
+
program
|
|
13
|
+
.command('run')
|
|
14
|
+
.description('Start the orchestrator server')
|
|
15
|
+
.action(async () => {
|
|
16
|
+
console.log('Starting Agent Orchestrator...');
|
|
17
|
+
const app = await core_1.NestFactory.create(app_module_1.AppModule);
|
|
18
|
+
await app.listen(process.env.PORT ?? 3000);
|
|
19
|
+
console.log(`Orchestrator is running on: ${await app.getUrl()}`);
|
|
20
|
+
});
|
|
21
|
+
program.parse(process.argv);
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/main.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@nestjs/core");
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
const app_module_1 = require("./app.module");
|
|
6
|
+
async function bootstrap() {
|
|
7
|
+
const app = await core_1.NestFactory.create(app_module_1.AppModule, {
|
|
8
|
+
logger: ['log', 'error', 'warn', 'debug', 'verbose'],
|
|
9
|
+
});
|
|
10
|
+
app.setGlobalPrefix('api/v1');
|
|
11
|
+
app.useGlobalPipes(new common_1.ValidationPipe({ transform: true, whitelist: true }));
|
|
12
|
+
await app.listen(process.env.PORT ?? 3000);
|
|
13
|
+
}
|
|
14
|
+
bootstrap();
|
|
15
|
+
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAC3C,2CAAgD;AAChD,6CAAyC;AAEzC,KAAK,UAAU,SAAS;IACtB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,sBAAS,EAAE;QAC9C,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC;KACrD,CAAC,CAAC;IAEH,GAAG,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC9B,GAAG,CAAC,cAAc,CAAC,IAAI,uBAAc,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAE7E,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC;AAC7C,CAAC;AACD,SAAS,EAAE,CAAC"}
|