@sleepy-ai/cli 0.1.4 → 0.1.6
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,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"name": "@sleepy-ai/cli",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=18"
|
|
9
|
+
},
|
|
7
10
|
"publishConfig": {
|
|
8
11
|
"access": "public"
|
|
9
12
|
},
|
|
@@ -285,9 +285,10 @@ export const TuiThreadCommand = cmd({
|
|
|
285
285
|
events: createEventSource(client),
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
// Check for updates on startup and every hour thereafter
|
|
289
|
+
const checkUpgrade = () => client.call("checkUpgrade", { directory: cwd }).catch(() => {})
|
|
290
|
+
setTimeout(checkUpgrade, 1000).unref?.()
|
|
291
|
+
setInterval(checkUpgrade, 60 * 60 * 1000).unref?.()
|
|
291
292
|
|
|
292
293
|
try {
|
|
293
294
|
await tui({
|