nexo-brain 2.6.4 → 2.6.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/.claude-plugin/plugin.json +2 -2
- package/README.md +106 -60
- package/bin/nexo-brain.js +167 -23
- package/package.json +2 -2
- package/src/auto_update.py +21 -5
- package/src/cli.py +34 -3
- package/src/cron_recovery.py +48 -1
- package/src/doctor/providers/runtime.py +5 -0
- package/src/hooks/caffeinate-guard.sh +3 -3
- package/src/runtime_power.py +553 -8
- package/src/scripts/nexo-prevent-sleep.sh +8 -2
- package/src/nexo.db +0 -0
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
# NEXO Prevent Sleep — keeps the machine awake so nocturnal processes run.
|
|
3
3
|
#
|
|
4
|
-
# macOS: uses caffeinate
|
|
4
|
+
# macOS: uses native /usr/bin/caffeinate for best-effort background availability
|
|
5
5
|
# Linux: uses systemd-inhibit or caffeine if available, otherwise no-op
|
|
6
6
|
#
|
|
7
7
|
# Run as LaunchAgent (KeepAlive) or systemd service.
|
|
8
8
|
|
|
9
9
|
case "$(uname -s)" in
|
|
10
10
|
Darwin)
|
|
11
|
-
|
|
11
|
+
if [[ ! -x /usr/bin/caffeinate ]]; then
|
|
12
|
+
echo "[NEXO] /usr/bin/caffeinate not found. macOS power helper unavailable."
|
|
13
|
+
exit 1
|
|
14
|
+
fi
|
|
15
|
+
# Keep the helper alive as long as this service runs. On laptops with the
|
|
16
|
+
# lid closed, actual behavior still depends on hardware and OS policy.
|
|
17
|
+
exec /usr/bin/caffeinate -d -i -m -s /bin/bash -lc 'while :; do sleep 3600; done'
|
|
12
18
|
;;
|
|
13
19
|
Linux)
|
|
14
20
|
if command -v systemd-inhibit &>/dev/null; then
|
package/src/nexo.db
DELETED
|
Binary file
|