@typed-assistant/builder 0.0.65 → 0.0.67
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/package.json +3 -3
- package/src/setupWebserver.tsx +12 -4
- package/src/webserver/Logs.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typed-assistant/builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.67",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./appProcess": "./src/appProcess.tsx",
|
|
6
6
|
"./bunInstall": "./src/bunInstall.tsx",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"home-assistant-js-websocket": "^8.2.0",
|
|
26
26
|
"ts-toolbelt": "^9.6.0",
|
|
27
27
|
"typescript": "^5.3.3",
|
|
28
|
-
"@typed-assistant/eslint-config": "0.0.
|
|
29
|
-
"@typed-assistant/typescript-config": "0.0.9",
|
|
28
|
+
"@typed-assistant/eslint-config": "0.0.10",
|
|
30
29
|
"@typed-assistant/logger": "0.0.18",
|
|
30
|
+
"@typed-assistant/typescript-config": "0.0.9",
|
|
31
31
|
"@typed-assistant/utils": "0.0.16"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
package/src/setupWebserver.tsx
CHANGED
|
@@ -92,10 +92,6 @@ const getStats = async () => {
|
|
|
92
92
|
? data.data.memory_usage
|
|
93
93
|
: stats.max_memory_usage,
|
|
94
94
|
}
|
|
95
|
-
logger.debug(
|
|
96
|
-
{ additionalDetails: JSON.stringify(stats, null, 2), emoji: "📊" },
|
|
97
|
-
"Stats updated",
|
|
98
|
-
)
|
|
99
95
|
}
|
|
100
96
|
|
|
101
97
|
setTimeout(getStats, 10 * ONE_SECOND)
|
|
@@ -289,6 +285,7 @@ export const startWebappServer = async ({
|
|
|
289
285
|
|
|
290
286
|
// eslint-disable-next-line no-constant-condition
|
|
291
287
|
while (true) {
|
|
288
|
+
getSubprocesses().app.exitCode
|
|
292
289
|
const stdoutReader = getReader("stdout", getSubprocesses().app.stdout)
|
|
293
290
|
const stderrReader = getReader("stderr", getSubprocesses().app.stderr)
|
|
294
291
|
const { value } = await stdoutReader.read()
|
|
@@ -302,6 +299,17 @@ export const startWebappServer = async ({
|
|
|
302
299
|
const convertedMessage = convert.toHtml(decodedString)
|
|
303
300
|
if (convertedMessage !== "") {
|
|
304
301
|
lastMessage = convertedMessage
|
|
302
|
+
logger.fatal(
|
|
303
|
+
{
|
|
304
|
+
emoji: "💀",
|
|
305
|
+
additionalDetails: JSON.stringify(
|
|
306
|
+
{ exitCode: getSubprocesses().app.exitCode },
|
|
307
|
+
null,
|
|
308
|
+
2,
|
|
309
|
+
),
|
|
310
|
+
},
|
|
311
|
+
"Process is returning an empty string",
|
|
312
|
+
)
|
|
305
313
|
}
|
|
306
314
|
if (convertedMessage === "") {
|
|
307
315
|
subscribers.forEach((send) =>
|
package/src/webserver/Logs.tsx
CHANGED
|
@@ -99,7 +99,7 @@ export const Logs = ({ basePath }: { basePath: string }) => {
|
|
|
99
99
|
)
|
|
100
100
|
.map((log) => {
|
|
101
101
|
return (
|
|
102
|
-
<li key={
|
|
102
|
+
<li key={log.id} className="flex gap-1">
|
|
103
103
|
<span className="text-slate-400 mr-2">
|
|
104
104
|
{dateTimeVisibility === "hidden"
|
|
105
105
|
? null
|