@aurtic/cli 1.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +14 -23
  3. package/dist/app.controller.d.ts +6 -0
  4. package/dist/app.controller.js +35 -0
  5. package/dist/app.controller.js.map +1 -0
  6. package/dist/app.module.d.ts +2 -0
  7. package/dist/app.module.js +39 -0
  8. package/dist/app.module.js.map +1 -0
  9. package/dist/app.service.d.ts +3 -0
  10. package/dist/app.service.js +20 -0
  11. package/dist/app.service.js.map +1 -0
  12. package/dist/authentication/authentication.command.d.ts +9 -0
  13. package/dist/authentication/authentication.command.js +61 -0
  14. package/dist/authentication/authentication.command.js.map +1 -0
  15. package/dist/authentication/authentication.github.command.d.ts +11 -0
  16. package/dist/authentication/authentication.github.command.js +46 -0
  17. package/dist/authentication/authentication.github.command.js.map +1 -0
  18. package/dist/authentication/authentication.module.d.ts +2 -0
  19. package/dist/authentication/authentication.module.js +28 -0
  20. package/dist/authentication/authentication.module.js.map +1 -0
  21. package/dist/authentication/authentication.service.d.ts +11 -0
  22. package/dist/authentication/authentication.service.js +91 -0
  23. package/dist/authentication/authentication.service.js.map +1 -0
  24. package/dist/builds/builds.command.d.ts +12 -0
  25. package/dist/builds/builds.command.js +116 -0
  26. package/dist/builds/builds.command.js.map +1 -0
  27. package/dist/builds/builds.module.d.ts +2 -0
  28. package/dist/builds/builds.module.js +25 -0
  29. package/dist/builds/builds.module.js.map +1 -0
  30. package/dist/builds/builds.service.d.ts +17 -0
  31. package/dist/builds/builds.service.js +156 -0
  32. package/dist/builds/builds.service.js.map +1 -0
  33. package/dist/builds/builds.zip.service.d.ts +3 -0
  34. package/dist/builds/builds.zip.service.js +73 -0
  35. package/dist/builds/builds.zip.service.js.map +1 -0
  36. package/dist/github/github.module.d.ts +2 -0
  37. package/dist/github/github.module.js +21 -0
  38. package/dist/github/github.module.js.map +1 -0
  39. package/dist/github/github.service.d.ts +3 -0
  40. package/dist/github/github.service.js +30 -0
  41. package/dist/github/github.service.js.map +1 -0
  42. package/dist/main.js +10 -0
  43. package/dist/main.js.map +1 -0
  44. package/dist/tsconfig.build.tsbuildinfo +1 -0
  45. package/package.json +78 -24
  46. package/dist/api.d.ts +0 -14
  47. package/dist/api.js +0 -148
  48. package/dist/cli.js +0 -281
  49. package/dist/entities/Project.d.ts +0 -39
  50. package/dist/entities/Project.js +0 -124
  51. package/dist/entities/ProjectContainer.d.ts +0 -227
  52. package/dist/entities/ProjectContainer.js +0 -465
  53. package/dist/entities/Server.d.ts +0 -45
  54. package/dist/entities/Server.js +0 -114
  55. package/dist/entities/Team.d.ts +0 -49
  56. package/dist/entities/Team.js +0 -149
  57. package/dist/tsconfig.tsbuildinfo +0 -1
  58. package/tsconfig.json +0 -24
  59. /package/dist/{cli.d.ts → main.d.ts} +0 -0
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2023, Foxiko Cloud, Inc d.b.a. Aurtic
1
+ Copyright 2025, Foxiko Cloud, Inc d.b.a. Aurtic
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
package/README.md CHANGED
@@ -1,29 +1,20 @@
1
- # Aurtic CLI how-to
2
- Welcome to Aurtic CLI - a command line interface tool designed to simplify the deployment of your docker applications and provide secure login functionality to your servers.
1
+ # How to Use the CLI
3
2
 
