smart-home-engine 1.41.1 → 1.42.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,4 +1,4 @@
1
- import{m as O}from"./monaco-langs-DKJI_o9J.js";import{t as I}from"./index-BSntxSQW.js";/*!-----------------------------------------------------------------------------
1
+ import{m as O}from"./monaco-langs-DKJI_o9J.js";import{t as I}from"./index-fKlQBrQH.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -172,10 +172,10 @@
172
172
  }
173
173
  })();
174
174
  </script>
175
- <script type="module" crossorigin src="/assets/index-BSntxSQW.js"></script>
175
+ <script type="module" crossorigin src="/assets/index-fKlQBrQH.js"></script>
176
176
  <link rel="modulepreload" crossorigin href="/assets/monaco-langs-DKJI_o9J.js">
177
177
  <link rel="stylesheet" crossorigin href="/assets/monaco-langs-DyX1CsEw.css">
178
- <link rel="stylesheet" crossorigin href="/assets/index-CEoqAVCK.css">
178
+ <link rel="stylesheet" crossorigin href="/assets/index-55TivCbD.css">
179
179
  </head>
180
180
  <body>
181
181
  <div id="app"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-home-engine",
3
- "version": "1.41.1",
3
+ "version": "1.42.0",
4
4
  "description": "Node.js based script runner for use in MQTT based Smart Home environments",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -16,6 +16,7 @@
16
16
  const express = require('express');
17
17
  const path = require('path');
18
18
  const fs = require('fs');
19
+ const os = require('os');
19
20
  const crypto = require('crypto');
20
21
  const { execFile, spawn } = require('child_process');
21
22
  const { promisify } = require('util');
@@ -30,6 +31,9 @@ const { getBrokerLogBuffer } = require('./log-ws');
30
31
  // Default SSH identity file respects the configured data directory
31
32
  const DEFAULT_SSH_KEY = path.join(sheConfig['data-dir'], 'ssh', 'broker_id_ed25519');
32
33
 
34
+ // ssh-deploy falls back to the account she runs under when broker.ssh.user is unset
35
+ const DEFAULT_SSH_USER = os.userInfo().username;
36
+
33
37
  const router = express.Router();
34
38
 
35
39
  let _log = null;
@@ -110,7 +114,7 @@ router.get('/status', (req, res) => {
110
114
  }
111
115
  }
112
116
 
113
- res.json({ dynsec: ds, sys, sshKeyDefault: DEFAULT_SSH_KEY, sshConfigured, sshHost });
117
+ res.json({ dynsec: ds, sys, sshKeyDefault: DEFAULT_SSH_KEY, sshUserDefault: DEFAULT_SSH_USER, sshConfigured, sshHost });
114
118
  });
115
119
 
116
120
  // ── mosquitto.conf ─────────────────────────────────────────────────────────────