youclaw 4.8.0__tar.gz → 4.8.1__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.
Files changed (30) hide show
  1. {youclaw-4.8.0/src/youclaw.egg-info → youclaw-4.8.1}/PKG-INFO +1 -1
  2. {youclaw-4.8.0 → youclaw-4.8.1}/pyproject.toml +1 -1
  3. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/config.py +14 -2
  4. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/dashboard.py +2 -1
  5. {youclaw-4.8.0 → youclaw-4.8.1/src/youclaw.egg-info}/PKG-INFO +1 -1
  6. {youclaw-4.8.0 → youclaw-4.8.1}/LICENSE +0 -0
  7. {youclaw-4.8.0 → youclaw-4.8.1}/MANIFEST.in +0 -0
  8. {youclaw-4.8.0 → youclaw-4.8.1}/README.md +0 -0
  9. {youclaw-4.8.0 → youclaw-4.8.1}/setup.cfg +0 -0
  10. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/__init__.py +0 -0
  11. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/bot.py +0 -0
  12. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/cli.py +0 -0
  13. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/commands.py +0 -0
  14. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/core_skills.py +0 -0
  15. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/discord_handler.py +0 -0
  16. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/env_manager.py +0 -0
  17. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/main.py +0 -0
  18. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/memory_manager.py +0 -0
  19. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/ollama_client.py +0 -0
  20. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/personality_manager.py +0 -0
  21. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/scheduler_manager.py +0 -0
  22. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/search_client.py +0 -0
  23. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/skills_manager.py +0 -0
  24. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/telegram_handler.py +0 -0
  25. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/vector_manager.py +0 -0
  26. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw.egg-info/SOURCES.txt +0 -0
  27. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw.egg-info/dependency_links.txt +0 -0
  28. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw.egg-info/entry_points.txt +0 -0
  29. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw.egg-info/requires.txt +0 -0
  30. {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: youclaw
3
- Version: 4.8.0
3
+ Version: 4.8.1
4
4
  Summary: Your Personal AI Assistant - Universal Neural Core
5
5
  Author-email: Imran <imran@example.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "youclaw"
7
- version = "4.8.0"
7
+ version = "4.8.1"
8
8
  authors = [
9
9
  { name="Imran", email="imran@example.com" },
10
10
  ]
@@ -150,9 +150,21 @@ class Config:
150
150
  am = await memory_manager.get_global_setting("active_model")
151
151
  if am and am.strip():
152
152
  self.ollama.model = am
153
- # Note: ollama_client properties are tied to this config instance
153
+ # Model Persistence
154
+ am = await memory_manager.get_global_setting("active_model")
155
+ if am and am.strip():
156
+ self.ollama.model = am
157
+
158
+ # Host Persistence (Fixes "Vanishing URL" bug)
159
+ oh = await memory_manager.get_global_setting("ollama_host")
160
+ if oh and oh.strip():
161
+ self.ollama.host = oh
162
+ # Re-init session if needed handled by client, but host property is dynamic if we used config directly
163
+ # ollama_client uses config.ollama.host property, so this update is immediate.
164
+
165
+ # Note: ollama_client properties are tied to this config instance
154
166
 
155
- logger.info(f"Config Refreshed: Discord={self.discord.enabled}, Telegram={self.telegram.enabled}, Search={self.search_url}")
167
+ logger.info(f"Config Refreshed: Host={self.ollama.host}, Model={self.ollama.model}, Discord={self.discord.enabled}, Telegram={self.telegram.enabled}")
156
168
  except Exception as e:
157
169
  logger.error(f"Error refreshing config from DB: {e}")
158
170
 
@@ -1390,8 +1390,9 @@ async def run_dashboard(bot_instance=None, port=8080):
1390
1390
  app['bot'] = bot_instance
1391
1391
  app.router.add_routes(routes)
1392
1392
 
1393
- await ollama_client.initialize()
1394
1393
  await memory_manager.initialize()
1394
+ await config.refresh_from_db() # Load saved settings (Ollama URL etc)
1395
+ await ollama_client.initialize()
1395
1396
 
1396
1397
  print(f"🦞 YouClaw Dashboard starting on http://0.0.0.0:{port}")
1397
1398
  runner = web.AppRunner(app)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: youclaw
3
- Version: 4.8.0
3
+ Version: 4.8.1
4
4
  Summary: Your Personal AI Assistant - Universal Neural Core
5
5
  Author-email: Imran <imran@example.com>
6
6
  Classifier: Programming Language :: Python :: 3
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