envware 1.0.10

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 (45) hide show
  1. package/README.md +98 -0
  2. package/dist/app.controller.d.ts +6 -0
  3. package/dist/app.controller.js +35 -0
  4. package/dist/app.controller.js.map +1 -0
  5. package/dist/app.module.d.ts +2 -0
  6. package/dist/app.module.js +40 -0
  7. package/dist/app.module.js.map +1 -0
  8. package/dist/app.service.d.ts +3 -0
  9. package/dist/app.service.js +20 -0
  10. package/dist/app.service.js.map +1 -0
  11. package/dist/commands/accept.command.d.ts +11 -0
  12. package/dist/commands/accept.command.js +74 -0
  13. package/dist/commands/accept.command.js.map +1 -0
  14. package/dist/commands/login.command.d.ts +9 -0
  15. package/dist/commands/login.command.js +61 -0
  16. package/dist/commands/login.command.js.map +1 -0
  17. package/dist/commands/project.command.d.ts +12 -0
  18. package/dist/commands/project.command.js +121 -0
  19. package/dist/commands/project.command.js.map +1 -0
  20. package/dist/commands/pull.command.d.ts +16 -0
  21. package/dist/commands/pull.command.js +120 -0
  22. package/dist/commands/pull.command.js.map +1 -0
  23. package/dist/commands/push.command.d.ts +16 -0
  24. package/dist/commands/push.command.js +153 -0
  25. package/dist/commands/push.command.js.map +1 -0
  26. package/dist/commands/share.command.d.ts +16 -0
  27. package/dist/commands/share.command.js +125 -0
  28. package/dist/commands/share.command.js.map +1 -0
  29. package/dist/commands/signup.command.d.ts +9 -0
  30. package/dist/commands/signup.command.js +61 -0
  31. package/dist/commands/signup.command.js.map +1 -0
  32. package/dist/main.d.ts +2 -0
  33. package/dist/main.js +17 -0
  34. package/dist/main.js.map +1 -0
  35. package/dist/services/api.service.d.ts +8 -0
  36. package/dist/services/api.service.js +53 -0
  37. package/dist/services/api.service.js.map +1 -0
  38. package/dist/services/config.service.d.ts +11 -0
  39. package/dist/services/config.service.js +130 -0
  40. package/dist/services/config.service.js.map +1 -0
  41. package/dist/services/encryption.service.d.ts +20 -0
  42. package/dist/services/encryption.service.js +178 -0
  43. package/dist/services/encryption.service.js.map +1 -0
  44. package/dist/tsconfig.build.tsbuildinfo +1 -0
  45. package/package.json +87 -0
