fix: make CLI robust to missing coordinator dependencies

- Replace hardcoded absolute paths with project-relative resolution
- Add AITBC_SERVICES_PATH environment variable override
- Wrap service imports in try/except with graceful degradation
- Add aiohttp to CLI requirements
- Create missing README.md for aitbc-agent-sdk to fix poetry build
- Make run_all_tests.sh portable with PROJECT_ROOT calculation
- Fix enterprise_integration.py path handling

CLI now loads successfully even when coordinator-api services
are not installed. Advanced commands fail with helpful hints
instead of crashing the entire CLI.
This commit is contained in:
aitbc1
2026-03-13 11:34:30 +00:00
parent 3a711d4e33
commit 1feeadf8d2
9 changed files with 280 additions and 55 deletions

View File

@@ -0,0 +1,18 @@
# aitbc-agent-sdk
Agent SDK for AITBC (AI Agent Compute Network).
This package provides tools and abstractions for building AI agents that participate in the AITBC decentralized compute marketplace.
## Installation
```bash
pip install -e .[dev]
```
## Development
Run tests:
```bash
pytest
```