@xeplr/monitor 1.0.1 → 1.2.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.
@@ -1,31 +1,35 @@
1
1
  {
2
- "name": "@xeplr-monitor/api",
3
- "version": "1.0.0",
2
+ "name": "@xeplr/monitor",
3
+ "version": "1.2.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
- "name": "@xeplr-monitor/api",
9
- "version": "1.0.0",
10
- "license": "UNLICENSED",
8
+ "name": "@xeplr/monitor",
9
+ "version": "1.2.0",
10
+ "license": "MIT",
11
11
  "dependencies": {
12
12
  "@aws-sdk/client-s3": "^3.1168.0",
13
13
  "@aws-sdk/lib-storage": "^3.1168.0",
14
14
  "@xeplr/actions": "^2.2.4",
15
- "@xeplr/auth": "^1.3.0",
16
- "@xeplr/backups": "^0.1.1",
17
- "@xeplr/base-apis": "^3.1.3",
15
+ "@xeplr/auth": "^1.11.0",
16
+ "@xeplr/backups": "^0.2.1",
17
+ "@xeplr/base-apis": "^3.3.0",
18
+ "@xeplr/cli": "^0.3.8",
18
19
  "@xeplr/db": "^1.1.0",
19
- "@xeplr/jobs": "^3.2.0",
20
+ "@xeplr/jobs": "^3.3.0",
20
21
  "@xeplr/setup": "^0.2.0",
21
22
  "@xeplr/utils": "^1.0.11",
22
23
  "dotenv": "^17.4.2",
24
+ "dotenv-cli": "^8.0.0",
23
25
  "express": "^5.2.0",
24
26
  "mysql2": "^3.24.6"
25
27
  },
26
- "devDependencies": {
27
- "@xeplr/cli": "^0.1.8",
28
- "dotenv-cli": "^8.0.0"
28
+ "bin": {
29
+ "xeplr-monitor": "deploy/deploy.js"
30
+ },
31
+ "engines": {
32
+ "node": ">=20"
29
33
  }
30
34
  },
31
35
  "node_modules/@aws-sdk/checksums": {
@@ -557,17 +561,18 @@
557
561
  }
558
562
  },
559
563
  "node_modules/@xeplr/auth": {
560
- "version": "1.5.2",
561
- "resolved": "https://registry.npmjs.org/@xeplr/auth/-/auth-1.5.2.tgz",
562
- "integrity": "sha512-H9BwCRRw70kprVO1s9uCS+hNJeb9YO/D2YqwXJ0X7EDSHZLkJn/kX7bphIXQ89mje6mMjL3fH7sgCIy9PwQ3YQ==",
564
+ "version": "1.11.0",
565
+ "resolved": "https://registry.npmjs.org/@xeplr/auth/-/auth-1.11.0.tgz",
566
+ "integrity": "sha512-QXHCDxGhxYaHOUt3H6mpKBfzNQGD8Fcpelmj/waMoM3Ud7GNvL/WxZ99NB07A0ory4vjcJqN00O7Eer5aPZXZw==",
563
567
  "license": "MIT",
564
568
  "dependencies": {
565
569
  "@xeplr/base-apis": "^2.0.0",
566
570
  "@xeplr/db": "^1.0.0",
567
- "@xeplr/utils": "^1.0.8",
571
+ "@xeplr/utils": "^2.1.0",
568
572
  "bcrypt": "^6.0.0",
569
573
  "ioredis": "^5.6.1",
570
574
  "jsonwebtoken": "^9.0.3",
575
+ "knex": "^3.3.0",
571
576
  "multer": "^2.3.0"
572
577
  },
573
578
  "bin": {
@@ -604,10 +609,74 @@
604
609
  }
605
610
  }
606
611
  },
