@sleepy-ai/cli 0.1.5 → 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,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "name": "@sleepy-ai/cli",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -285,9 +285,10 @@ export const TuiThreadCommand = cmd({
285
285
  events: createEventSource(client),
286
286
  }
287
287
 
288
- setTimeout(() => {
289
- client.call("checkUpgrade", { directory: cwd }).catch(() => {})
290
- }, 1000).unref?.()
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({