youclaw 4.7.3__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.7.3/src/youclaw.egg-info → youclaw-4.8.1}/PKG-INFO +1 -1
  2. {youclaw-4.7.3 → youclaw-4.8.1}/pyproject.toml +1 -1
  3. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/config.py +14 -2
  4. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/dashboard.py +7 -4
  5. {youclaw-4.7.3 → youclaw-4.8.1/src/youclaw.egg-info}/PKG-INFO +1 -1
  6. {youclaw-4.7.3 → youclaw-4.8.1}/LICENSE +0 -0
  7. {youclaw-4.7.3 → youclaw-4.8.1}/MANIFEST.in +0 -0
  8. {youclaw-4.7.3 → youclaw-4.8.1}/README.md +0 -0
  9. {youclaw-4.7.3 → youclaw-4.8.1}/setup.cfg +0 -0
  10. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/__init__.py +0 -0
  11. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/bot.py +0 -0
  12. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/cli.py +0 -0
  13. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/commands.py +0 -0
  14. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/core_skills.py +0 -0
  15. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/discord_handler.py +0 -0
  16. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/env_manager.py +0 -0
  17. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/main.py +0 -0
  18. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/memory_manager.py +0 -0
  19. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/ollama_client.py +0 -0
  20. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/personality_manager.py +0 -0
  21. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/scheduler_manager.py +0 -0
  22. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/search_client.py +0 -0
  23. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/skills_manager.py +0 -0
  24. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/telegram_handler.py +0 -0
  25. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw/vector_manager.py +0 -0
  26. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw.egg-info/SOURCES.txt +0 -0
  27. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw.egg-info/dependency_links.txt +0 -0
  28. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw.egg-info/entry_points.txt +0 -0
  29. {youclaw-4.7.3 → youclaw-4.8.1}/src/youclaw.egg-info/requires.txt +0 -0
  30. {youclaw-4.7.3 → 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.7.3
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.7.3"
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
 
@@ -490,7 +490,7 @@ DASHBOARD_HTML = """
490
490
  <head>
491
491
  <meta charset="UTF-8">
492
492
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
493
- <title>YouClaw V4.7.3 | Justice Neural Hub 🦞</title>
493
+ <title>YouClaw V4.8.0 | Justice Neural Hub 🦞</title>
494
494
  <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
495
495
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
496
496
  <style>
@@ -783,7 +783,7 @@ DASHBOARD_HTML = """
783
783
  <!-- Sidebar Navigation -->
784
784
  <nav class="sidebar" id="app-sidebar" style="display: none;">
785
785
  <div>
786
- <div class="sidebar-logo">🦞 YOUCLAW <span style="font-size: 0.6rem; color: var(--primary);">V4.7.3</span></div>
786
+ <div class="sidebar-logo">🦞 YOUCLAW <span style="font-size: 0.6rem; color: var(--primary);">V4.8.0</span></div>
787
787
  <div class="nav-list">
788
788
  <div class="nav-item active" id="nav-dash" onclick="switchView('dashboard')"><i>📊</i> Control Center</div>
789
789
  <div class="nav-item" id="nav-chat" onclick="switchView('chat')"><i>💬</i> Neural Terminal</div>
@@ -828,7 +828,8 @@ DASHBOARD_HTML = """
828
828
  <span class="input-label">Ollama Host URL</span>
829
829
  <input type="text" id="vault-ollama" class="text-input" placeholder="http://localhost:11434">
830
830
  </div>
831
- <div style="font-size: 0.8rem; color: var(--text-dim); margin-top: -10px;">Changing this will instantly verify connectivity.</div>
831
+ <div style="font-size: 0.8rem; color: var(--text-dim); margin-top: -10px; margin-bottom: 12px;">Changing this will instantly verify connectivity.</div>
832
+ <button class="btn btn-primary" onclick="saveSecrets(this)">Connect Core 🔌</button>
832
833
  </div>
833
834
 
834
835
  <div class="card" style="grid-column: span 6;">
@@ -1376,6 +1377,7 @@ DASHBOARD_HTML = """
1376
1377
  }
1377
1378
 
1378
1379
  initDashboard();
1380
+ console.log("🦞 YouClaw Dashboard v4.8.0 loaded successfully");
1379
1381
  </script>
1380
1382
  </body>
1381
1383
  </html>
@@ -1388,8 +1390,9 @@ async def run_dashboard(bot_instance=None, port=8080):
1388
1390
  app['bot'] = bot_instance
1389
1391
  app.router.add_routes(routes)
1390
1392
 
1391
- await ollama_client.initialize()
1392
1393
  await memory_manager.initialize()
1394
+ await config.refresh_from_db() # Load saved settings (Ollama URL etc)
1395
+ await ollama_client.initialize()
1393
1396
 
1394
1397
  print(f"🦞 YouClaw Dashboard starting on http://0.0.0.0:{port}")
1395
1398
  runner = web.AppRunner(app)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: youclaw
3
- Version: 4.7.3
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