package/README.md ADDED
@@ -0,0 +1,98 @@
1
+ <p align="center">
2
+ <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
3
+ </p>
4
+
5
+ [circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
6
+ [circleci-url]: https://circleci.com/gh/nestjs/nest
7
+
8
+ <p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
9
+ <p align="center">
10
+ <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
11
+ <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
12
+ <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
13
+ <a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
14
+ <a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
15
+ <a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
16
+ <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
17
+ <a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg" alt="Donate us"/></a>
18
+ <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
19
+ <a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow" alt="Follow us on Twitter"></a>
20
+ </p>
21
+ <!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
22
+ [![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->
23
+
24
+ ## Description
25
+
26
+ [Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
27
+
28
+ ## Project setup
29
+
30
+ ```bash
31
+ $ npm install
32
+ ```
33
+
34
+ ## Compile and run the project
35
+
36
+ ```bash
37
+ # development
38
+ $ npm run start
39
+
40
+ # watch mode
41
+ $ npm run start:dev
42
+
43
+ # production mode
44
+ $ npm run start:prod
45
+ ```
46
+
47
+ ## Run tests
48
+
49
+ ```bash
50
+ # unit tests
51
+ $ npm run test
52
+
53
+ # e2e tests
54
+ $ npm run test:e2e
55
+
56
+ # test coverage
57
+ $ npm run test:cov
58
+ ```
59
+
60
+ ## Deployment
61
+
62
+ When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the [deployment documentation](https://docs.nestjs.com/deployment) for more information.
63
+
64
+ If you are looking for a cloud-based platform to deploy your NestJS application, check out [Mau](https://mau.nestjs.com), our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:
65
+
66
+ ```bash
67
+ $ npm install -g @nestjs/mau
68
+ $ mau deploy
69
+ ```
70
+
71
+ With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.
72
+
73
+ ## Resources
74
+
75
+ Check out a few resources that may come in handy when working with NestJS:
76
+
77
+ - Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.
78
+ - For questions and support, please visit our [Discord channel](https://discord.gg/G7Qnnhy).
79
+ - To dive deeper and get more hands-on experience, check out our official video [courses](https://courses.nestjs.com/).
80
+ - Deploy your application to AWS with the help of [NestJS Mau](https://mau.nestjs.com) in just a few clicks.
81
+ - Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).
82
+ - Need help with your project (part-time to full-time)? Check out our official [enterprise support](https://enterprise.nestjs.com).
83
+ - To stay in the loop and get updates, follow us on [X](https://x.com/nestframework) and [LinkedIn](https://linkedin.com/company/nestjs).
84
+ - Looking for a job, or have a job to offer? Check out our official [Jobs board](https://jobs.nestjs.com).
85
+
86
+ ## Support
87
+
88
+ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
89
+
90
+ ## Stay in touch
91
+
92
+ - Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
93
+ - Website - [https://nestjs.com](https://nestjs.com/)
94
+ - Twitter - [@nestframework](https://twitter.com/nestframework)
95
+
96
+ ## License
97
+
98
+ Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).
@@ -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,40 @@
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 signup_command_1 = require("./commands/signup.command");
12
+ const login_command_1 = require("./commands/login.command");
13
+ const project_command_1 = require("./commands/project.command");
14
+ const push_command_1 = require("./commands/push.command");
15
+ const pull_command_1 = require("./commands/pull.command");
16
+ const share_command_1 = require("./commands/share.command");
17
+ const accept_command_1 = require("./commands/accept.command");
18
+ const api_service_1 = require("./services/api.service");
19
+ const config_service_1 = require("./services/config.service");
20
+ const encryption_service_1 = require("./services/encryption.service");
21
+ let AppModule = class AppModule {
22
+ };
23
+ exports.AppModule = AppModule;
24
+ exports.AppModule = AppModule = __decorate([
25
+ (0, common_1.Module)({
26
+ providers: [
27
+ signup_command_1.SignupCommand,
28
+ login_command_1.LoginCommand,
29
+ project_command_1.ProjectCommand,
30
+ push_command_1.PushCommand,
31
+ pull_command_1.PullCommand,
32
+ share_command_1.ShareCommand,
33
+ accept_command_1.AcceptCommand,
34
+ api_service_1.ApiService,
35
+ config_service_1.ConfigService,
36
+ encryption_service_1.EncryptionService,
37
+ ],
38
+ })
39
+ ], AppModule);
40
+ //# 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,8DAA0D;AAC1D,4DAAwD;AACxD,gEAA4D;AAC5D,0DAAsD;AACtD,0DAAsD;AACtD,4DAAwD;AACxD,8DAA0D;AAC1D,wDAAoD;AACpD,8DAA0D;AAC1D,sEAAkE;AAgB3D,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IAdrB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE;YACT,8BAAa;YACb,4BAAY;YACZ,gCAAc;YACd,0BAAW;YACX,0BAAW;YACX,4BAAY;YACZ,8BAAa;YACb,wBAAU;YACV,8BAAa;YACb,sCAAiB;SAClB;KACF,CAAC;GACW,SAAS,CAAG"}
@@ -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,11 @@
1
+ import { CommandRunner } from 'nest-commander';
2
+ import { ApiService } from '../services/api.service';
3
+ import { ConfigService } from '../services/config.service';
4
+ import { EncryptionService } from '../services/encryption.service';
5
+ export declare class AcceptCommand extends CommandRunner {
6
+ private apiService;
7
+ private encryptionService;
8
+ private configService;
9
+ constructor(apiService: ApiService, encryptionService: EncryptionService, configService: ConfigService);
10
+ run(passedParams: string[]): Promise<void>;
11
+ }
@@ -0,0 +1,74 @@
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.AcceptCommand = void 0;
16
+ const nest_commander_1 = require("nest-commander");
17
+ const api_service_1 = require("../services/api.service");
18
+ const config_service_1 = require("../services/config.service");
19
+ const encryption_service_1 = require("../services/encryption.service");
20
+ const chalk_1 = __importDefault(require("chalk"));
21
+ let AcceptCommand = class AcceptCommand extends nest_commander_1.CommandRunner {
22
+ apiService;
23
+ encryptionService;
24
+ configService;
25
+ constructor(apiService, encryptionService, configService) {
26
+ super();
27
+ this.apiService = apiService;
28
+ this.encryptionService = encryptionService;
29
+ this.configService = configService;
30
+ }
31
+ async run(passedParams) {
32
+ const activeProjectId = this.configService.getLocalProject();
33
+ if (activeProjectId) {
34
+ console.log(chalk_1.default.cyan(`Current project: ${activeProjectId}\n`));
35
+ }
36
+ const [inviteCode] = passedParams;
37
+ if (!inviteCode) {
38
+ console.log(chalk_1.default.red('Usage: envw accept <inviteCode>'));
39
+ return;
40
+ }
41
+ try {
42
+ console.log(chalk_1.default.blue('Fetching invitation details...'));
43
+ const { data: invitation } = await this.apiService.instance.get(`/projects/invitation/${inviteCode}`);
44
+ console.log(chalk_1.default.blue('Decrypting project key...'));
45
+ const projectKey = this.encryptionService.decryptSymmetric(invitation.encryptedProjectKey, inviteCode);
46
+ console.log(chalk_1.default.blue('Securing project key with your identity...'));
47
+ const publicKey = this.encryptionService.getPublicKey();
48
+ const encryptedForSelf = this.encryptionService.encryptProjectKey(projectKey, publicKey);
49
+ console.log(chalk_1.default.blue('Finalizing collaboration...'));
50
+ await this.apiService.instance.post('/projects/claim-invitation', {
51
+ inviteCode,
52
+ newEncryptedProjectKey: encryptedForSelf,
53
+ });
54
+ console.log(chalk_1.default.green('Successfully joined the project!'));
55
+ this.configService.setLocalProject(invitation.projectId);
56
+ console.log(chalk_1.default.blue('Project ID saved to .envwhere'));
57
+ }
58
+ catch (error) {
59
+ const message = error.response?.data?.message || error.message;
60
+ console.log(chalk_1.default.red(`Failed to accept invitation: ${message}`));
61
+ }
62
+ }
63
+ };
64
+ exports.AcceptCommand = AcceptCommand;
65
+ exports.AcceptCommand = AcceptCommand = __decorate([
66
+ (0, nest_commander_1.Command)({
67
+ name: 'accept',
68
+ description: 'Accept a project invitation using an invite code',
69
+ }),
70
+ __metadata("design:paramtypes", [api_service_1.ApiService,
71
+ encryption_service_1.EncryptionService,
72
+ config_service_1.ConfigService])
73
+ ], AcceptCommand);
74
+ //# sourceMappingURL=accept.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accept.command.js","sourceRoot":"","sources":["../../src/commands/accept.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAwD;AACxD,yDAAqD;AACrD,+DAA2D;AAC3D,uEAAmE;AACnE,kDAA0B;AAYnB,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,8BAAa;IAEpC;IACA;IACA;IAHV,YACU,UAAsB,EACtB,iBAAoC,EACpC,aAA4B;QAEpC,K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OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,CAAC;YACvD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,4BAA4B,EAAE;gBAChE,UAAU;gBACV,sBAAsB,EAAE,gBAAgB;aACzC,CAAC,CAAC;YAEH,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC,CAAC;YAC7D,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;YACzD,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC,CAAC;QAC3D,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YACpB,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC;YAC/D,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,gCAAgC,OAAO,EAAE,CAAC,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;CACF,CAAA;AA7DY,sCAAa;wBAAb,aAAa;IAJzB,IAAA,wBAAO,EAAC;QACP,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kDAAkD;KAChE,CAAC;qCAGsB,wBAAU;QACH,sCAAiB;QACrB,8BAAa;GAJ3B,aAAa,CA6DzB"}
@@ -0,0 +1,9 @@
1
+ import { CommandRunner } from 'nest-commander';
2
+ import { ApiService } from '../services/api.service';
3
+ import { ConfigService } from '../services/config.service';
4
+ export declare class LoginCommand extends CommandRunner {
5
+ private apiService;
6
+ private configService;
7
+ constructor(apiService: ApiService, configService: ConfigService);
8
+ run(): 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
+ 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.LoginCommand = void 0;
16
+ const nest_commander_1 = require("nest-commander");
17
+ const api_service_1 = require("../services/api.service");
18
+ const config_service_1 = require("../services/config.service");
19
+ const chalk_1 = __importDefault(require("chalk"));
20
+ const inquirer_1 = __importDefault(require("inquirer"));
21
+ let LoginCommand = class LoginCommand extends nest_commander_1.CommandRunner {
22
+ apiService;
23
+ configService;
24
+ constructor(apiService, configService) {
25
+ super();
26
+ this.apiService = apiService;
27
+ this.configService = configService;
28
+ }
29
+ async run() {
30
+ const activeProjectId = this.configService.getLocalProject();
31
+ if (activeProjectId) {
32
+ console.log(chalk_1.default.cyan(`Current project: ${activeProjectId}\n`));
33
+ }
34
+ const answers = await inquirer_1.default.prompt([
35
+ { type: 'input', name: 'email', message: 'Enter your email:' },
36
+ { type: 'password', name: 'password', message: 'Enter your password:' },
37
+ ]);
38
+ try {
39
+ const response = await this.apiService.instance.post('/auth/login', {
40
+ email: answers.email,
41
+ password: answers.password,
42
+ });
43
+ this.configService.set('token', response.data.access_token);
44
+ console.log(chalk_1.default.green('Successfully logged in!'));
45
+ }
46
+ catch (error) {
47
+ const err = error;
48
+ const statusSuffix = err.response?.status
49
+ ? ` (Status: ${err.response.status})`
50
+ : '';
51
+ console.log(chalk_1.default.red(`Login failed: ${err.response?.data?.message || err.message}${statusSuffix}`));
52
+ }
53
+ }
54
+ };
55
+ exports.LoginCommand = LoginCommand;
56
+ exports.LoginCommand = LoginCommand = __decorate([
57
+ (0, nest_commander_1.Command)({ name: 'login', description: 'Log in to your envware account' }),
58
+ __metadata("design:paramtypes", [api_service_1.ApiService,
59
+ config_service_1.ConfigService])
60
+ ], LoginCommand);
61
+ //# sourceMappingURL=login.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.command.js","sourceRoot":"","sources":["../../src/commands/login.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAwD;AACxD,yDAAqD;AACrD,+DAA2D;AAC3D,kDAA0B;AAC1B,wDAAgC;AAGzB,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,8BAAa;IAEnC;IACA;IAFV,YACU,UAAsB,EACtB,aAA4B;QAEpC,KAAK,EAAE,CAAC;QAHA,eAAU,GAAV,UAAU,CAAY;QACtB,kBAAa,GAAb,aAAa,CAAe;IAGtC,CAAC;IAED,KAAK,CAAC,GAAG;QACP,MAAM,eAAe,GAAG,IAAI,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC;QAC7D,IAAI,eAAe,EAAE,CAAC;YACpB,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,oBAAoB,eAAe,IAAI,CAAC,CAAC,CAAC;QACnE,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAC;YACpC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE;YAC9D,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,sBAAsB,EAAE;SACxE,CAAC,CAAC;QAEH,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAEjD,aAAa,EAAE;gBAChB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,QAAQ,EAAE,OAAO,CAAC,QAAQ;aAC3B,CAAC,CAAC;YAEH,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAC5D,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC;QACtD,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YACpB,MAAM,GAAG,GAAG,KAGX,CAAC;YACF,MAAM,YAAY,GAAG,GAAG,CAAC,QAAQ,EAAE,MAAM;gBACvC,CAAC,CAAC,aAAa,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG;gBACrC,CAAC,CAAC,EAAE,CAAC;YACP,OAAO,CAAC,GAAG,CACT,eAAK,CAAC,GAAG,CACP,iBAAiB,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,IAAI,GAAG,CAAC,OAAO,GAAG,YAAY,EAAE,CAC7E,CACF,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AA5CY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,wBAAO,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;qCAGlD,wBAAU;QACP,8BAAa;GAH3B,YAAY,CA4CxB"}
@@ -0,0 +1,12 @@
1
+ import { CommandRunner } from 'nest-commander';
2
+ import { ApiService } from '../services/api.service';
3
+ import { ConfigService } from '../services/config.service';
4
+ export declare class ProjectCommand extends CommandRunner {
5
+ private apiService;
6
+ private configService;
7
+ constructor(apiService: ApiService, configService: ConfigService);
8
+ run(passedParams: string[]): Promise<void>;
9
+ private createProject;
10
+ private listProjects;
11
+ private selectProject;
12
+ }
@@ -0,0 +1,121 @@
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.ProjectCommand = void 0;
16
+ const nest_commander_1 = require("nest-commander");
17
+ const api_service_1 = require("../services/api.service");
18
+ const config_service_1 = require("../services/config.service");
19
+ const chalk_1 = __importDefault(require("chalk"));
20
+ const inquirer_1 = __importDefault(require("inquirer"));
21
+ let ProjectCommand = class ProjectCommand extends nest_commander_1.CommandRunner {
22
+ apiService;
23
+ configService;
24
+ constructor(apiService, configService) {
25
+ super();
26
+ this.apiService = apiService;
27
+ this.configService = configService;
28
+ }
29
+ async run(passedParams) {
30
+ const activeProjectId = this.configService.getLocalProject();
31
+ if (activeProjectId) {
32
+ console.log(chalk_1.default.cyan(`Current project: ${activeProjectId}\n`));
33
+ }
34
+ const [action, name] = passedParams;
35
+ if (action === 'create') {
36
+ await this.createProject(name);
37
+ }
38
+ else if (action === 'list') {
39
+ await this.listProjects();
40
+ }
41
+ else if (action === 'select') {
42
+ await this.selectProject();
43
+ }
44
+ else {
45
+ console.log(chalk_1.default.yellow('Usage: project create <name> | project list | project select'));
46
+ }
47
+ }
48
+ async createProject(name) {
49
+ if (!name) {
50
+ console.log(chalk_1.default.red('Project name is required: project create <name>'));
51
+ return;
52
+ }
53
+ try {
54
+ const response = await this.apiService.instance.post('/projects', {
55
+ name,
56
+ });
57
+ const project = response.data;
58
+ console.log(chalk_1.default.green(`Project '${project.name}' created with ID: ${project.id}`));
59
+ this.configService.setLocalProject(project.id);
60
+ console.log(chalk_1.default.blue('Project ID saved to .envwhere'));
61
+ }
62
+ catch (error) {
63
+ console.log(chalk_1.default.red('Failed to create project: ' +
64
+ (error.response?.data?.error || error.message)));
65
+ }
66
+ }
67
+ async listProjects() {
68
+ try {
69
+ const { data: me } = await this.apiService.instance.get('/auth/me');
70
+ const response = await this.apiService.instance.get('/projects');
71
+ console.log(chalk_1.default.blue('Your projects:'));
72
+ response.data.forEach((p) => {
73
+ const isCurrent = this.configService.getLocalProject() === p.id;
74
+ const role = p.ownerId !== me.id ? ' [Shared]' : '';
75
+ const prefix = isCurrent ? chalk_1.default.green('-> ') : ' ';
76
+ console.log(`${prefix}${p.name} (ID: ${p.id}, Slug: ${p.slug})${role}`);
77
+ });
78
+ }
79
+ catch (error) {
80
+ console.log(chalk_1.default.red('Failed to list projects: ' +
81
+ (error.response?.data?.error || error.message)));
82
+ }
83
+ }
84
+ async selectProject() {
85
+ try {
86
+ const response = await this.apiService.instance.get('/projects');
87
+ const projects = response.data;
88
+ if (projects.length === 0) {
89
+ console.log(chalk_1.default.yellow("You don't have any projects yet."));
90
+ return;
91
+ }
92
+ const activeId = this.configService.getLocalProject();
93
+ const { projectId } = await inquirer_1.default.prompt([
94
+ {
95
+ type: 'list',
96
+ name: 'projectId',
97
+ message: 'Select a project:',
98
+ choices: projects.map((p) => ({
99
+ name: `${p.name} (${p.slug})`,
100
+ value: p.id,
101
+ short: p.name,
102
+ })),
103
+ default: activeId,
104
+ },
105
+ ]);
106
+ this.configService.setLocalProject(projectId);
107
+ console.log(chalk_1.default.green(`Project selected and saved to .envwhere`));
108
+ }
109
+ catch (error) {
110
+ console.log(chalk_1.default.red('Failed to select project: ' +
111
+ (error.response?.data?.error || error.message)));
112
+ }
113
+ }
114
+ };
115
+ exports.ProjectCommand = ProjectCommand;
116
+ exports.ProjectCommand = ProjectCommand = __decorate([
117
+ (0, nest_commander_1.Command)({ name: 'project', description: 'Manage your projects' }),
118
+ __metadata("design:paramtypes", [api_service_1.ApiService,
119
+ config_service_1.ConfigService])
120
+ ], ProjectCommand);
121
+ //# sourceMappingURL=project.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.command.js","sourceRoot":"","sources":["../../src/commands/project.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAwD;AACxD,yDAAqD;AACrD,+DAA2D;AAC3D,kDAA0B;AAC1B,wDAAgC;AAGzB,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,8BAAa;IAErC;IACA;IAFV,YACU,UAAsB,EACtB,aAA4B;QAEpC,KAAK,EAAE,CAAC;QAHA,eAAU,GAAV,UAAU,CAAY;QACtB,kBAAa,GAAb,aAAa,CAAe;IAGtC,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,YAAsB;QAC9B,MAAM,eAAe,GAAG,IAAI,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC;QAC7D,IAAI,eAAe,EAAE,CAAC;YACpB,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,oBAAoB,eAAe,IAAI,CAAC,CAAC,CAAC;QACnE,CAAC;QAED,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,YAAY,CAAC;QAEpC,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;YACxB,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC;aAAM,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;YAC7B,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAC5B,CAAC;aAAM,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QAC7B,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,GAAG,CACT,eAAK,CAAC,MAAM,CACV,8DAA8D,CAC/D,CACF,CAAC;QACJ,CAAC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AAS,EAAE,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAC;gBAC1C;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,WAAW;oBACjB,OAAO,EAAE,mBAAmB;oBAC5B,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC;wBACjC,IAAI,EAAE,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,GAAG;wBAC7B,KAAK,EAAE,CAAC,CAAC,EAAE;wBACX,KAAK,EAAE,CAAC,CAAC,IAAI;qBACd,CAAC,CAAC;oBACH,OAAO,EAAE,QAAQ;iBAClB;aACF,CAAC,CAAC;YAEH,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;YAC9C,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC,CAAC;QACtE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,GAAG,CACT,eAAK,CAAC,GAAG,CACP,4BAA4B;gBAC1B,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,CACjD,CACF,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAlHY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,wBAAO,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;qCAG1C,wBAAU;QACP,8BAAa;GAH3B,cAAc,CAkH1B"}
@@ -0,0 +1,16 @@
1
+ import { CommandRunner } from 'nest-commander';
2
+ import { ApiService } from '../services/api.service';
3
+ import { ConfigService } from '../services/config.service';
4
+ import { EncryptionService } from '../services/encryption.service';
5
+ interface PullOptions {
6
+ env: string;
7
+ }
8
+ export declare class PullCommand extends CommandRunner {
9
+ private apiService;
10
+ private encryptionService;
11
+ private configService;
12
+ constructor(apiService: ApiService, encryptionService: EncryptionService, configService: ConfigService);
13
+ run(passedParams: string[], options?: PullOptions): Promise<void>;
14
+ parseEnv(val: string): string;
15
+ }
16
+ export {};