@typed-assistant/builder 0.0.66 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typed-assistant/builder",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
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.9",
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"
@@ -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) =>