cloudbrain-client 1.1.5__tar.gz → 1.1.6__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.5 → cloudbrain_client-1.1.6}/PKG-INFO +1 -1
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client/ai_websocket_client.py +3 -2
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client.egg-info/PKG-INFO +1 -1
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/pyproject.toml +1 -1
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/README.md +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client/__init__.py +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client/ai_conversation_helper.py +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client/cloudbrain_client.py +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client/cloudbrain_collaboration_helper.py +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client/cloudbrain_quick.py +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client/message_poller.py +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client.egg-info/SOURCES.txt +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client.egg-info/dependency_links.txt +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client.egg-info/entry_points.txt +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client.egg-info/requires.txt +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client.egg-info/top_level.txt +0 -0
- {cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/setup.cfg +0 -0
{cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client/ai_websocket_client.py
RENAMED
|
@@ -22,7 +22,8 @@ class AIWebSocketClient:
|
|
|
22
22
|
self.server_url = server_url
|
|
23
23
|
self.ws = None
|
|
24
24
|
self.connected = False
|
|
25
|
-
self.message_handlers =
|
|
25
|
+
self.message_handlers = {} # For request-response pattern
|
|
26
|
+
self.registered_handlers = [] # For general message handlers
|
|
26
27
|
self.ai_name = ai_name
|
|
27
28
|
self.ai_expertise = None
|
|
28
29
|
self.ai_version = None
|
|
@@ -122,7 +123,7 @@ class AIWebSocketClient:
|
|
|
122
123
|
print(f"⚠️ Unknown message type: {message_type}")
|
|
123
124
|
|
|
124
125
|
# Call registered handlers
|
|
125
|
-
for handler in self.
|
|
126
|
+
for handler in self.registered_handlers:
|
|
126
127
|
try:
|
|
127
128
|
await handler(data)
|
|
128
129
|
except Exception as e:
|
|
@@ -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.6"
|
|
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.5 → cloudbrain_client-1.1.6}/cloudbrain_client/ai_conversation_helper.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{cloudbrain_client-1.1.5 → cloudbrain_client-1.1.6}/cloudbrain_client.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|