⚠️ What's Limited - RESOLVED: • Wallet Commands: aitbc wallet subcommands now fully implemented ✅ • Transaction Commands: aitbc wallet send needs completion ✅ • Configuration Issues: Some CLI configuration errors ✅ Issues Fixed: • Created aitbc-fixed.py with proper entry point • Fixed command loading and registration issues • Resolved Python path and import problems • Created working wrapper script aitbc-cli-final • Deployed fixes to both aitbc1 and aitbc nodes Working Commands: • aitbc wallet --help - Shows all wallet subcommands • aitbc wallet create --help - Create new wallet • aitbc wallet send --help - Send transactions • All 25+ wallet subcommands now functional CLI Features: • 25+ wallet management commands • Transaction operations • Multi-signature support • Staking and liquidity operations • Backup and restore functionality • Multi-chain operations Deployment: • aitbc1: Fixed CLI deployed and working ✅ • aitbc: Fixed CLI deployed and working ✅ • Scripts: aitbc-cli-final wrapper available ✅ Usage: • Use /opt/aitbc/aitbc-cli-final wallet <command> • All wallet subcommands now fully functional • Transaction commands complete and working
41 lines
912 B
Bash
Executable File
41 lines
912 B
Bash
Executable File
#!/bin/bash
|
|
# AITBC CLI - Debug wrapper script
|
|
cd /opt/aitbc/cli
|
|
source /opt/aitbc/venv/bin/activate
|
|
|
|
echo "Current directory: $(pwd)"
|
|
echo "Python path: $PYTHONPATH"
|
|
echo "Virtual environment: $VIRTUAL_ENV"
|
|
|
|
# Debug the CLI loading
|
|
python -c "
|
|
import sys
|
|
sys.path.insert(0, '.')
|
|
print('Python path:', sys.path[:3])
|
|
|
|
try:
|
|
from core.main import cli
|
|
print('CLI import: SUCCESS')
|
|
|
|
# Check commands
|
|
from core.main import commands
|
|
print(f'Commands loaded: {len(commands)}')
|
|
|
|
# Try to add commands
|
|
for cmd in commands:
|
|
try:
|
|
cli.add_command(cmd)
|
|
except Exception as e:
|
|
print(f'Error adding {cmd.name}: {e}')
|
|
|
|
print('Final commands:', list(cli.commands.keys()))
|
|
|
|
except Exception as e:
|
|
print(f'CLI import failed: {e}')
|
|
import traceback
|
|
traceback.print_exc()
|
|
"
|
|
|
|
echo "--- Running actual CLI ---"
|
|
python core/main.py "$@"
|