repoburg 1.3.150 → 1.3.151

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 (34) hide show
  1. package/backend/dist/src/app.module.js +1 -0
  2. package/backend/dist/src/app.module.js.map +1 -1
  3. package/backend/dist/src/app.service.d.ts +1 -0
  4. package/backend/dist/src/app.service.js +3 -0
  5. package/backend/dist/src/app.service.js.map +1 -1
  6. package/backend/dist/src/application-state/application-state.controller.d.ts +6 -0
  7. package/backend/dist/src/application-state/application-state.controller.js +29 -0
  8. package/backend/dist/src/application-state/application-state.controller.js.map +1 -1
  9. package/backend/dist/src/application-state/application-state.service.d.ts +3 -0
  10. package/backend/dist/src/application-state/application-state.service.js +15 -0
  11. package/backend/dist/src/application-state/application-state.service.js.map +1 -1
  12. package/backend/dist/src/application-state/dto/set-notifications-enabled.dto.d.ts +3 -0
  13. package/backend/dist/src/application-state/dto/set-notifications-enabled.dto.js +21 -0
  14. package/backend/dist/src/application-state/dto/set-notifications-enabled.dto.js.map +1 -0
  15. package/backend/dist/src/global-config/dto/update-global-config.dto.d.ts +1 -0
  16. package/backend/dist/src/global-config/dto/update-global-config.dto.js +5 -0
  17. package/backend/dist/src/global-config/dto/update-global-config.dto.js.map +1 -1
  18. package/backend/dist/src/global-config/global-config.service.d.ts +1 -0
  19. package/backend/dist/src/global-config/global-config.service.js.map +1 -1
  20. package/backend/dist/src/llm-orchestration/hooks/frontend-notification.hook.d.ts +9 -1
  21. package/backend/dist/src/llm-orchestration/hooks/frontend-notification.hook.js +43 -2
  22. package/backend/dist/src/llm-orchestration/hooks/frontend-notification.hook.js.map +1 -1
  23. package/backend/dist/src/llm-orchestration/llm-orchestration.module.js +4 -0
  24. package/backend/dist/src/llm-orchestration/llm-orchestration.module.js.map +1 -1
  25. package/backend/dist/src/notifications/notifications.module.d.ts +2 -0
  26. package/backend/dist/src/notifications/notifications.module.js +23 -0
  27. package/backend/dist/src/notifications/notifications.module.js.map +1 -0
  28. package/backend/dist/src/notifications/notifications.service.d.ts +12 -0
  29. package/backend/dist/src/notifications/notifications.service.js +49 -0
  30. package/backend/dist/src/notifications/notifications.service.js.map +1 -0
  31. package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  32. package/backend/package.json +1 -0
  33. package/backend/section-modified.txt +1 -0
  34. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ import { AppService } from '../app.service';
2
+ export interface NotificationOptions {
3
+ title: string;
4
+ subtitle?: string;
5
+ message: string;
6
+ }
7
+ export declare class NotificationsService {
8
+ private readonly appService;
9
+ private readonly logger;
10
+ constructor(appService: AppService);
11
+ sendNativeNotification(options: NotificationOptions): Promise<void>;
12
+ }
@@ -0,0 +1,49 @@
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 NotificationsService_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.NotificationsService = void 0;
14
+ const common_1 = require("@nestjs/common");
15
+ const notifier = require("node-notifier");
16
+ const app_service_1 = require("../app.service");
17
+ let NotificationsService = NotificationsService_1 = class NotificationsService {
18
+ constructor(appService) {
19
+ this.appService = appService;
20
+ this.logger = new common_1.Logger(NotificationsService_1.name);
21
+ }
22
+ async sendNativeNotification(options) {
23
+ const port = this.appService.getPort();
24
+ const appUrl = `https://app.repoburg.com/?bport=${port}`;
25
+ return new Promise((resolve) => {
26
+ notifier.notify({
27
+ title: options.title,
28
+ subtitle: options.subtitle,
29
+ message: options.message,
30
+ open: appUrl,
31
+ sound: true,
32
+ }, (err, _response) => {
33
+ if (err) {
34
+ this.logger.warn('Failed to send native notification:', err.message);
35
+ }
36
+ else {
37
+ this.logger.log('Native notification sent successfully.');
38
+ }
39
+ resolve();
40
+ });
41
+ });
42
+ }
43
+ };
44
+ exports.NotificationsService = NotificationsService;
45
+ exports.NotificationsService = NotificationsService = NotificationsService_1 = __decorate([
46
+ (0, common_1.Injectable)(),
47
+ __metadata("design:paramtypes", [app_service_1.AppService])
48
+ ], NotificationsService);
49
+ //# sourceMappingURL=notifications.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.service.js","sourceRoot":"","sources":["../../../src/notifications/notifications.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,0CAA0C;AAC1C,gDAA4C;AASrC,IAAM,oBAAoB,4BAA1B,MAAM,oBAAoB;IAG/B,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QAFlC,WAAM,GAAG,IAAI,eAAM,CAAC,sBAAoB,CAAC,IAAI,CAAC,CAAC;IAEV,CAAC;IAMvD,KAAK,CAAC,sBAAsB,CAAC,OAA4B;QACvD,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QACvC,MAAM,MAAM,GAAG,mCAAmC,IAAI,EAAE,CAAC;QAEzD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7B,QAAQ,CAAC,MAAM,CACb;gBACE,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,IAAI;aACZ,EACD,CAAC,GAAiB,EAAE,SAAiB,EAAE,EAAE;gBACvC,IAAI,GAAG,EAAE,CAAC;oBACR,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,qCAAqC,EACrC,GAAG,CAAC,OAAO,CACZ,CAAC;gBACJ,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;gBAC5D,CAAC;gBACD,OAAO,EAAE,CAAC;YACZ,CAAC,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AApCY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAI8B,wBAAU;GAHxC,oBAAoB,CAoChC"}