4
- With Aurtic CLI, you can easily deploy your docker applications to your server with just a few simple commands. You can also easily manage your containers, and deployments using the CLI. Additionally, Aurtic CLI provides secure login functionality, so you can easily access your servers with a simple authentication process.
3
+ ## Usage
4
+ ```
5
+ npm install --save @aurtic/cli
6
+ ```
5
7
 
6
- This tool is designed to make the deployment process as simple as possible, regardless of your level of technical expertise. Whether you are a seasoned developer or new to docker, Aurtic CLI will make it easy for you to deploy your applications in a fast, reliable, and secure way.
8
+ ## Upgrade from v1
9
+ ```
10
+ npm install --save @aurtic/cli@2
11
+ ```
7
12
 
8
13
 
9
- ## Login into your Aurtic account
10
- To push/ pull deployments from your Aurtic account you need to
14
+ ## CLI Commands
11
15
 
12
- ```bash
13
- npx @aurtic/cli login
14
- ```
16
+ - `npx @aurtic/cli login <username> [--password <password>]`
17
+ Authenticates the user and returns an access token.
15
18
 
16
- ## Deploy applications using aurtic
17
- 1. Install the `@aurtic/cli` package
18
- ```bash
19
- npm install -g @aurtic/cli
20
- ```
21
- 2. First you need to login into your Aurtic account
22
- ```bash
23
- npx @aurtic/cli login
24
- ```
25
- 3. Deploy your applicaiton
26
- ```bash
27
- npx @aurtic/cli container projectId containerId deploy [path] [--verbose | -v]
28
- ```
29
- 4. Use the given link to follow the process, you will be notified if the build succeeds or not. You can also use the `--verbose` option to follow the process in the terminal.
19
+ - `npx @aurtic/cli build <serviceId> [--password <password>]`
20
+ Builds in the current directory
@@ -0,0 +1,6 @@
1
+ import { AppService } from './app.service';
2
+ export declare class AppController {
3
+ private readonly appService;
4
+ constructor(appService: AppService);
5
+ getHello(): string;
6
+ }
@@ -0,0 +1,35 @@
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
+ appService;
17
+ constructor(appService) {
18
+ this.appService = appService;
19
+ }
20
+ getHello() {
21
+ return this.appService.getHello();
22
+ }
23
+ };
24
+ exports.AppController = AppController;
25
+ __decorate([
26
+ (0, common_1.Get)(),
27
+ __metadata("design:type", Function),
28
+ __metadata("design:paramtypes", []),
29
+ __metadata("design:returntype", String)
30
+ ], AppController.prototype, "getHello", null);
31
+ exports.AppController = AppController = __decorate([
32
+ (0, common_1.Controller)(),
33
+ __metadata("design:paramtypes", [app_service_1.AppService])
34
+ ], AppController);
35
+ //# sourceMappingURL=app.controller.js.map
@@ -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,2 @@
1
+ export declare class AppModule {
2
+ }
@@ -0,0 +1,39 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AppModule = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const app_controller_1 = require("./app.controller");
15
+ const app_service_1 = require("./app.service");
16
+ const builds_module_1 = require("./builds/builds.module");
17
+ const config_1 = require("@nestjs/config");
18
+ const authentication_module_1 = require("./authentication/authentication.module");
19
+ const github_module_1 = require("./github/github.module");
20
+ const node_path_1 = __importDefault(require("node:path"));
21
+ const dirname = node_path_1.default.join(__dirname, '../env-variables');
22
+ let AppModule = class AppModule {
23
+ };
24
+ exports.AppModule = AppModule;
25
+ exports.AppModule = AppModule = __decorate([
26
+ (0, common_1.Module)({
27
+ imports: [
28
+ config_1.ConfigModule.forRoot({
29
+ envFilePath: dirname,
30
+ }),
31
+ builds_module_1.BuildsModule,
32
+ authentication_module_1.AuthenticationModule,
33
+ github_module_1.GithubModule,
34
+ ],
35
+ controllers: [app_controller_1.AppController],
36
+ providers: [app_service_1.AppService],
37
+ })
38
+ ], AppModule);
39
+ //# sourceMappingURL=app.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAwC;AACxC,qDAAiD;AACjD,+CAA2C;AAC3C,0DAAsD;AACtD,2CAA8C;AAC9C,kFAA8E;AAC9E,0DAAsD;AACtD,0DAA6B;AAE7B,MAAM,OAAO,GAAG,mBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAC;AAclD,IAAM,SAAS,GAAf,MAAM,SAAS;CAAI,CAAA;AAAb,8BAAS;oBAAT,SAAS;IAZrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,qBAAY,CAAC,OAAO,CAAC;gBACnB,WAAW,EAAE,OAAO;aACrB,CAAC;YACF,4BAAY;YACZ,4CAAoB;YACpB,4BAAY;SACb;QACD,WAAW,EAAE,CAAC,8BAAa,CAAC;QAC5B,SAAS,EAAE,CAAC,wBAAU,CAAC;KACxB,CAAC;GACW,SAAS,CAAI"}
@@ -0,0 +1,3 @@
1
+ export declare class AppService {
2
+ getHello(): string;
3
+ }
@@ -0,0 +1,20 @@
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);
20
+ //# sourceMappingURL=app.service.js.map
@@ -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"}
@@ -0,0 +1,9 @@
1
+ import { CommandRunner, InquirerService } from 'nest-commander';
2
+ import { AuthenticationService } from './authentication.service';
3
+ export declare class AuthenticationCommand extends CommandRunner {
4
+ private readonly inquirerService;
5
+ private readonly authenticationService;
6
+ constructor(inquirerService: InquirerService, authenticationService: AuthenticationService);
7
+ parsePassword(val: string): string;
8
+ run(passedParams: string[], options: Record<string, any>): Promise<void>;
9
+ }
@@ -0,0 +1,61 @@
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.AuthenticationCommand = void 0;
13
+ const nest_commander_1 = require("nest-commander");
14
+ const authentication_service_1 = require("./authentication.service");
15
+ const authentication_github_command_1 = require("./authentication.github.command");
16
+ let AuthenticationCommand = class AuthenticationCommand extends nest_commander_1.CommandRunner {
17
+ inquirerService;
18
+ authenticationService;
19
+ constructor(inquirerService, authenticationService) {
20
+ super();
21
+ this.inquirerService = inquirerService;
22
+ this.authenticationService = authenticationService;
23
+ }
24
+ parsePassword(val) {
25
+ return val;
26
+ }
27
+ async run(passedParams, options) {
28
+ const username = passedParams[0];
29
+ let password = options.password;
30
+ if (!password) {
31
+ const result = await this.inquirerService.inquirer.prompt({
32
+ type: 'password',
33
+ message: 'Enter your password: ',
34
+ name: 'password',
35
+ });
36
+ password = result.password;
37
+ }
38
+ await this.authenticationService.getAccessTokenByUsernameAndPassword(username, password);
39
+ }
40
+ };
41
+ exports.AuthenticationCommand = AuthenticationCommand;
42
+ __decorate([
43
+ (0, nest_commander_1.Option)({
44
+ flags: '-p, --password [string]',
45
+ description: 'Password',
46
+ }),
47
+ __metadata("design:type", Function),
48
+ __metadata("design:paramtypes", [String]),
49
+ __metadata("design:returntype", String)
50
+ ], AuthenticationCommand.prototype, "parsePassword", null);
51
+ exports.AuthenticationCommand = AuthenticationCommand = __decorate([
52
+ (0, nest_commander_1.Command)({
53
+ name: 'login',
54
+ arguments: '<username>',
55
+ description: 'Login using username and password credentials',
56
+ subCommands: [authentication_github_command_1.AuthenticationGithubCommand]
57
+ }),
58
+ __metadata("design:paramtypes", [nest_commander_1.InquirerService,
59
+ authentication_service_1.AuthenticationService])
60
+ ], AuthenticationCommand);
61
+ //# sourceMappingURL=authentication.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authentication.command.js","sourceRoot":"","sources":["../../src/authentication/authentication.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAiF;AACjF,qEAAiE;AACjE,mFAA8E;AAQvE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,8BAAa;IAE/B;IACA;IAFrB,YACqB,eAAgC,EAChC,qBAA4C;QAE7D,KAAK,EAAE,CAAC;QAHS,oBAAe,GAAf,eAAe,CAAiB;QAChC,0BAAqB,GAArB,qBAAqB,CAAuB;IAGjE,CAAC;IAMD,aAAa,CAAC,GAAW;QACrB,OAAO,GAAG,CAAC;IACf,CAAC;IAGD,KAAK,CAAC,GAAG,CAAC,YAAsB,EAAE,OAA4B;QAC1D,MAAM,QAAQ,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;QACjC,IAAI,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QAEhC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACZ,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC;gBACtD,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,uBAAuB;gBAChC,IAAI,EAAE,UAAU;aACnB,CAAC,CAAC;YACH,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAC/B,CAAC;QAED,MAAM,IAAI,CAAC,qBAAqB,CAAC,mCAAmC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC7F,CAAC;CACJ,CAAA;AAhCY,sDAAqB;AAY9B;IAJC,IAAA,uBAAM,EAAC;QACJ,KAAK,EAAE,yBAAyB;QAChC,WAAW,EAAE,UAAU;KAC1B,CAAC;;;;0DAGD;gCAdQ,qBAAqB;IANjC,IAAA,wBAAO,EAAC;QACL,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,+CAA+C;QAC5D,WAAW,EAAE,CAAC,2DAA2B,CAAC;KAC7C,CAAC;qCAGwC,gCAAe;QACT,8CAAqB;GAHxD,qBAAqB,CAgCjC"}
@@ -0,0 +1,11 @@
1
+ import { CommandRunner } from 'nest-commander';
2
+ import { AuthenticationService } from './authentication.service';
3
+ import { GithubService } from 'src/github/github.service';
4
+ import { ConfigService } from '@nestjs/config';
5
+ export declare class AuthenticationGithubCommand extends CommandRunner {
6
+ private readonly authenticationService;
7
+ private readonly configService;
8
+ private readonly githubService;
9
+ constructor(authenticationService: AuthenticationService, configService: ConfigService, githubService: GithubService);
10
+ run(passedParams: string[], options: Record<string, any>): Promise<void>;
11
+ }
@@ -0,0 +1,46 @@
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.AuthenticationGithubCommand = void 0;
13
+ const nest_commander_1 = require("nest-commander");
14
+ const authentication_service_1 = require("./authentication.service");
15
+ const github_service_1 = require("../github/github.service");
16
+ const config_1 = require("@nestjs/config");
17
+ let AuthenticationGithubCommand = class AuthenticationGithubCommand extends nest_commander_1.CommandRunner {
18
+ authenticationService;
19
+ configService;
20
+ githubService;
21
+ constructor(authenticationService, configService, githubService) {
22
+ super();
23
+ this.authenticationService = authenticationService;
24
+ this.configService = configService;
25
+ this.githubService = githubService;
26
+ }
27
+ async run(passedParams, options) {
28
+ const githubToken = await this.githubService.retrieveGithubIDToken();
29
+ if (!githubToken) {
30
+ throw new Error('Failed to retrieve GitHub ID token, you are probably not authenticated in GitHub Actions (forgot to set: permissions.write = true in your workflow file) or are running this command locally');
31
+ }
32
+ await this.authenticationService.getAccessTokenByGithub(githubToken);
33
+ console.log(`Logged in successfully using GitHub (actions) OpenID Connect credentials`);
34
+ }
35
+ };
36
+ exports.AuthenticationGithubCommand = AuthenticationGithubCommand;
37
+ exports.AuthenticationGithubCommand = AuthenticationGithubCommand = __decorate([
38
+ (0, nest_commander_1.SubCommand)({
39
+ name: 'github',
40
+ description: 'Login using GitHub (actions) OpenID Connect credentials'
41
+ }),
42
+ __metadata("design:paramtypes", [authentication_service_1.AuthenticationService,
43
+ config_1.ConfigService,
44
+ github_service_1.GithubService])
45
+ ], AuthenticationGithubCommand);
46
+ //# sourceMappingURL=authentication.github.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authentication.github.command.js","sourceRoot":"","sources":["../../src/authentication/authentication.github.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAoF;AACpF,qEAAiE;AACjE,6DAA0D;AAC1D,2CAA+C;AAMxC,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,8BAAa;IAErC;IACA;IACA;IAHrB,YACqB,qBAA4C,EAC5C,aAA4B,EAC5B,aAA4B;QAE7C,KAAK,EAAE,CAAC;QAJS,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,kBAAa,GAAb,aAAa,CAAe;QAC5B,kBAAa,GAAb,aAAa,CAAe;IAGjD,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,YAAsB,EAAE,OAA4B;QAC1D,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;QACrE,IAAI,CAAC,WAAW,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,8LAA8L,CAAC,CAAC;QACpN,CAAC;QAED,MAAM,IAAI,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;QAErE,OAAO,CAAC,GAAG,CAAC,0EAA0E,CAAC,CAAC;IAC5F,CAAC;CACJ,CAAA;AAnBY,kEAA2B;sCAA3B,2BAA2B;IAJvC,IAAA,2BAAU,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,yDAAyD;KACzE,CAAC;qCAG8C,8CAAqB;QAC7B,sBAAa;QACb,8BAAa;GAJxC,2BAA2B,CAmBvC"}
@@ -0,0 +1,2 @@
1
+ export declare class AuthenticationModule {
2
+ }
@@ -0,0 +1,28 @@
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.AuthenticationModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const authentication_service_1 = require("./authentication.service");
12
+ const config_1 = require("@nestjs/config");
13
+ const authentication_command_1 = require("./authentication.command");
14
+ const github_module_1 = require("../github/github.module");
15
+ const authentication_github_command_1 = require("./authentication.github.command");
16
+ let AuthenticationModule = class AuthenticationModule {
17
+ };
18
+ exports.AuthenticationModule = AuthenticationModule;
19
+ exports.AuthenticationModule = AuthenticationModule = __decorate([
20
+ (0, common_1.Module)({
21
+ imports: [config_1.ConfigModule, github_module_1.GithubModule],
22
+ providers: [
23
+ authentication_service_1.AuthenticationService, authentication_command_1.AuthenticationCommand, authentication_github_command_1.AuthenticationGithubCommand
24
+ ],
25
+ exports: [authentication_service_1.AuthenticationService],
26
+ })
27
+ ], AuthenticationModule);
28
+ //# sourceMappingURL=authentication.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authentication.module.js","sourceRoot":"","sources":["../../src/authentication/authentication.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,qEAAiE;AACjE,2CAA8C;AAC9C,qEAAiE;AACjE,2DAAwD;AACxD,mFAA8E;AASvE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAI,CAAA;AAAxB,oDAAoB;+BAApB,oBAAoB;IAPhC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,qBAAY,EAAE,4BAAY,CAAC;QACrC,SAAS,EAAE;YACT,8CAAqB,EAAE,8CAAqB,EAAE,2DAA2B;SAC1E;QACD,OAAO,EAAE,CAAC,8CAAqB,CAAC;KACjC,CAAC;GACW,oBAAoB,CAAI"}
@@ -0,0 +1,11 @@
1
+ import { OnModuleInit } from '@nestjs/common';
2
+ import { ConfigService } from '@nestjs/config';
3
+ export declare class AuthenticationService implements OnModuleInit {
4
+ private readonly configService;
5
+ constructor(configService: ConfigService);
6
+ onModuleInit(): Promise<void>;
7
+ getConfigFilePath(): string;
8
+ getAccessTokenByUsernameAndPassword(username: string, password: string): Promise<string>;
9
+ getAccessTokenByGithub(githubToken: string): Promise<string>;
10
+ getAccessToken(): Promise<string>;
11
+ }
@@ -0,0 +1,91 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AuthenticationService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const config_1 = require("@nestjs/config");
18
+ const node_os_1 = __importDefault(require("node:os"));
19
+ const node_path_1 = __importDefault(require("node:path"));
20
+ const node_fs_1 = __importDefault(require("node:fs"));
21
+ let AuthenticationService = class AuthenticationService {
22
+ configService;
23
+ constructor(configService) {
24
+ this.configService = configService;
25
+ }
26
+ async onModuleInit() {
27
+ await config_1.ConfigModule.envVariablesLoaded;
28
+ const configFilePath = this.getConfigFilePath();
29
+ if (!node_fs_1.default.existsSync(configFilePath)) {
30
+ return;
31
+ }
32
+ const configFileContent = node_fs_1.default.readFileSync(configFilePath, 'utf8');
33
+ const configFile = JSON.parse(configFileContent);
34
+ this.configService.set('ACCESS_TOKEN', configFile.access_token);
35
+ }
36
+ getConfigFilePath() {
37
+ return node_path_1.default.join(node_os_1.default.homedir(), '/.aurtic-cli-v2-config.yaml');
38
+ }
39
+ async getAccessTokenByUsernameAndPassword(username, password) {
40
+ const response = await fetch(`${this.configService.get('API_URI')}/v1/oauth/token`, {
41
+ method: 'POST',
42
+ body: new URLSearchParams({
43
+ username: username,
44
+ password: password,
45
+ grant_type: 'password',
46
+ }),
47
+ headers: {
48
+ 'Content-Type': 'application/x-www-form-urlencoded',
49
+ },
50
+ });
51
+ const data = await response.json();
52
+ if (!response.ok) {
53
+ throw new Error(data.message);
54
+ }
55
+ const accessToken = data.access_token;
56
+ const configFilePath = this.getConfigFilePath();
57
+ node_fs_1.default.writeFileSync(configFilePath, JSON.stringify(data, null, 2));
58
+ return accessToken;
59
+ }
60
+ async getAccessTokenByGithub(githubToken) {
61
+ const response = await fetch(`${this.configService.get('API_URI')}/v1/oauth/token`, {
62
+ method: 'POST',
63
+ body: new URLSearchParams({
64
+ grant_type: 'password',
65
+ code: `github:${githubToken}`,
66
+ username: 'github_actions',
67
+ password: githubToken,
68
+ }),
69
+ headers: {
70
+ 'Content-Type': 'application/x-www-form-urlencoded',
71
+ },
72
+ });
73
+ const data = await response.json();
74
+ if (!response.ok) {
75
+ throw new Error(data.message);
76
+ }
77
+ const accessToken = data.access_token;
78
+ const configFilePath = this.getConfigFilePath();
79
+ node_fs_1.default.writeFileSync(configFilePath, JSON.stringify(data, null, 2));
80
+ return accessToken;
81
+ }
82
+ async getAccessToken() {
83
+ return this.configService.getOrThrow('ACCESS_TOKEN');
84
+ }
85
+ };
86
+ exports.AuthenticationService = AuthenticationService;
87
+ exports.AuthenticationService = AuthenticationService = __decorate([
88
+ (0, common_1.Injectable)(),
89
+ __metadata("design:paramtypes", [config_1.ConfigService])
90
+ ], AuthenticationService);
91
+ //# sourceMappingURL=authentication.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authentication.service.js","sourceRoot":"","sources":["../../src/authentication/authentication.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0D;AAC1D,2CAA6D;AAC7D,sDAAyB;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AAC,CAAC;IACzD,CAAC;CACJ,CAAA;AA3EY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;qCAEmC,sBAAa;GADhD,qBAAqB,CA2EjC"}
@@ -0,0 +1,12 @@
1
+ import { CommandRunner } from 'nest-commander';
2
+ import { BuildsService } from './builds.service';
3
+ export declare class BuildsCommand extends CommandRunner {
4
+ private readonly buildsService;
5
+ constructor(buildsService: BuildsService);
6
+ parseName(val: string | undefined): string | undefined;
7
+ parseDockerfile(val: string): string;
8
+ parsePath(val: string): string;
9
+ parseIsLocal(val: string): boolean;
10
+ parseFollow(val: string): boolean;
11
+ run(passedParams: string[], options: Record<string, any>): Promise<void>;
12
+ }
@@ -0,0 +1,116 @@
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.BuildsCommand = void 0;
13
+ const nest_commander_1 = require("nest-commander");
14
+ const builds_service_1 = require("./builds.service");
15
+ let BuildsCommand = class BuildsCommand extends nest_commander_1.CommandRunner {
16
+ buildsService;
17
+ constructor(buildsService) {
18
+ super();
19
+ this.buildsService = buildsService;
20
+ }
21
+ parseName(val) {
22
+ return val?.trim() || undefined;
23
+ }
24
+ parseDockerfile(val) {
25
+ return val;
26
+ }
27
+ parsePath(val) {
28
+ return val;
29
+ }
30
+ parseIsLocal(val) {
31
+ const value = JSON.parse(val);
32
+ if (typeof value !== 'boolean') {
33
+ throw new Error('Invalid boolean value');
34
+ }
35
+ return value;
36
+ }
37
+ parseFollow(val) {
38
+ const value = JSON.parse(val);
39
+ if (typeof value !== 'boolean') {
40
+ throw new Error('Invalid boolean value');
41
+ }
42
+ return value;
43
+ }
44
+ async run(passedParams, options) {
45
+ const serviceId = passedParams[0];
46
+ if (options.local) {
47
+ throw new Error('Local builds are not supported yet');
48
+ }
49
+ else {
50
+ const build = await this.buildsService.buildStreaming(serviceId, options);
51
+ if (options.follow) {
52
+ await this.buildsService.followBuild(serviceId, build.id);
53
+ }
54
+ }
55
+ }
56
+ };
57
+ exports.BuildsCommand = BuildsCommand;
58
+ __decorate([
59
+ (0, nest_commander_1.Option)({
60
+ flags: '-n, --name [string]',
61
+ description: 'Build name',
62
+ required: false,
63
+ }),
64
+ __metadata("design:type", Function),
65
+ __metadata("design:paramtypes", [Object]),
66
+ __metadata("design:returntype", Object)
67
+ ], BuildsCommand.prototype, "parseName", null);
68
+ __decorate([
69
+ (0, nest_commander_1.Option)({
70
+ flags: '-d, --dockerfile [string]',
71
+ description: 'Dockerfile path',
72
+ defaultValue: './Dockerfile',
73
+ }),
74
+ __metadata("design:type", Function),
75
+ __metadata("design:paramtypes", [String]),
76
+ __metadata("design:returntype", String)
77
+ ], BuildsCommand.prototype, "parseDockerfile", null);
78
+ __decorate([
79
+ (0, nest_commander_1.Option)({
80
+ flags: '-p, --path [string]',
81
+ description: 'Local build path',
82
+ defaultValue: './',
83
+ }),
84
+ __metadata("design:type", Function),
85
+ __metadata("design:paramtypes", [String]),
86
+ __metadata("design:returntype", String)
87
+ ], BuildsCommand.prototype, "parsePath", null);
88
+ __decorate([
89
+ (0, nest_commander_1.Option)({
90
+ flags: '-l, --local [boolean]',
91
+ description: 'Build locally or remotely',
92
+ defaultValue: false,
93
+ }),
94
+ __metadata("design:type", Function),
95
+ __metadata("design:paramtypes", [String]),
96
+ __metadata("design:returntype", Boolean)
97
+ ], BuildsCommand.prototype, "parseIsLocal", null);
98
+ __decorate([
99
+ (0, nest_commander_1.Option)({
100
+ flags: '-f, --follow [boolean]',
101
+ description: 'Follow the build logs and await the result',
102
+ defaultValue: false,
103
+ }),
104
+ __metadata("design:type", Function),
105
+ __metadata("design:paramtypes", [String]),
106
+ __metadata("design:returntype", Boolean)
107
+ ], BuildsCommand.prototype, "parseFollow", null);
108
+ exports.BuildsCommand = BuildsCommand = __decorate([
109
+ (0, nest_commander_1.Command)({
110
+ name: 'build',
111
+ arguments: '<serviceId>',
112
+ description: 'A parameter parser example'
113
+ }),
114
+ __metadata("design:paramtypes", [builds_service_1.BuildsService])
115
+ ], BuildsCommand);
116
+ //# sourceMappingURL=builds.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builds.command.js","sourceRoot":"","sources":["../../src/builds/builds.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAgE;AAChE,qDAAiD;AAO1C,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,8BAAa;IACf;IAA7B,YAA6B,aAA4B;QACrD,KAAK,EAAE,CAAC;QADiB,kBAAa,GAAb,aAAa,CAAe;IAEzD,CAAC;IAOD,SAAS,CAAC,GAAuB;QAC7B,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACpC,CAAC;IAOD,eAAe,CAAC,GAAW;QACvB,OAAO,GAAG,CAAC;IACf,CAAC;IAOD,SAAS,CAAC,GAAW;QACjB,OAAO,GAAG,CAAC;IACf,CAAC;IAOD,YAAY,CAAC,GAAW;QACpB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9B,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC7C,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAOD,WAAW,CAAC,GAAW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AAK;KACtB,CAAC;;;;iDAOD;AAOD;IALC,IAAA,uBAAM,EAAC;QACJ,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EAAE,4CAA4C;QACzD,YAAY,EAAE,KAAK;KACtB,CAAC;;;;gDAOD;wBAxDQ,aAAa;IALzB,IAAA,wBAAO,EAAC;QACL,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,aAAa;QACxB,WAAW,EAAE,4BAA4B;KAC5C,CAAC;qCAE8C,8BAAa;GADhD,aAAa,CAsEzB"}
@@ -0,0 +1,2 @@
1
+ export declare class BuildsModule {
2
+ }
@@ -0,0 +1,25 @@
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.BuildsModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const builds_service_1 = require("./builds.service");
12
+ const builds_command_1 = require("./builds.command");
13
+ const builds_zip_service_1 = require("./builds.zip.service");
14
+ const config_1 = require("@nestjs/config");
15
+ const authentication_module_1 = require("../authentication/authentication.module");
16
+ let BuildsModule = class BuildsModule {
17
+ };
18
+ exports.BuildsModule = BuildsModule;
19
+ exports.BuildsModule = BuildsModule = __decorate([
20
+ (0, common_1.Module)({
21
+ imports: [config_1.ConfigModule, authentication_module_1.AuthenticationModule],
22
+ providers: [builds_service_1.BuildsService, builds_zip_service_1.BuildsZipService, builds_command_1.BuildsCommand]
23
+ })
24
+ ], BuildsModule);
25
+ //# sourceMappingURL=builds.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builds.module.js","sourceRoot":"","sources":["../../src/builds/builds.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,qDAAiD;AACjD,qDAAiD;AACjD,6DAAwD;AACxD,2CAA8C;AAC9C,mFAA+E;AAMxE,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAI,CAAA;AAAhB,oCAAY;uBAAZ,YAAY;IAJxB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,qBAAY,EAAE,4CAAoB,CAAC;QAC7C,SAAS,EAAE,CAAC,8BAAa,EAAE,qCAAgB,EAAE,8BAAa,CAAC;KAC5D,CAAC;GACW,YAAY,CAAI"}