@xeplr/monitor 1.1.0 → 1.2.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/README.md CHANGED
@@ -44,9 +44,13 @@ Each route checks its own permission (`requireApi` from `@xeplr/base-apis`) agai
44
44
  | `monitor:control` | start, stop, restart, kill | Super Admin, CompanyAdmin, Admin, Editor |
45
45
  | `monitor:manage` | add, edit, remove a watched service | Super Admin, CompanyAdmin, Admin |
46
46
  | `monitor:audit` | the audit log | Super Admin, CompanyAdmin, Admin |
47
+ | `jobs:view`, `jobs:create`, `jobs:run` | the Jobs page: see, make and run backup jobs | Super Admin, CompanyAdmin, Admin, Editor, Creator (Viewer: `jobs:view` only) |
48
+ | `jobs:manage` | pause and resume a schedule | Super Admin, CompanyAdmin, Admin |
47
49
 
48
50
  A route somebody's roles do not include answers 403, and the page says so.
49
51
 
52
+ **Every URL is registered with auth, by path.** At startup the API sends auth what each router serves (`api/routes/catalog.js` for its own; `@xeplr/backups`' and `@xeplr/jobs`' own catalogs for theirs), with the mount prefix applied (`@xeplr/base-apis` `createApp` routes `{ router, catalog }`). Auth adds a `METHOD /path` row for each route it lacks, and gives it the roles of the label row that guards it today (`label: 'Start, stop, restart or kill a service'`), or of its group when it names none. So the auth gate itself, not only each route's `requireApi`, knows who may reach `/api/monitor/services/:unit/restart`. Rows already there are never changed; nothing is deleted. You do nothing: the API registers again on every start, and the auth log says what it added.
53
+
50
54
  **App settings** (the settings menu, top right) is **Super Admin only**: `settings:app`, three `system`-scope APIs (`api/migrations-auth/0009_app_settings.sql`) that no other role — CompanyAdmin included — is ever given, because they rewrite the whole install. Every setting in `production.env`, changed in place (`@xeplr/ui-setup` on `/api/app-settings`, `@xeplr/setup` `settingsRouter`): secrets show only *set*, `ENCRYPTION_KEY` and `AUTH_JWT_SECRET` can never be changed there, a new database login is signed in to before anything is written, each change is recorded in `settings_audit` (who, when, which names — never values), and both services restart into it (exit 75, `Restart=always`).
51
55
 
52
56
  ## How a service is doing
