@typed-assistant/builder 0.0.23 → 0.0.25
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/appProcess.tsx +3 -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.25",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./appProcess": "./src/appProcess.tsx",
|
|
6
6
|
"./bunInstall": "./src/bunInstall.tsx",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"ts-toolbelt": "^9.6.0",
|
|
26
26
|
"typescript": "^5.3.3",
|
|
27
27
|
"@typed-assistant/eslint-config": "0.0.5",
|
|
28
|
-
"@typed-assistant/
|
|
28
|
+
"@typed-assistant/logger": "0.0.9",
|
|
29
29
|
"@typed-assistant/utils": "0.0.8",
|
|
30
|
-
"@typed-assistant/
|
|
30
|
+
"@typed-assistant/typescript-config": "0.0.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"home-assistant-js-websocket": "^8.2.0"
|
package/src/appProcess.tsx
CHANGED
|
@@ -65,6 +65,7 @@ const checkProcesses = async (
|
|
|
65
65
|
if (multipleProcessesErrorCount > 5) {
|
|
66
66
|
const message = `🚨 Multiple processes detected. Restarting TypedAssistant addon...`
|
|
67
67
|
log(message)
|
|
68
|
+
log(ps)
|
|
68
69
|
onProcessError?.(message)
|
|
69
70
|
restartAddon()
|
|
70
71
|
}
|
|
@@ -77,6 +78,7 @@ const checkProcesses = async (
|
|
|
77
78
|
if (noProcessesErrorCount > 5) {
|
|
78
79
|
const message = `🚨 No processes detected. Restarting TypedAssistant addon...`
|
|
79
80
|
log(message)
|
|
81
|
+
log(ps)
|
|
80
82
|
onProcessError?.(message)
|
|
81
83
|
restartAddon()
|
|
82
84
|
}
|
|
@@ -154,7 +156,7 @@ const restartAddon = async () => {
|
|
|
154
156
|
return
|
|
155
157
|
}
|
|
156
158
|
log("♻️ Restarting addon...")
|
|
157
|
-
await
|
|
159
|
+
await getSupervisorAPI(`/addons/self/restart`, { method: "POST" })
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
const getAddonInfo = async () => {
|