@typed-assistant/builder 0.0.66 → 0.0.68
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 +2 -2
- package/src/setupWebserver.tsx +10 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typed-assistant/builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.68",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./appProcess": "./src/appProcess.tsx",
|
|
6
6
|
"./bunInstall": "./src/bunInstall.tsx",
|
|
@@ -25,7 +25,7 @@
|
|
|
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.
|
|
28
|
+
"@typed-assistant/eslint-config": "0.0.10",
|
|
29
29
|
"@typed-assistant/logger": "0.0.18",
|
|
30
30
|
"@typed-assistant/typescript-config": "0.0.9",
|
|
31
31
|
"@typed-assistant/utils": "0.0.16"
|
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()
|
|
@@ -310,6 +307,15 @@ export const startWebappServer = async ({
|
|
|
310
307
|
lastMessage,
|
|
311
308
|
),
|
|
312
309
|
)
|
|
310
|
+
logger.fatal(
|
|
311
|
+
{
|
|
312
|
+
emoji: "💀",
|
|
313
|
+
additionalDetails: JSON.stringify({
|
|
314
|
+
exitCode: getSubprocesses().app.exitCode,
|
|
315
|
+
}),
|
|
316
|
+
},
|
|
317
|
+
"Process is returning an empty string",
|
|
318
|
+
)
|
|
313
319
|
await new Promise((resolve) => setTimeout(resolve, 1000))
|
|
314
320
|
continue
|
|
315
321
|
}
|