youclaw 4.6.3__tar.gz → 4.6.5__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.6.3/src/youclaw.egg-info → youclaw-4.6.5}/PKG-INFO +1 -1
  2. {youclaw-4.6.3 → youclaw-4.6.5}/pyproject.toml +1 -1
  3. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/dashboard.py +8 -1
  4. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/vector_manager.py +1 -1
  5. {youclaw-4.6.3 → youclaw-4.6.5/src/youclaw.egg-info}/PKG-INFO +1 -1
  6. {youclaw-4.6.3 → youclaw-4.6.5}/LICENSE +0 -0
  7. {youclaw-4.6.3 → youclaw-4.6.5}/MANIFEST.in +0 -0
  8. {youclaw-4.6.3 → youclaw-4.6.5}/README.md +0 -0
  9. {youclaw-4.6.3 → youclaw-4.6.5}/setup.cfg +0 -0
  10. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/__init__.py +0 -0
  11. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/bot.py +0 -0
  12. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/cli.py +0 -0
  13. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/commands.py +0 -0
  14. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/config.py +0 -0
  15. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/core_skills.py +0 -0
  16. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/discord_handler.py +0 -0
  17. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/env_manager.py +0 -0
  18. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/main.py +0 -0
  19. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/memory_manager.py +0 -0
  20. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/ollama_client.py +0 -0
  21. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/personality_manager.py +0 -0
  22. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/scheduler_manager.py +0 -0
  23. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/search_client.py +0 -0
  24. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/skills_manager.py +0 -0
  25. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw/telegram_handler.py +0 -0
  26. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw.egg-info/SOURCES.txt +0 -0
  27. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw.egg-info/dependency_links.txt +0 -0
  28. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw.egg-info/entry_points.txt +0 -0
  29. {youclaw-4.6.3 → youclaw-4.6.5}/src/youclaw.egg-info/requires.txt +0 -0
  30. {youclaw-4.6.3 → youclaw-4.6.5}/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.6.3
3
+ Version: 4.6.5
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.6.3"
7
+ version = "4.6.5"
8
8
  authors = [
9
9
  { name="Imran", email="imran@example.com" },
10
10
  ]
@@ -164,7 +164,10 @@ async def api_stats(request):
164
164
  }
165
165
 
166
166
  if is_admin:
167
- stats["available_models"] = await ollama_client.get_available_models()
167
+ try:
168
+ stats["available_models"] = await ollama_client.get_available_models()
169
+ except:
170
+ stats["available_models"] = []
168
171
 
169
172
  return web.json_response(stats)
170
173
  except Exception as e:
@@ -399,6 +402,10 @@ async def api_chat_stream(request):
399
402
 
400
403
  if not username or not message: return web.Response(text="Error: Missing params", status=400)
401
404
 
405
+ auth = await verify_session(request)
406
+ if not auth or auth['username'] != username:
407
+ return web.Response(text="Error: Unauthorized session scope", status=403)
408
+
402
409
  platform, user_id = await memory_manager.get_linked_identity(username)
403
410
  ctx = {"platform": platform or "dashboard", "user_id": user_id or f"dash_{username}"}
404
411
  history = await memory_manager.get_conversation_history(ctx["platform"], ctx["user_id"])
@@ -9,7 +9,7 @@ import numpy as np
9
9
  from typing import List, Dict, Any, Optional
10
10
  import aiosqlite
11
11
  import base64
12
- from ollama_client import ollama_client
12
+ from .ollama_client import ollama_client
13
13
 
14
14
  logger = logging.getLogger(__name__)
15
15
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: youclaw
3
- Version: 4.6.3
3
+ Version: 4.6.5
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
File without changes