612
+ "node_modules/@xeplr/auth/node_modules/@xeplr/base-apis/node_modules/@xeplr/utils": {
613
+ "version": "1.1.7",
614
+ "resolved": "https://registry.npmjs.org/@xeplr/utils/-/utils-1.1.7.tgz",
615
+ "integrity": "sha512-x8ahcyJD28yNvskKq2xxLwsUP9oi4z7waWhYR3XaSar/boMOVCiMrUXp51x1Bc7wzeZ7pii8cXdsmj7RpbcMaA==",
616
+ "license": "MIT",
617
+ "peerDependencies": {
618
+ "@aws-sdk/client-ses": "^3.0.0",
619
+ "@azure/communication-email": "^1.0.0",
620
+ "ioredis": "^5.6.1",
621
+ "multer": "^2.3.0",
622
+ "nodemailer": "^10.0.13"
623
+ },
624
+ "peerDependenciesMeta": {
625
+ "@aws-sdk/client-ses": {
626
+ "optional": true
627
+ },
628
+ "@azure/communication-email": {
629
+ "optional": true
630
+ },
631
+ "ioredis": {
632
+ "optional": true
633
+ },
634
+ "multer": {
635
+ "optional": true
636
+ },
637
+ "nodemailer": {
638
+ "optional": true
639
+ }
640
+ }
641
+ },
642
+ "node_modules/@xeplr/auth/node_modules/@xeplr/utils": {
643
+ "version": "2.1.1",
644
+ "resolved": "https://registry.npmjs.org/@xeplr/utils/-/utils-2.1.1.tgz",
645
+ "integrity": "sha512-PgvYzRvWITEKA0DfSvlYG/SJMvkJ1rykCIZvY0zmjqtIA/9DzOv2dST38QUhFLLNKYuY8Ue1q8h5DJMg6n00yA==",
646
+ "license": "MIT",
647
+ "peerDependencies": {
648
+ "@aws-sdk/client-ses": "^3.0.0",
649
+ "@azure/communication-email": "^1.0.0",
650
+ "@xeplr/db": "^1.1.0",
651
+ "ioredis": "^5.6.1",
652
+ "multer": "^2.3.0",
653
+ "nodemailer": "^10.0.13"
654
+ },
655
+ "peerDependenciesMeta": {
656
+ "@aws-sdk/client-ses": {
657
+ "optional": true
658
+ },
659
+ "@azure/communication-email": {
660
+ "optional": true
661
+ },
662
+ "@xeplr/db": {
663
+ "optional": true
664
+ },
665
+ "ioredis": {
666
+ "optional": true
667
+ },
668
+ "multer": {
669
+ "optional": true
670
+ },
671
+ "nodemailer": {
672
+ "optional": true
673
+ }
674
+ }
675
+ },
607
676
  "node_modules/@xeplr/backups": {
608
- "version": "0.1.1",
609
- "resolved": "https://registry.npmjs.org/@xeplr/backups/-/backups-0.1.1.tgz",
610
- "integrity": "sha512-Bxk8t1ugIXFLmIT6qI2Cf/R90iTQS8FYAzsE55FgLTy78+l4E6vGRMCcU9q2eqdstwwTFuqXo2N9v47401rXYA==",
677
+ "version": "0.2.1",
678
+ "resolved": "https://registry.npmjs.org/@xeplr/backups/-/backups-0.2.1.tgz",
679
+ "integrity": "sha512-UOuaz69V4ncNTdQpdhRSaxalA/sA6I0qVc5REL2/8Opq59PA/7BMxjY8dBWZPX4SjTlN+OaEB+XuFltWy2IKNQ==",
611
680
  "license": "MIT",
612
681
  "dependencies": {
613
682
  "@xeplr/utils": "^1.0.11"
@@ -622,9 +691,9 @@
622
691
  }
623
692
  },
624
693
  "node_modules/@xeplr/base-apis": {
625
- "version": "3.2.0",
626
- "resolved": "https://registry.npmjs.org/@xeplr/base-apis/-/base-apis-3.2.0.tgz",
627
- "integrity": "sha512-GCwyGgIFQY50d/ngusiDk3DFTnKOK+l9A1mEXXvrIEQKK7BNDXgnCGeludGNwcKjM6/h/KNH5wv/ceKuOxmUzw==",
694
+ "version": "3.3.0",
695
+ "resolved": "https://registry.npmjs.org/@xeplr/base-apis/-/base-apis-3.3.0.tgz",
696
+ "integrity": "sha512-sF48y8Ke4m27NZO0uwR/neXdlstQROVKkp+B+DpbZmfq21+E7gxp4fJpBLwGfKq7ItAoRN87oygW65LNY4oSYA==",
628
697
  "license": "MIT",
629
698
  "dependencies": {
630
699
  "@xeplr/logs": "^1.0.0",
@@ -656,10 +725,9 @@
656
725
  }
657
726
  },
