cloudbrain-client 1.1.2__tar.gz → 1.1.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 (17) hide show
  1. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/PKG-INFO +2 -2
  2. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client/cloudbrain_collaboration_helper.py +70 -0
  3. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client.egg-info/PKG-INFO +2 -2
  4. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/pyproject.toml +2 -2
  5. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/README.md +0 -0
  6. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client/__init__.py +0 -0
  7. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client/ai_conversation_helper.py +0 -0
  8. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client/ai_websocket_client.py +0 -0
  9. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client/cloudbrain_client.py +0 -0
  10. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client/cloudbrain_quick.py +0 -0
  11. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client/message_poller.py +0 -0
  12. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client.egg-info/SOURCES.txt +0 -0
  13. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client.egg-info/dependency_links.txt +0 -0
  14. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client.egg-info/entry_points.txt +0 -0
  15. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client.egg-info/requires.txt +0 -0
  16. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/cloudbrain_client.egg-info/top_level.txt +0 -0
  17. {cloudbrain_client-1.1.2 → cloudbrain_client-1.1.3}/setup.cfg +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudbrain-client
3
- Version: 1.1.2
4
- Summary: CloudBrain Client - AI collaboration and communication system with AI-to-AI collaboration support
3
+ Version: 1.1.3
4
+ Summary: CloudBrain Client - AI collaboration and communication system with AI-to-AI collaboration support and documentation access
5
5
  Author: CloudBrain Team
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://github.com/cloudbrain-project/cloudbrain
@@ -396,6 +396,76 @@ class CloudBrainCollaborationHelper:
396
396
  except Exception as e:
397
397
  print(f"❌ Error sending request: {e}")
398
398
  return {"error": str(e)}
399
+
400
+ async def get_documentation(self, doc_id: int = None, title: str = None, category: str = None) -> Optional[Dict]:
401
+ """
402
+ Get documentation from CloudBrain
403
+
404
+ Args:
405
+ doc_id: Documentation ID
406
+ title: Documentation title
407
+ category: Documentation category (gets most recent in category)
408
+
409
+ Returns:
410
+ Documentation dictionary or None
411
+ """
412
+ data = {}
413
+ if doc_id:
414
+ data['doc_id'] = doc_id
415
+ elif title:
416
+ data['title'] = title
417
+ elif category:
418
+ data['category'] = category
419
+
420
+ response = await self._send_request('documentation_get', data)
421
+
422
+ if response and response.get('type') == 'documentation':
423
+ return response.get('documentation')
424
+
425
+ return None
426
+
427
+ async def list_documentation(self, category: str = None, limit: int = 50) -> List[Dict]:
428
+ """
429
+ List available documentation
430
+
431
+ Args:
432
+ category: Filter by category
433
+ limit: Maximum number of results
434
+
435
+ Returns:
436
+ List of documentation summaries
437
+ """
438
+ data = {'limit': limit}
439
+ if category:
440
+ data['category'] = category
441
+
442
+ response = await self._send_request('documentation_list', data)
443
+
444
+ if response and response.get('type') == 'documentation_list':
445
+ return response.get('documents', [])
446
+
447
+ return []
448
+
449
+ async def search_documentation(self, query: str, limit: int = 20) -> List[Dict]:
450
+ """
451
+ Search documentation using full-text search
452
+
453
+ Args:
454
+ query: Search query
455
+ limit: Maximum number of results
456
+
457
+ Returns:
458
+ List of matching documents with snippets
459
+ """
460
+ response = await self._send_request('documentation_search', {
461
+ 'query': query,
462
+ 'limit': limit
463
+ })
464
+
465
+ if response and response.get('type') == 'documentation_search_results':
466
+ return response.get('results', [])
467
+
468
+ return []
399
469
 
400
470
 
401
471
  async def integrate_cloudbrain_to_tasks(ai_id: int, tasks: List[Dict[str, Any]]) -> bool:
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudbrain-client
3
- Version: 1.1.2
4
- Summary: CloudBrain Client - AI collaboration and communication system with AI-to-AI collaboration support
3
+ Version: 1.1.3
4
+ Summary: CloudBrain Client - AI collaboration and communication system with AI-to-AI collaboration support and documentation access
5
5
  Author: CloudBrain Team
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://github.com/cloudbrain-project/cloudbrain
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cloudbrain-client"
7
- version = "1.1.2"
8
- description = "CloudBrain Client - AI collaboration and communication system with AI-to-AI collaboration support"
7
+ version = "1.1.3"
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"
11
11
  license = {text = "MIT"}