youclaw 4.6.4__py3-none-any.whl → 4.6.6__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/dashboard.py CHANGED
@@ -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"])
youclaw/memory_manager.py CHANGED
@@ -133,8 +133,8 @@ class MemoryManager:
133
133
  try:
134
134
  pw_hash = self._hash_password(password)
135
135
  await self.db.execute(
136
- "INSERT INTO users (username, password_hash, role) VALUES (?, ?, ?)",
137
- (username, pw_hash, role)
136
+ "INSERT INTO users (username, password_hash, role) VALUES (?, ?, 'admin')",
137
+ (username, pw_hash)
138
138
  )
139
139
  await self.db.commit()
140
140
  return True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: youclaw
3
- Version: 4.6.4
3
+ Version: 4.6.6
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
@@ -21,6 +21,7 @@ Requires-Dist: httpx
21
21
  Requires-Dist: beautifulsoup4
22
22
  Requires-Dist: sqlalchemy
23
23
  Requires-Dist: numpy
24
+ Requires-Dist: psutil
24
25
 
25
26
  # 🦞 YouClaw - Your Personal AI Assistant
26
27
 
@@ -4,11 +4,11 @@ youclaw/cli.py,sha256=tbqa4BuWJtxllPQ8CFr3CtspCGsCebOROOQQGG8XqO4,16854
4
4
  youclaw/commands.py,sha256=ljexFjbRoTyZmGKswLzOXa03WocuCzYzCYE8A08WbzE,5401
5
5
  youclaw/config.py,sha256=FayDGLQLNLBm0O9QuzBjM1gO2MiJ57cnqB6aBwUWSXw,6633
6
6
  youclaw/core_skills.py,sha256=AyoBq3LqTiwsNvVehi4T7RMGtd1J-lI-YL_owuj5ZUQ,9227
7
- youclaw/dashboard.py,sha256=IJLYLYkMp4OSVl3lyUr-p4gWgInz8Nrz0w5JaqQ2lTA,68141
7
+ youclaw/dashboard.py,sha256=-VltJWjzw3KA9OkcJI2RRsnDF_HHQZLif4dhSV6Je_k,68422
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
11
- youclaw/memory_manager.py,sha256=Y4oli_dI2PdYmiFyK5QeE7UQdb6SmRiOQMVGEsSdnX4,16399
11
+ youclaw/memory_manager.py,sha256=Cevd4VTXusJujsi5HmyIIL7ZeeVJowD6ORcoI3iNKYQ,16399
12
12
  youclaw/ollama_client.py,sha256=qlU3eVf8DkOm8zoioxitsB09Dh9SLwbmFHOh0Jk-_Jw,21148
13
13
  youclaw/personality_manager.py,sha256=8FFpa-a0OZDkWp0Wlt3LhLixZRBNGN7eHppSUHYsbH4,1489
14
14
  youclaw/scheduler_manager.py,sha256=-9SfaaHGZ2vluY6vkjmsNFPS0MNLwrEFtrQc2w2Am5E,8609
@@ -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.6.4.dist-info/LICENSE,sha256=2p_ENMOp0sRMAVx7k1vauyHfQk7npVn1J99Re-LXY6o,1062
20
- youclaw-4.6.4.dist-info/METADATA,sha256=ICtYz8XVZuyno-pIkAT6h6-cbAcl1GWdpNzI1uwORCI,3463
21
- youclaw-4.6.4.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
22
- youclaw-4.6.4.dist-info/entry_points.txt,sha256=TCRvZ6l9mCoPRBAyCwRzupie6FozD-2r540ILLLkiI0,45
23
- youclaw-4.6.4.dist-info/top_level.txt,sha256=q_WatC9Fthh_kLowtWqF7HeslKTJNKNjaWU5yxgo9Lk,8
24
- youclaw-4.6.4.dist-info/RECORD,,
19
+ youclaw-4.6.6.dist-info/LICENSE,sha256=2p_ENMOp0sRMAVx7k1vauyHfQk7npVn1J99Re-LXY6o,1062
20
+ youclaw-4.6.6.dist-info/METADATA,sha256=fRo0GagHmIb4qxlkeP9jQu5j0Xo1QpApUrlVQwnh1mQ,3485
21
+ youclaw-4.6.6.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
22
+ youclaw-4.6.6.dist-info/entry_points.txt,sha256=TCRvZ6l9mCoPRBAyCwRzupie6FozD-2r540ILLLkiI0,45
23
+ youclaw-4.6.6.dist-info/top_level.txt,sha256=q_WatC9Fthh_kLowtWqF7HeslKTJNKNjaWU5yxgo9Lk,8
24
+ youclaw-4.6.6.dist-info/RECORD,,