658
727
  "node_modules/@xeplr/cli": {
659
- "version": "0.1.11",
660
- "resolved": "https://registry.npmjs.org/@xeplr/cli/-/cli-0.1.11.tgz",
661
- "integrity": "sha512-ATn8TQGYyhlq0H3HYEikBKsj+5COcWMJ2+Oj60iKqVHcisJeqYAfMvzO5q9HB77FDBoxfaxpUgQ4Eu9V7cWm/A==",
662
- "dev": true,
728
+ "version": "0.3.15",
729
+ "resolved": "https://registry.npmjs.org/@xeplr/cli/-/cli-0.3.15.tgz",
730
+ "integrity": "sha512-vhEL5QB+8+iYA3o7FSlkiWJ10u09wtfBmAifsXnKPJSHl/Efchs1gVeP+d0Pd6/Y5BdIH2G3uqaxaLhyPI7nhg==",
663
731
  "license": "MIT",
664
732
  "dependencies": {
665
733
  "@xeplr/utils": "^1.0.7"
@@ -697,13 +765,13 @@
697
765
  "license": "MIT"
698
766
  },
699
767
  "node_modules/@xeplr/jobs": {
700
- "version": "3.2.0",
701
- "resolved": "https://registry.npmjs.org/@xeplr/jobs/-/jobs-3.2.0.tgz",
702
- "integrity": "sha512-lrJW8tsXzrmO+Hrqs+utWOz1b4l2OutMhI+vksf1wX9f3/6b7hk+l0qEM+EKIx/Wn+7jCHjG8Zgwr6KLn1GYaw==",
768
+ "version": "3.3.0",
769
+ "resolved": "https://registry.npmjs.org/@xeplr/jobs/-/jobs-3.3.0.tgz",
770
+ "integrity": "sha512-z/XB+eyBSIA7QYJE7WrAIrCJqC6uPVhEVypMftSSVEQ5FRybjXKcEeTla8qIDMJqd5YmGcZ41AcNoX9tGnNhnw==",
703
771
  "license": "MIT",
704
772
  "dependencies": {
705
773
  "@xeplr/actions": "^2.0.0",
706
- "@xeplr/base-apis": "^3.2.0",
774
+ "@xeplr/base-apis": "^3.3.0",
707
775
  "@xeplr/db": "^1.2.0",
708
776
  "@xeplr/schema-handler": "^1.0.0",
709
777
  "@xeplr/utils": "^1.0.0",
@@ -1078,7 +1146,6 @@
1078
1146
  "version": "7.1.2",
1079
1147
  "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.2.tgz",
1080
1148
  "integrity": "sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==",
1081
- "dev": true,
1082
1149
  "license": "MIT",
1083
1150
  "dependencies": {
1084
1151
  "path-key": "^3.1.0",
@@ -1146,7 +1213,6 @@
1146
1213
  "version": "8.0.0",
1147
1214
  "resolved": "https://registry.npmjs.org/dotenv-cli/-/dotenv-cli-8.0.0.tgz",
1148
1215
  "integrity": "sha512-aLqYbK7xKOiTMIRf1lDPbI+Y+Ip/wo5k3eyp6ePysVaSqbyxjyK3dK35BTxG+rmd7djf5q2UPs4noPNH+cj0Qw==",
1149
- "dev": true,
1150
1216
  "license": "MIT",
1151
1217
  "dependencies": {
1152
1218
  "cross-spawn": "^7.0.6",
@@ -1162,7 +1228,6 @@
1162
1228
  "version": "16.6.1",
1163
1229
  "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
1164
1230
  "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
1165
- "dev": true,
1166
1231
  "license": "BSD-2-Clause",
1167
1232
  "engines": {
1168
1233
  "node": ">=12"
@@ -1175,7 +1240,6 @@
1175
1240
  "version": "10.0.0",
1176
1241
  "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-10.0.0.tgz",
1177
1242
  "integrity": "sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==",
1178
- "dev": true,
1179
1243
  "license": "BSD-2-Clause",
1180
1244
  "engines": {
1181
1245
  "node": ">=12"
@@ -1647,7 +1711,6 @@
1647
1711
  "version": "2.0.0",
1648
1712
  "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
1649
1713
  "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
1650
- "dev": true,
1651
1714
  "license": "ISC"
1652
1715
  },
1653
1716
  "node_modules/json-schema-traverse": {
@@ -1923,7 +1986,6 @@
1923
1986
  "version": "1.2.8",
1924
1987
  "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
1925
1988
  "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
1926
- "dev": true,
1927
1989
  "license": "MIT",
1928
1990
  "funding": {
1929
1991
  "url": "https://github.com/sponsors/ljharb"
@@ -2141,7 +2203,6 @@
2141
2203
  "version": "3.1.1",
2142
2204
  "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
2143
2205
  "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
2144
- "dev": true,
2145
2206
  "license": "MIT",
2146
2207
  "engines": {
2147
2208
  "node": ">=8"
@@ -2553,7 +2614,6 @@
2553
2614
  "version": "2.0.0",
2554
2615
  "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
2555
2616
  "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
2556
- "dev": true,
2557
2617
  "license": "MIT",
2558
2618
  "dependencies": {
2559
2619
  "shebang-regex": "^3.0.0"
@@ -2566,7 +2626,6 @@
2566
2626
  "version": "3.0.0",
2567
2627
  "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
2568
2628
  "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
2569
- "dev": true,
2570
2629
  "license": "MIT",
2571
2630
  "engines": {
2572
2631
  "node": ">=8"
@@ -2808,7 +2867,6 @@
2808
2867
  "version": "2.0.2",
2809
2868
  "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
2810
2869
  "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
2811
- "dev": true,
2812
2870
  "license": "ISC",
2813
2871
  "dependencies": {
2814
2872
  "isexe": "^2.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeplr/monitor",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
4
  "description": "See a server and control its systemd services from a web page: how each is doing, start / stop / restart / kill, live logs, memory, CPU, requests and errors over time, database backups to S3. A xeplr app: run `npx @xeplr/monitor` on the server to install it there.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,11 +21,11 @@
21
21
  "files": [
22
22
  "deploy/",
23
23
  "api/",
24
- "ui/",
24
+ "ui/dist/",
25
25
  "!api/test/",
26
26
  "!api/*.env",
27
27
  "!api/logs/",
28
- "!ui/dist/",
28
+ "npm-shrinkwrap.json",
29
29
  "README.md",
30
30
  "LICENSE"
31
31
  ],
@@ -33,11 +33,27 @@
33
33
  "access": "public"
34
34
  },
35
35
  "scripts": {
36
- "install-here": "node deploy/deploy.js",
37
- "test": "npm --prefix api test"
36
+ "test": "cd api && node --test test/*.test.cjs",
37
+ "build:ui": "npm --prefix ui ci --ignore-scripts --no-audit --no-fund && npm --prefix ui run build",
38
+ "prepack": "npm run build:ui",
39
+ "install-here": "node deploy/deploy.js"
38
40
  },
39
41
  "dependencies": {
40
- "@xeplr/cli": "^0.3.8"
42
+ "@aws-sdk/client-s3": "^3.1168.0",
43
+ "@aws-sdk/lib-storage": "^3.1168.0",
44
+ "@xeplr/actions": "^2.2.4",
45
+ "@xeplr/auth": "^1.11.0",
46
+ "@xeplr/backups": "^0.2.1",
47
+ "@xeplr/base-apis": "^3.3.0",
48
+ "@xeplr/cli": "^0.3.8",
49
+ "@xeplr/db": "^1.1.0",
50
+ "@xeplr/jobs": "^3.3.0",
51
+ "@xeplr/setup": "^0.2.0",
52
+ "@xeplr/utils": "^1.0.11",
53
+ "dotenv": "^17.4.2",
54
+ "dotenv-cli": "^8.0.0",
55
+ "express": "^5.2.0",
56
+ "mysql2": "^3.24.6"
41
57
  },
42
58
  "engines": {
43
59
  "node": ">=20"