cellcog 2.8.2__tar.gz → 2.8.3__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.
- {cellcog-2.8.2 → cellcog-2.8.3}/PKG-INFO +1 -1
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/__init__.py +1 -1
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/daemon/main.py +8 -6
- {cellcog-2.8.2 → cellcog-2.8.3}/pyproject.toml +1 -1
- {cellcog-2.8.2 → cellcog-2.8.3}/.gitignore +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/LICENSE +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/README.md +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/auth.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/chat.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/client.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/config.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/daemon/__init__.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/daemon/delivery.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/daemon/state.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/docs/__init__.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/docs/api_reference.md +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/docs/support.md +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/exceptions.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/files.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/message_formatter.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/message_processor.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/state_paths.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/telemetry.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/version_detection.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/examples/basic_usage.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/examples/file_handling.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/examples/streaming_usage.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/examples/sync_usage.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/examples/workflow_usage.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/tests/test_bare_path_scan.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/tests/test_gs_url_handling.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/tests/test_storage_fallback.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/tests/test_support_and_credits.py +0 -0
- {cellcog-2.8.2 → cellcog-2.8.3}/tests/test_telemetry.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cellcog
|
|
3
|
-
Version: 2.8.
|
|
3
|
+
Version: 2.8.3
|
|
4
4
|
Summary: Python SDK for CellCog - Any-to-Any AI for agents. Fire-and-forget pattern with WebSocket notifications.
|
|
5
5
|
Project-URL: Homepage, https://cellcog.ai
|
|
6
6
|
Project-URL: Documentation, https://cellcog.ai/developer/docs
|
|
@@ -767,11 +767,10 @@ class CellCogDaemon:
|
|
|
767
767
|
"""Main WebSocket loop with auto-reconnect."""
|
|
768
768
|
# Build WebSocket URL
|
|
769
769
|
ws_base = self.api_base_url.replace("https://", "wss://").replace("http://", "ws://")
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
log.info(f"WebSocket URL: {safe_url}")
|
|
770
|
+
# The API key travels in the X-API-Key handshake header, never in the address: proxies and load balancers
|
|
771
|
+
# log the address of every connection, and an API key does not expire.
|
|
772
|
+
ws_url = f"{ws_base}/cellcog/ws/user/stream"
|
|
773
|
+
log.info(f"WebSocket URL: {ws_url}")
|
|
775
774
|
|
|
776
775
|
while self.ws_connected and self.running:
|
|
777
776
|
try:
|
|
@@ -783,7 +782,10 @@ class CellCogDaemon:
|
|
|
783
782
|
ws_url,
|
|
784
783
|
ping_interval=30,
|
|
785
784
|
ping_timeout=10,
|
|
786
|
-
additional_headers={
|
|
785
|
+
additional_headers={
|
|
786
|
+
"User-Agent": f"CellCog-SDK/{self._get_sdk_version()}",
|
|
787
|
+
"X-API-Key": self.api_key,
|
|
788
|
+
},
|
|
787
789
|
) as ws:
|
|
788
790
|
log.info("✓ WebSocket connected successfully!")
|
|
789
791
|
self.ws_healthy = True
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cellcog"
|
|
7
|
-
version = "2.8.
|
|
7
|
+
version = "2.8.3"
|
|
8
8
|
description = "Python SDK for CellCog - Any-to-Any AI for agents. Fire-and-forget pattern with WebSocket notifications."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "MIT"}
|
|
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
|
|
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
|
|
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
|