alive-ai 0.1.6 → 0.1.7
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/config/settings.example.json +1 -0
- package/core/self.py +12 -7
- package/package.json +1 -1
- package/pyproject.toml +1 -1
package/core/self.py
CHANGED
|
@@ -120,13 +120,18 @@ class Self:
|
|
|
120
120
|
# Start emotion decay timer
|
|
121
121
|
self._timer_task = asyncio.create_task(self._decay_timer())
|
|
122
122
|
|
|
123
|
-
#
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
self.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
# Hot reload is developer tooling. Keep it opt-in for normal npm installs.
|
|
124
|
+
import os
|
|
125
|
+
hot_reload_enabled = str(
|
|
126
|
+
self.config.settings.get("HOT_RELOAD_ENABLED", os.environ.get("ALIVE_AI_HOT_RELOAD", "false"))
|
|
127
|
+
).lower() in ("1", "true", "yes", "on")
|
|
128
|
+
if hot_reload_enabled:
|
|
129
|
+
try:
|
|
130
|
+
from .hot_reload import HotReloader
|
|
131
|
+
self._hot_reload = HotReloader(self.nervous)
|
|
132
|
+
self._hot_reload.start()
|
|
133
|
+
except Exception as e:
|
|
134
|
+
print(f"[{name}] Hot reload unavailable: {e}")
|
|
130
135
|
|
|
131
136
|
print(f"[{name}] Ready!")
|
|
132
137
|
|
package/package.json
CHANGED