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.
Files changed (34) hide show
  1. {cellcog-2.8.2 → cellcog-2.8.3}/PKG-INFO +1 -1
  2. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/__init__.py +1 -1
  3. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/daemon/main.py +8 -6
  4. {cellcog-2.8.2 → cellcog-2.8.3}/pyproject.toml +1 -1
  5. {cellcog-2.8.2 → cellcog-2.8.3}/.gitignore +0 -0
  6. {cellcog-2.8.2 → cellcog-2.8.3}/LICENSE +0 -0
  7. {cellcog-2.8.2 → cellcog-2.8.3}/README.md +0 -0
  8. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/auth.py +0 -0
  9. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/chat.py +0 -0
  10. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/client.py +0 -0
  11. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/config.py +0 -0
  12. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/daemon/__init__.py +0 -0
  13. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/daemon/delivery.py +0 -0
  14. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/daemon/state.py +0 -0
  15. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/docs/__init__.py +0 -0
  16. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/docs/api_reference.md +0 -0
  17. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/docs/support.md +0 -0
  18. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/exceptions.py +0 -0
  19. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/files.py +0 -0
  20. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/message_formatter.py +0 -0
  21. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/message_processor.py +0 -0
  22. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/state_paths.py +0 -0
  23. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/telemetry.py +0 -0
  24. {cellcog-2.8.2 → cellcog-2.8.3}/cellcog/version_detection.py +0 -0
  25. {cellcog-2.8.2 → cellcog-2.8.3}/examples/basic_usage.py +0 -0
  26. {cellcog-2.8.2 → cellcog-2.8.3}/examples/file_handling.py +0 -0
  27. {cellcog-2.8.2 → cellcog-2.8.3}/examples/streaming_usage.py +0 -0
  28. {cellcog-2.8.2 → cellcog-2.8.3}/examples/sync_usage.py +0 -0
  29. {cellcog-2.8.2 → cellcog-2.8.3}/examples/workflow_usage.py +0 -0
  30. {cellcog-2.8.2 → cellcog-2.8.3}/tests/test_bare_path_scan.py +0 -0
  31. {cellcog-2.8.2 → cellcog-2.8.3}/tests/test_gs_url_handling.py +0 -0
  32. {cellcog-2.8.2 → cellcog-2.8.3}/tests/test_storage_fallback.py +0 -0
  33. {cellcog-2.8.2 → cellcog-2.8.3}/tests/test_support_and_credits.py +0 -0
  34. {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.2
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
@@ -48,7 +48,7 @@ from .exceptions import (
48
48
  SDKUpgradeRequiredError,
49
49
  )
50
50
 
51
- __version__ = "2.8.2"
51
+ __version__ = "2.8.3"
52
52
  __all__ = [
53
53
  "CellCogClient",
54
54
  "CellCogError",
@@ -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
- ws_url = f"{ws_base}/cellcog/ws/user/stream?api_key={self.api_key}"
771
-
772
- # Log URL without exposing full API key
773
- safe_url = f"{ws_base}/cellcog/ws/user/stream?api_key={self.api_key[:10]}..."
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={"User-Agent": f"CellCog-SDK/{self._get_sdk_version()}"},
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.2"
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