youclaw 4.8.0__py3-none-any.whl → 4.8.1__py3-none-any.whl

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/config.py CHANGED
@@ -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
 
youclaw/dashboard.py CHANGED
@@ -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
@@ -2,9 +2,9 @@ youclaw/__init__.py,sha256=O-gFt_L-TungI3JyIY56YGTiizaIjpKKTWBVAWToqmg,539
2
2
  youclaw/bot.py,sha256=-kpw0AE4svBrdz0ZpcJIZi-ZQT1yy_mXIcpRKqei6r4,5931
3
3
  youclaw/cli.py,sha256=jyJscbEBXA2rfADW5E00uo5wWblLafHugZc_kG7r3aA,17813
4
4
  youclaw/commands.py,sha256=ljexFjbRoTyZmGKswLzOXa03WocuCzYzCYE8A08WbzE,5401
5
- youclaw/config.py,sha256=FayDGLQLNLBm0O9QuzBjM1gO2MiJ57cnqB6aBwUWSXw,6633
5
+ youclaw/config.py,sha256=AMUkasJQJ4W0Sruwoika5aHwE2jBXLUAFyfE_0nW7RA,7276
6
6
  youclaw/core_skills.py,sha256=AyoBq3LqTiwsNvVehi4T7RMGtd1J-lI-YL_owuj5ZUQ,9227
7
- youclaw/dashboard.py,sha256=QjQGpoR7peyr2zosNZb5IW_P1zNh68nRfm916PKK-I4,71179
7
+ youclaw/dashboard.py,sha256=H6x2UbHgQ_opnaAPj-luIlBuCLFNvrnNq6tH2uGRRYQ,71253
8
8
  youclaw/discord_handler.py,sha256=L3bsptg2gtpXm_HOcqmHrT45KqshnAkBXzM0S6I1o2g,7184
9
9
  youclaw/env_manager.py,sha256=uvR5ix7hB8gyv6yStRfq6s7o-ALw-dead81GI8u0CPE,1867
10
10
  youclaw/main.py,sha256=5hk17gusRviT1LpAEQ1uUZFZmmmf2tpiJ8OFoF5mflA,9090
@@ -16,9 +16,9 @@ youclaw/search_client.py,sha256=fSbflx5nclGhMfFxNScaNM15RKxO_dQbCgtId7Ggmjk,2984
16
16
  youclaw/skills_manager.py,sha256=useUV9eLY_sFULY1jHNjyD_VteU-aN8Lw6OKqdnuZNc,5183
17
17
  youclaw/telegram_handler.py,sha256=is34s3QPtJyph5HfBb_Xw6dUCzOJb2NXqt3ylApX96E,6288
18
18
  youclaw/vector_manager.py,sha256=IYIVijCEUbJq_tZ5w_E9n0O6vCaXBCaKpuQiKoDuBc8,3391
19
- youclaw-4.8.0.dist-info/LICENSE,sha256=2p_ENMOp0sRMAVx7k1vauyHfQk7npVn1J99Re-LXY6o,1062
20
- youclaw-4.8.0.dist-info/METADATA,sha256=-2e6mSuEJZolXQIGljr_HfMYsF1WChBV3iNW8JlD04o,3485
21
- youclaw-4.8.0.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
22
- youclaw-4.8.0.dist-info/entry_points.txt,sha256=TCRvZ6l9mCoPRBAyCwRzupie6FozD-2r540ILLLkiI0,45
23
- youclaw-4.8.0.dist-info/top_level.txt,sha256=q_WatC9Fthh_kLowtWqF7HeslKTJNKNjaWU5yxgo9Lk,8
24
- youclaw-4.8.0.dist-info/RECORD,,
19
+ youclaw-4.8.1.dist-info/LICENSE,sha256=2p_ENMOp0sRMAVx7k1vauyHfQk7npVn1J99Re-LXY6o,1062
20
+ youclaw-4.8.1.dist-info/METADATA,sha256=xkITVkMiVYxnHzsoNBGr4G5To64tzzb6xz9dHfLmSWY,3485
21
+ youclaw-4.8.1.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
22
+ youclaw-4.8.1.dist-info/entry_points.txt,sha256=TCRvZ6l9mCoPRBAyCwRzupie6FozD-2r540ILLLkiI0,45
23
+ youclaw-4.8.1.dist-info/top_level.txt,sha256=q_WatC9Fthh_kLowtWqF7HeslKTJNKNjaWU5yxgo9Lk,8
24
+ youclaw-4.8.1.dist-info/RECORD,,