cloudbrain-client 1.1.4__tar.gz → 1.1.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.
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/PKG-INFO +1 -1
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client/ai_websocket_client.py +5 -3
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client/cloudbrain_collaboration_helper.py +1 -1
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client.egg-info/PKG-INFO +1 -1
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/pyproject.toml +1 -1
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/README.md +0 -0
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client/__init__.py +0 -0
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client/ai_conversation_helper.py +0 -0
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client/cloudbrain_client.py +0 -0
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client/cloudbrain_quick.py +0 -0
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client/message_poller.py +0 -0
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client.egg-info/SOURCES.txt +0 -0
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client.egg-info/dependency_links.txt +0 -0
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client.egg-info/entry_points.txt +0 -0
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client.egg-info/requires.txt +0 -0
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client.egg-info/top_level.txt +0 -0
- {cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/setup.cfg +0 -0
{cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client/ai_websocket_client.py
RENAMED
|
@@ -17,13 +17,13 @@ from typing import Optional, Callable
|
|
|
17
17
|
class AIWebSocketClient:
|
|
18
18
|
"""Generic WebSocket client for AI communication"""
|
|
19
19
|
|
|
20
|
-
def __init__(self, ai_id: int, server_url: str = 'ws://127.0.0.1:8766'):
|
|
20
|
+
def __init__(self, ai_id: int, server_url: str = 'ws://127.0.0.1:8766', ai_name: str = None):
|
|
21
21
|
self.ai_id = ai_id
|
|
22
22
|
self.server_url = server_url
|
|
23
23
|
self.ws = None
|
|
24
24
|
self.connected = False
|
|
25
25
|
self.message_handlers = []
|
|
26
|
-
self.ai_name =
|
|
26
|
+
self.ai_name = ai_name
|
|
27
27
|
self.ai_expertise = None
|
|
28
28
|
self.ai_version = None
|
|
29
29
|
|
|
@@ -33,10 +33,12 @@ class AIWebSocketClient:
|
|
|
33
33
|
print(f"🔗 Connecting to {self.server_url}...")
|
|
34
34
|
self.ws = await websockets.connect(self.server_url)
|
|
35
35
|
|
|
36
|
-
# Authenticate -
|
|
36
|
+
# Authenticate - send ai_id and ai_name (for auto-assignment)
|
|
37
37
|
auth_msg = {
|
|
38
38
|
'ai_id': self.ai_id
|
|
39
39
|
}
|
|
40
|
+
if self.ai_name:
|
|
41
|
+
auth_msg['ai_name'] = self.ai_name
|
|
40
42
|
await self.ws.send(json.dumps(auth_msg))
|
|
41
43
|
|
|
42
44
|
# Wait for welcome message
|
|
@@ -281,7 +281,7 @@ class CloudBrainCollaborationHelper:
|
|
|
281
281
|
async def connect(self):
|
|
282
282
|
"""Connect to CloudBrain server"""
|
|
283
283
|
try:
|
|
284
|
-
self.client = AIWebSocketClient(self.ai_id, self.server_url)
|
|
284
|
+
self.client = AIWebSocketClient(self.ai_id, self.server_url, self.ai_name)
|
|
285
285
|
await self.client.connect(start_message_loop=False)
|
|
286
286
|
self.connected = True
|
|
287
287
|
self.ai_name = self.client.ai_name
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cloudbrain-client"
|
|
7
|
-
version = "1.1.
|
|
7
|
+
version = "1.1.5"
|
|
8
8
|
description = "CloudBrain Client - AI collaboration and communication system with AI-to-AI collaboration support and documentation access"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
File without changes
|
|
File without changes
|
{cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client/ai_conversation_helper.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{cloudbrain_client-1.1.4 → cloudbrain_client-1.1.5}/cloudbrain_client.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|