youclaw 4.6.10__tar.gz → 4.6.11__tar.gz
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.
- {youclaw-4.6.10/src/youclaw.egg-info → youclaw-4.6.11}/PKG-INFO +1 -1
- {youclaw-4.6.10 → youclaw-4.6.11}/pyproject.toml +1 -1
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/dashboard.py +10 -9
- {youclaw-4.6.10 → youclaw-4.6.11/src/youclaw.egg-info}/PKG-INFO +1 -1
- {youclaw-4.6.10 → youclaw-4.6.11}/LICENSE +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/MANIFEST.in +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/README.md +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/setup.cfg +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/__init__.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/bot.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/cli.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/commands.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/config.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/core_skills.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/discord_handler.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/env_manager.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/main.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/memory_manager.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/ollama_client.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/personality_manager.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/scheduler_manager.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/search_client.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/skills_manager.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/telegram_handler.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw/vector_manager.py +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw.egg-info/SOURCES.txt +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw.egg-info/dependency_links.txt +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw.egg-info/entry_points.txt +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw.egg-info/requires.txt +0 -0
- {youclaw-4.6.10 → youclaw-4.6.11}/src/youclaw.egg-info/top_level.txt +0 -0
|
@@ -142,23 +142,24 @@ async def api_stats(request):
|
|
|
142
142
|
async with memory_manager.db.execute("SELECT COUNT(DISTINCT user_id) FROM conversations") as cursor:
|
|
143
143
|
unique_users = (await cursor.fetchone())[0]
|
|
144
144
|
|
|
145
|
-
# Calculate uptime
|
|
146
|
-
import time,
|
|
145
|
+
# Calculate uptime (simplified to avoid psutil issues)
|
|
146
|
+
import time, os
|
|
147
147
|
try:
|
|
148
|
-
process
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
uptime_str = f"{hours}h {minutes}m"
|
|
148
|
+
# Just show process start time relative to now if possible,
|
|
149
|
+
# but without psutil we can't easily get start time cross-platform.
|
|
150
|
+
# We will skip uptime or assume 0 for stability.
|
|
151
|
+
uptime_str = "Running"
|
|
153
152
|
except:
|
|
154
|
-
uptime_str = "
|
|
153
|
+
uptime_str = "Unknown"
|
|
155
154
|
|
|
156
155
|
from personality_manager import PERSONALITIES, DEFAULT_PERSONALITY
|
|
157
156
|
active_p = await memory_manager.get_global_setting("active_personality", DEFAULT_PERSONALITY)
|
|
158
157
|
personality_name = PERSONALITIES.get(active_p, PERSONALITIES[DEFAULT_PERSONALITY])['name']
|
|
159
158
|
|
|
160
159
|
try:
|
|
161
|
-
|
|
160
|
+
import asyncio
|
|
161
|
+
# Force 3-second timeout for dashboard responsiveness
|
|
162
|
+
ollama_health = await asyncio.wait_for(ollama_client.check_health(), timeout=2.0)
|
|
162
163
|
except:
|
|
163
164
|
ollama_health = False
|
|
164
165
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|