@@ -181,6 +185,8 @@ npm test # at the root: the API's tests (api/test)
181
185
  ```
182
186
 
183
187
  - `test/apiRoleMappings.test.cjs` — the auth catalog built from `migrations-auth`: every route `routes/monitor.js` checks has its `apis` row, every row a group, every group a role besides Super Admin, and the Monitor menu row is the key the side rail uses.
188
+ - `test/authMigrations.test.cjs` — the permission files run as on a fresh install, into an empty auth database, in `authMigrations()`'s order (the packages' first, then the app's): Admin gets all of jobs, Editor all but pause/resume, Viewer only sees.
189
+ - `test/catalog.test.cjs` — what the API registers with auth (`routes/catalog.js`) is exactly what its routers serve, listed from the real routers; every label is an `apis` row of `migrations-auth` in the route's group; the backups and jobs routers are mounted with their own catalogs.
184
190
  - `test/systemd.test.cjs` — `lib/systemd` against a real systemd: a small unit written into `/run/systemd/system`, then read (what runs it, memory against its limit, CPU %, its processes), followed, searched, restarted, killed, stopped and started; and `deploy/control.sh` through sudo — refusing a name that is not plain, an option, another action, a second name — then starting, restarting, killing and stopping a service; and `test/host.test.cjs` — the Home page's numbers: memory the way `free` counts it, CPU use from two readings, and on Linux the same figures as `free -b` and `df` on that machine. Needs Linux with systemd and passwordless sudo — GitHub's ubuntu runners have both, so CI runs it; elsewhere it is skipped and says why.
185
191
 
186
192
  - `test/stats.test.cjs` — the history: request lines (ids out, query strings dropped), counts per minute, CPU over the minute and spikes, journal lines; on a real Postgres, a read written with its cursor and the next started from it, the three routes (steps, the spike kept, permission, 30-day limit), pruning, and **leaving the page stops the query in Postgres** (gone from `pg_stat_activity`); on Linux with systemd, a real service's log read from journald, counted, and never counted twice.
@@ -192,6 +198,7 @@ npm test # at the root: the API's tests (api/test)
192
198
  | Rule | Why |
193
199
  |---|---|
194
200
  | Every route checks its own permission, and has its `apis` row, group and role grants in `migrations-auth`, in the same change. | The catalog is the only place that says who can reach a URL. |
201
+ | Every route is in `api/routes/catalog.js` (with its group, and its `requireApi` name as `label`), and every mounted package router carries its package's catalog. | Auth then holds a row for every path the API serves, so it can refuse one it does not know. |
195
202
  | sudoers allows one command, which takes one action and one plain name. | No wildcard, no shell, nothing else run as root. |
196
203
  | The monitor's tables are real tables (`monitor_services`, `monitor_audit`). | Who watched what and who did what are queries. |
197
204
  | No setting for where data lives is defaulted; folders are absolute. | A wrong-but-present value reads as empty data, not as an error. |
package/api/app.js CHANGED
@@ -41,6 +41,10 @@ function buildApp(extraRoutes, opts) {
41
41
  log: { logDir: process.env.LOG_DIR || './logs' },
42
42
  // /api/app-settings: the Super Admin's App settings page — the env file
43
43
  // seen and changed; the app restarts into it (routes/appSettings.js).
44
- routes: Object.assign({}, extraRoutes || {}, { '/api/app-settings': appSettings(opts.setup), '/': require('./routes') })
44
+ // Each router with its catalog (routes/index.js mounts()): base-apis
45
+ // registers every route with auth at startup, prefix applied.
46
+ routes: Object.assign({}, extraRoutes || {},
47
+ { '/api/app-settings': { router: appSettings(opts.setup), catalog: require('./routes/catalog').appSettings } },
48
+ require('./routes').mounts())
45
49
  });
46
50
  }
@@ -0,0 +1,30 @@
1
+ -- 0011_jobs_admin_editor.sql — the backup jobs for Admin and Editor.
2
+ --
3
+ -- @xeplr/jobs' own migrations-auth grants its groups to Super Admin,
4
+ -- CompanyAdmin, Creator and Viewer only, so in this app Admin and Editor could
5
+ -- not open Jobs at all. Here:
6
+ -- Admin jobs:view, jobs:create, jobs:run, jobs:manage (as CompanyAdmin)
7
+ -- Editor jobs:view, jobs:create, jobs:run (as Creator: no pause/resume)
8
+ --
9
+ -- Granted by GROUP, so it reaches every row of the group: jobs' label rows
10
+ -- ('List jobs', …) and the `METHOD /path` rows the API registered from jobs'
11
+ -- catalog at startup (/api/jobs/…). A row registered later copies these grants
12
+ -- from its group. Insert-if-absent, safe to run again.
13
+
14
+ WITH grants(role, "group") AS (VALUES
15
+ ('Admin', 'jobs:view'), ('Admin', 'jobs:create'), ('Admin', 'jobs:run'), ('Admin', 'jobs:manage'),
16
+ ('Editor', 'jobs:view'), ('Editor', 'jobs:create'), ('Editor', 'jobs:run')
17
+ )
18
+ INSERT INTO "apisRolesMapping" (id, "roleId", "apiId", "isActive", "mtId1", "recordCreatedDate", "recordModifiedDate")
19
+ SELECT encode(gen_random_bytes(12), 'hex'), r.id, a.id, true, '*', now(), now()
20
+ FROM grants g
21
+ JOIN "roles" r ON r.name = g.role
22
+ JOIN "apis" a ON a."apiGroup" = g."group"
23
+ WHERE NOT EXISTS (SELECT 1 FROM "apisRolesMapping" m WHERE m."roleId" = r.id AND m."apiId" = a.id);
24
+
25
+ -- The Jobs and Job Runs menus (both jobs:view).
26
+ INSERT INTO "menuRolesMapping" (id, "menuId", "roleId", "isActive", "mtId1", "recordCreatedDate", "recordModifiedDate")
27
+ SELECT encode(gen_random_bytes(12), 'hex'), m.id, r.id, true, '*', now(), now()
28
+ FROM "roles" r JOIN "menus" m ON m."menuGroup" = 'jobs:view'
29
+ WHERE r.name IN ('Admin', 'Editor')
30
+ AND NOT EXISTS (SELECT 1 FROM "menuRolesMapping" x WHERE x."roleId" = r.id AND x."menuId" = m.id);
@@ -0,0 +1,71 @@
1
+ // WHAT THIS APP SERVES, by group — registered with auth at startup.
2
+ //
3
+ // app.js mounts each router with its catalog (createApp routes
4
+ // `{ router, catalog }`, @xeplr/base-apis 3.3), and base-apis sends it to auth
5
+ // with the mount prefix in front. Auth adds the `METHOD /path` rows it lacks:
6
+ // a route that names its `label` (the requireApi row guarding it today) gets
7
+ // exactly that row's roles; a route without one gets the roles holding its
8
+ // group (migrations-auth/0006…0010). Rows already there are never changed.
9
+ //
10
+ // The packages bring their own: @xeplr/backups' catalog (/api/monitor/connections)
11
+ // and @xeplr/jobs' (/api). Every route each router serves is here and nothing
12
+ // else: test/catalog.test.cjs lists the real routers and fails when they differ.
13
+ var monitorApi = require('./monitor').API;
14
+ var settingsApi = require('./appSettings').API;
15
+
16
+ function on(method, path, group, label) {
17
+ var r = { method: method, path: path, group: group };
18
+ if (label) r.label = label;
19
+ return r;
20
+ }
21
+
22
+ // routes/index.js, at '/'
23
+ exports.base = {
24
+ source: '@xeplr/monitor',
25
+ groups: ['monitor:view'],
26
+ routes: [
27
+ { method: 'GET', path: '/health', public: true },
28
+ on('GET', '/', 'monitor:view'),
29
+ on('GET', '/whoami', 'monitor:view')
30
+ ],
31
+ menus: [
32
+ { name: 'Home', group: 'monitor:view' },
33
+ { name: 'Monitor', group: 'monitor:view' }
34
+ ]
35
+ };
36
+
37
+ // routes/monitor.js, at /api/monitor
38
+ exports.monitor = {
39
+ source: '@xeplr/monitor',
40
+ groups: ['monitor:view', 'monitor:control', 'monitor:manage', 'monitor:audit'],
41
+ routes: [
42
+ on('GET', '/settings', 'monitor:view', monitorApi.settings),
43
+ on('GET', '/host', 'monitor:view', monitorApi.host),
44
+ on('GET', '/services', 'monitor:view', monitorApi.list),
45
+ on('POST', '/services', 'monitor:manage', monitorApi.add),
46
+ on('PATCH', '/services/:unit', 'monitor:manage', monitorApi.edit),
47
+ on('DELETE', '/services/:unit', 'monitor:manage', monitorApi.remove),
48
+ on('POST', '/services/:unit/:action', 'monitor:control', monitorApi.control),
49
+ on('GET', '/services/:unit/logs', 'monitor:view', monitorApi.logs),
50
+ on('GET', '/services/:unit/logs/live', 'monitor:view', monitorApi.live),
51
+ on('GET', '/services/:unit/history', 'monitor:view', monitorApi.history),
52
+ on('GET', '/history', 'monitor:view', monitorApi.serverHistory),
53
+ on('GET', '/traffic', 'monitor:view', monitorApi.traffic),
54
+ on('GET', '/audit', 'monitor:audit', monitorApi.audit)
55
+ ],
56
+ menus: []
57
+ };
58
+
59
+ // routes/appSettings.js, at /api/app-settings — Super Admin alone (system scope)
60
+ exports.appSettings = {
61
+ source: '@xeplr/monitor',
62
+ groups: ['settings:app'],
63
+ routes: [
64
+ on('GET', '/', 'settings:app', settingsApi.view),
65
+ on('POST', '/check', 'settings:app', settingsApi.check),
66
+ on('POST', '/', 'settings:app', settingsApi.save)
67
+ ],
68
+ menus: [
69
+ { name: 'App settings', group: 'settings:app' }
70
+ ]
71
+ };
@@ -24,24 +24,46 @@ router.get('/whoami', function(req, res) {
24
24
  // MOUNTED UNDER /api, and that prefix matters: the UI's dev server forwards
25
25
  // /api to this API and serves every other path as a page.
26
26
  //
27
- // The server's services — their state, processes and logs, and start / stop /
28
- // restart / kill (routes/monitor.js).
29
- // The logins the backups use (@xeplr/backups' router): the Backup connections
30
- // page and the jobs' dropdowns. Each route checked by this app's requireApi;
31
- // each change in the monitor's audit log, by the connection's name.
32
- var { requireApi } = require('@xeplr/base-apis');
33
- var services = require('../lib/services');
34
- router.use('/api/monitor/connections', require('@xeplr/backups').router({
35
- requireApi: requireApi,
36
- audit: function(e) { return services.audit({ email: e.email, ip: e.ip, action: e.action, unit: 'connection: ' + e.name, ok: e.ok, error: e.error }); }
37
- }));
38
- router.use('/api/monitor', require('./monitor'));
27
+ // mounts() gives app.js every router with its catalog (routes/catalog.js, and
28
+ // the packages' own), so @xeplr/base-apis registers each route with auth at
29
+ // startup, prefix applied. A function, not built here: jobs' router needs its
30
+ // connection, which setup mode does not have.
31
+ //
32
+ // /api/monitor/connections the logins the backups use (@xeplr/backups'
33
+ // router): each route checked by this app's
34
+ // requireApi; each change in the monitor's audit
35
+ // log, by the connection's name
36
+ // /api/monitor the server's services (routes/monitor.js)
37
+ // /api the backup jobs (@xeplr/jobs, lib/jobs.js):
38
+ // /api/jobs, /api/job-occurrences, /api/actions —
39
+ // checked against jobs' own apis rows
40
+ // (node_modules/@xeplr/jobs/migrations-auth)
41
+ // / /health, /, /whoami (above)
42
+ var catalog = require('./catalog');
39
43
 
40
- // The backup jobs (@xeplr/jobs, lib/jobs.js): /api/jobs, /api/job-occurrences,
41
- // /api/actions — the Jobs page of @xeplr/ui-jobs. Each operation checked
42
- // against jobs' own apis rows (node_modules/@xeplr/jobs/migrations-auth).
43
- router.use('/api', require('@xeplr/jobs').router({
44
- auth: { list: requireApi('List jobs'), getById: requireApi('Get job'), save: requireApi('Save job'), delete: requireApi('Delete job') }
45
- }));
44
+ function mounts() {
45
+ var { requireApi } = require('@xeplr/base-apis');
46
+ var backups = require('@xeplr/backups');
47
+ var jobs = require('@xeplr/jobs');
48
+ var services = require('../lib/services');
49
+ return {
50
+ '/api/monitor/connections': {
51
+ router: backups.router({
52
+ requireApi: requireApi,
53
+ audit: function(e) { return services.audit({ email: e.email, ip: e.ip, action: e.action, unit: 'connection: ' + e.name, ok: e.ok, error: e.error }); }
54
+ }),
55
+ catalog: backups.catalog
56
+ },
57
+ '/api/monitor': { router: require('./monitor'), catalog: catalog.monitor },
58
+ '/api': {
59
+ router: jobs.router({
60
+ auth: { list: requireApi('List jobs'), getById: requireApi('Get job'), save: requireApi('Save job'), delete: requireApi('Delete job') }
61
+ }),
62
+ catalog: jobs.catalog
63
+ },
64
+ '/': { router: router, catalog: catalog.base }
65
+ };
66
+ }
46
67
 
47
68
  module.exports = router;
69
+ module.exports.mounts = mounts;
@@ -181,8 +181,12 @@ function packageDir(name) {
181
181
  * so it always names the release that is running, whatever the env file
182
182
  * says; the installer passes it to its migrate step the same way.
183
183
  */
184
+ // The packages' permission files first, then the app's: the app's may grant
185
+ // the packages' rows (migrations-auth/0011 gives jobs' groups to Admin and
186
+ // Editor), which only works once those rows exist. On a fresh install the
187
+ // other order granted nothing — the ledger runs each file once.
184
188
  function authMigrations() {
185
- return [path.join(__dirname, 'migrations-auth'), path.join(packageDir('@xeplr/jobs'), 'migrations-auth'), path.join(packageDir('@xeplr/backups'), 'migrations-auth')];
189
+ return [path.join(packageDir('@xeplr/jobs'), 'migrations-auth'), path.join(packageDir('@xeplr/backups'), 'migrations-auth'), path.join(__dirname, 'migrations-auth')];
186
190
  }
187
191
 
188
192
  function config(apiDir, env, opts) {
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@xeplr/monitor",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@xeplr/monitor",
9
- "version": "1.1.0",
9
+ "version": "1.2.1",
10
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
18
  "@xeplr/cli": "^0.3.8",
19
19
  "@xeplr/db": "^1.1.0",
20
- "@xeplr/jobs": "^3.2.0",
20
+ "@xeplr/jobs": "^3.3.0",
21
21
  "@xeplr/setup": "^0.2.0",
22
22
  "@xeplr/utils": "^1.0.11",
23
23
  "dotenv": "^17.4.2",
@@ -561,17 +561,18 @@
561
561
  }
562
562
  },
563
563
  "node_modules/@xeplr/auth": {
564
- "version": "1.5.2",
565
- "resolved": "https://registry.npmjs.org/@xeplr/auth/-/auth-1.5.2.tgz",
566
- "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==",
567
567
  "license": "MIT",
568
568
  "dependencies": {
569
569
  "@xeplr/base-apis": "^2.0.0",
570
570
  "@xeplr/db": "^1.0.0",
571
- "@xeplr/utils": "^1.0.8",
571
+ "@xeplr/utils": "^2.1.0",
572
572
  "bcrypt": "^6.0.0",
573
573
  "ioredis": "^5.6.1",
574
574
  "jsonwebtoken": "^9.0.3",
575
+ "knex": "^3.3.0",
575
576
  "multer": "^2.3.0"
576
577
  },
577
578
  "bin": {
@@ -608,10 +609,74 @@
608
609
  }
609
610
  }
610
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
+ },
611
676
  "node_modules/@xeplr/backups": {
612
- "version": "0.1.1",
613
- "resolved": "https://registry.npmjs.org/@xeplr/backups/-/backups-0.1.1.tgz",
614
- "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==",
615
680
  "license": "MIT",
616
681
  "dependencies": {
617
682
  "@xeplr/utils": "^1.0.11"
@@ -626,9 +691,9 @@
626
691
  }
627
692
  },
628
693
  "node_modules/@xeplr/base-apis": {
629
- "version": "3.2.0",
630
- "resolved": "https://registry.npmjs.org/@xeplr/base-apis/-/base-apis-3.2.0.tgz",
631
- "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==",
632
697
  "license": "MIT",
633
698
  "dependencies": {
634
699
  "@xeplr/logs": "^1.0.0",
@@ -700,13 +765,13 @@
700
765
  "license": "MIT"
701
766
  },
702
767
  "node_modules/@xeplr/jobs": {
703
- "version": "3.2.0",
704
- "resolved": "https://registry.npmjs.org/@xeplr/jobs/-/jobs-3.2.0.tgz",
705
- "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==",
706
771
  "license": "MIT",
707
772
  "dependencies": {
708
773
  "@xeplr/actions": "^2.0.0",
709
- "@xeplr/base-apis": "^3.2.0",
774
+ "@xeplr/base-apis": "^3.3.0",
710
775
  "@xeplr/db": "^1.2.0",
711
776
  "@xeplr/schema-handler": "^1.0.0",
712
777
  "@xeplr/utils": "^1.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeplr/monitor",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
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": {
@@ -42,12 +42,12 @@
42
42
  "@aws-sdk/client-s3": "^3.1168.0",
43
43
  "@aws-sdk/lib-storage": "^3.1168.0",
44
44
  "@xeplr/actions": "^2.2.4",
45
- "@xeplr/auth": "^1.3.0",
46
- "@xeplr/backups": "^0.1.1",
47
- "@xeplr/base-apis": "^3.1.3",
45
+ "@xeplr/auth": "^1.11.0",
46
+ "@xeplr/backups": "^0.2.1",
47
+ "@xeplr/base-apis": "^3.3.0",
48
48
  "@xeplr/cli": "^0.3.8",
49
49
  "@xeplr/db": "^1.1.0",
50
- "@xeplr/jobs": "^3.2.0",
50
+ "@xeplr/jobs": "^3.3.0",
51
51
  "@xeplr/setup": "^0.2.0",
52
52
  "@xeplr/utils": "^1.0.11",
53
53
  "dotenv": "^17.4.2",