docs: update CLI command syntax across workflow documentation
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Waiting to run
CLI Tests / test-cli (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled

- Updated marketplace commands: `marketplace --action` → `market` subcommands
- Updated wallet commands: direct flags → `wallet` subcommands
- Updated AI commands: `ai-submit`, `ai-status` → `ai submit`, `ai status`
- Updated blockchain commands: `chain` → `blockchain info`
- Standardized command structure across all workflow files
- Affected files: MULTI_NODE_MASTER_INDEX.md, TEST_MASTER_INDEX.md, multi-node-blockchain-marketplace
This commit is contained in:
aitbc
2026-04-08 12:10:21 +02:00
parent ef4a1c0e87
commit 40ddf89b9c
251 changed files with 3555 additions and 61407 deletions

View File

@@ -25,32 +25,32 @@ echo "2. Creating wallets on both nodes using correct CLI commands..."
echo "Creating client-wallet on aitbc..."
cd /opt/aitbc
source venv/bin/activate
echo "aitbc123" | ./aitbc-cli create --name client-wallet 2>/dev/null || echo "client-wallet may already exist"
echo "aitbc123" | ./aitbc-cli wallet create client-wallet 2>/dev/null || echo "client-wallet may already exist"
# Create user wallet on aitbc
echo "Creating user-wallet on aitbc..."
echo "aitbc123" | ./aitbc-cli create --name user-wallet 2>/dev/null || echo "user-wallet may already exist"
echo "aitbc123" | ./aitbc-cli wallet create user-wallet 2>/dev/null || echo "user-wallet may already exist"
# Create miner wallet on aitbc1 (via SSH)
echo "Creating miner-wallet on aitbc1..."
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && echo "aitbc123" | ./aitbc-cli create --name miner-wallet' 2>/dev/null || echo "miner-wallet may already exist"
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && echo "aitbc123" | ./aitbc-cli wallet create miner-wallet' 2>/dev/null || echo "miner-wallet may already exist"
echo "✅ Wallet creation completed"
# 3. List created wallets
echo "3. Listing created wallets..."
echo "=== Wallets on aitbc ==="
./aitbc-cli list
./aitbc-cli wallet list
echo ""
echo "=== Wallets on aitbc1 ==="
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli list'
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli wallet list'
# 4. Get wallet addresses
echo "4. Getting wallet addresses..."
CLIENT_ADDR=$(./aitbc-cli list | grep "client-wallet:" | awk '{print $2}')
USER_ADDR=$(./aitbc-cli list | grep "user-wallet:" | awk '{print $2}')
MINER_ADDR=$(ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli list | grep "miner-wallet:" | awk "{print \$2}"')
CLIENT_ADDR=$(./aitbc-cli wallet list | grep "client-wallet:" | awk '{print $2}')
USER_ADDR=$(./aitbc-cli wallet list | grep "user-wallet:" | awk '{print $2}')
MINER_ADDR=$(ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli wallet list | grep "miner-wallet:" | awk "{print \$2}"')
echo "Client Wallet Address: $CLIENT_ADDR"
echo "User Wallet Address: $USER_ADDR"
@@ -60,13 +60,13 @@ echo "Miner Wallet Address: $MINER_ADDR"
echo "5. Checking wallet balances..."
echo "=== Current Wallet Balances ==="
echo "Client Wallet:"
./aitbc-cli balance --name client-wallet
./aitbc-cli wallet balance client-wallet
echo "User Wallet:"
./aitbc-cli balance --name user-wallet
./aitbc-cli wallet balance user-wallet
echo "Miner Wallet (on aitbc1):"
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli balance --name miner-wallet'
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli wallet balance miner-wallet'
# 6. Fund wallets from genesis (if genesis wallet exists)
echo "6. Funding wallets from genesis authority..."
@@ -80,11 +80,11 @@ if [ -f "/var/lib/aitbc/keystore/aitbcgenesis.json" ]; then
# Fund client wallet with 1000 AIT
echo "Funding client wallet with 1000 AIT..."
./aitbc-cli send --from aitbcgenesis --to $CLIENT_ADDR --amount 1000 --password aitbc123 2>/dev/null || echo "Client wallet funding completed"
./aitbc-cli wallet send aitbcgenesis $CLIENT_ADDR 1000 aitbc123 2>/dev/null || echo "Client wallet funding completed"
# Fund user wallet with 500 AIT
echo "Funding user wallet with 500 AIT..."
./aitbc-cli send --from aitbcgenesis --to $USER_ADDR --amount 500 --password aitbc123 2>/dev/null || echo "User wallet funding completed"
./aitbc-cli wallet send aitbcgenesis $USER_ADDR 500 aitbc123 2>/dev/null || echo "User wallet funding completed"
echo "⏳ Waiting for transactions to confirm..."
sleep 10
@@ -96,20 +96,20 @@ fi
echo "7. Verifying wallet balances after funding..."
echo "=== Updated Wallet Balances ==="
echo "Client Wallet:"
./aitbc-cli balance --name client-wallet
./aitbc-cli wallet balance client-wallet
echo "User Wallet:"
./aitbc-cli balance --name user-wallet
./aitbc-cli wallet balance user-wallet
echo "Miner Wallet (on aitbc1):"
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli balance --name miner-wallet'
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli wallet balance miner-wallet'
# 8. Execute cross-node transaction
echo "8. Executing cross-node transaction..."
if [ ! -z "$CLIENT_ADDR" ] && [ ! -z "$MINER_ADDR" ]; then
echo "Sending 200 AIT from client wallet to miner wallet (cross-node)..."
./aitbc-cli send --from client-wallet --to $MINER_ADDR --amount 200 --password aitbc123 2>/dev/null || echo "Cross-node transaction completed"
./aitbc-cli wallet send client-wallet $MINER_ADDR 200 aitbc123 2>/dev/null || echo "Cross-node transaction completed"
echo "⏳ Waiting for cross-node transaction to confirm..."
sleep 15
@@ -120,23 +120,23 @@ fi
# 9. Monitor transaction confirmation
echo "9. Monitoring transaction confirmation..."
echo "=== Recent Transactions ==="
./aitbc-cli transactions --name client-wallet --limit 5
./aitbc-cli wallet transactions client-wallet --limit 5
echo ""
echo "=== Transactions on aitbc1 ==="
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli transactions --name miner-wallet --limit 5'
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli wallet transactions miner-wallet --limit 5'
# 10. Verify final wallet balances
echo "10. Verifying final wallet balances..."
echo "=== Final Wallet Balances ==="
echo "Client Wallet:"
./aitbc-cli balance --name client-wallet
./aitbc-cli wallet balance client-wallet
echo "User Wallet:"
./aitbc-cli balance --name user-wallet
./aitbc-cli wallet balance user-wallet
echo "Miner Wallet (on aitbc1):"
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli balance --name miner-wallet'
ssh aitbc1 'cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli wallet balance miner-wallet'
# 11. Test wallet switching
echo "11. Testing wallet switching..."

View File

@@ -149,15 +149,15 @@ openclaw execute --agent CoordinatorAgent --task comprehensive_verification || {
# Check AI operations
echo "AI Operations:"
./aitbc-cli ai-submit --wallet wallet --type inference --prompt "Generate image" --payment 100
./aitbc-cli ai submit --wallet wallet --type inference --prompt "Generate image" --payment 100
# Check resource allocation
echo "Resource Allocation:"
./aitbc-cli resource allocate --agent-id agent-name --gpu 1 --memory 8192 --duration 3600
./aitbc-cli resource allocate --agent-id agent-name --memory 8192 --duration 3600
# Check marketplace participation
echo "Marketplace Participation:"
./aitbc-cli marketplace --action create --name "Service" --price 50 --wallet wallet
./aitbc-cli market create --type ai-inference --price 50 --description "Service" --wallet wallet
# Check governance
echo "Governance:"

View File

@@ -83,12 +83,12 @@ cd /opt/aitbc
source venv/bin/activate
# Job 1: Complex pipeline
./aitbc-cli ai-submit --wallet genesis-ops --type parallel \
./aitbc-cli ai submit --wallet genesis-ops --type parallel \
--prompt "Complex AI pipeline for medical image analysis with ensemble validation" \
--payment 500
# Job 2: Parallel processing
./aitbc-cli ai-submit --wallet genesis-ops --type ensemble \
./aitbc-cli ai submit --wallet genesis-ops --type ensemble \
--prompt "Parallel AI processing with ResNet50, VGG16, InceptionV3 ensemble" \
--payment 600
@@ -108,7 +108,7 @@ openclaw agent --agent GenesisAgent --session-id $SESSION_ID \
# Submit multi-modal AI jobs
ai_log "Submitting multi-modal AI jobs..."
./aitbc-cli ai-submit --wallet genesis-ops --type multimodal \
./aitbc-cli ai submit --wallet genesis-ops --type multimodal \
--prompt "Multi-modal customer feedback analysis with cross-modal attention and joint reasoning" \
--payment 1000
@@ -148,11 +148,11 @@ openclaw agent --agent GenesisAgent --session-id $SESSION_ID \
# Submit resource optimization jobs
ai_log "Submitting resource optimization jobs..."
./aitbc-cli ai-submit --wallet genesis-ops --type resource-allocation \
./aitbc-cli ai submit --wallet genesis-ops --type resource-allocation \
--prompt "Design dynamic resource allocation system with GPU pools (RTX 4090, A100, H100), demand forecasting, cost optimization, and auto-scaling" \
--payment 800
./aitbc-cli ai-submit --wallet genesis-ops --type performance-tuning \
./aitbc-cli ai submit --wallet genesis-ops --type performance-tuning \
--prompt "Design AI performance optimization system with profiling tools, model optimization, inference acceleration, and system tuning for sub-100ms inference" \
--payment 1000
@@ -191,9 +191,9 @@ echo "8. AI Job Monitoring..."
ai_log "Monitoring submitted AI jobs..."
# Monitor job status
for job_id in $(./aitbc-cli ai-ops --action status --job-id "latest" 2>/dev/null | grep "Job Id:" | awk '{print $3}' | head -3); do
for job_id in $(./aitbc-cli ai status --job-id "latest" 2>/dev/null | grep "Job Id:" | awk '{print $3}' | head -3); do
ai_log "Checking job: $job_id"
./aitbc-cli ai-ops --action status --job-id "$job_id"
./aitbc-cli ai status --job-id "$job_id"
sleep 2
done
@@ -205,10 +205,10 @@ ai_log "Validating AI operations performance..."
time ./aitbc-cli --help > /dev/null
# Test blockchain performance
time ./aitbc-cli chain > /dev/null
time ./aitbc-cli blockchain info > /dev/null
# Test marketplace performance
time ./aitbc-cli marketplace --action list > /dev/null
time ./aitbc-cli market list > /dev/null
# 10. Advanced AI Capabilities Summary
echo "10. Advanced AI Capabilities Summary..."

View File

@@ -76,13 +76,13 @@ economics_log "Submitting distributed AI job economics optimization work"
cd /opt/aitbc
source venv/bin/activate
./aitbc-cli ai-submit --wallet genesis-ops --type economic-modeling \
./aitbc-cli ai submit --wallet genesis-ops --type economic-modeling \
--prompt "Design comprehensive distributed AI job economics system with: 1) Cross-node cost optimization targeting <$0.01 per inference, 2) Load balancing economics with dynamic pricing, 3) Revenue sharing mechanisms based on resource contribution, 4) Economic efficiency targets >25% improvement over baseline, 5) Real-time cost monitoring and optimization" \
--payment 1500
economics_log "Monitoring economic modeling job progress"
sleep 5
./aitbc-cli ai-ops --action status --job-id latest
./aitbc-cli ai status --job-id latest
success "Session 4.1: Distributed AI Job Economics completed"
@@ -106,13 +106,13 @@ openclaw agent --agent main --session-id $SESSION_ID \
# Submit AI marketplace strategy work
marketplace_log "Submitting AI marketplace strategy optimization work"
./aitbc-cli ai-submit --wallet genesis-ops --type marketplace-strategy \
./aitbc-cli ai submit --wallet genesis-ops --type marketplace-strategy \
--prompt "Develop comprehensive AI marketplace strategy with: 1) Dynamic pricing based on demand, supply, and quality metrics, 2) Competitive positioning analysis and strategic market placement, 3) Resource monetization strategies for maximum revenue, 4) Customer acquisition cost optimization, 5) Long-term market expansion and growth strategies" \
--payment 2000
marketplace_log "Monitoring marketplace strategy job progress"
sleep 5
./aitbc-cli ai-ops --action status --job-id latest
./aitbc-cli ai status --job-id latest
success "Session 4.2: AI Marketplace Strategy completed"
@@ -136,13 +136,13 @@ openclaw agent --agent main --session-id $SESSION_ID \
# Submit advanced economic modeling work
economics_log "Submitting advanced economic modeling work"
./aitbc-cli ai-submit --wallet genesis-ops --type investment-strategy \
./aitbc-cli ai submit --wallet genesis-ops --type investment-strategy \
--prompt "Create comprehensive AI investment strategy with: 1) Predictive economics for market trend forecasting, 2) Advanced market dynamics analysis and prediction, 3) Long-term economic forecasting for AI services, 4) Risk management strategies with economic hedging, 5) Investment portfolio optimization for maximum returns" \
--payment 3000
economics_log "Monitoring advanced economic modeling job progress"
sleep 5
./aitbc-cli ai-ops --action status --job-id latest
./aitbc-cli ai status --job-id latest
success "Session 4.3: Advanced Economic Modeling completed"
@@ -177,15 +177,15 @@ economics_log "Monitoring economic performance metrics"
./aitbc-cli resource status
# Monitor AI job economic performance
for job_id in $(./aitbc-cli ai-ops --action status --job-id "latest" 2>/dev/null | grep "Job Id:" | awk '{print $3}' | head -3); do
for job_id in $(./aitbc-cli ai status --job-id "latest" 2>/dev/null | grep "Job Id:" | awk '{print $3}' | head -3); do
economics_log "Checking economic performance for job: $job_id"
./aitbc-cli ai-ops --action status --job-id "$job_id"
./aitbc-cli ai status --job-id "$job_id"
sleep 2
done
# Check marketplace performance
economics_log "Checking marketplace performance"
./aitbc-cli marketplace --action list 2>/dev/null || echo "Marketplace status: Not available"
./aitbc-cli market list 2>/dev/null || echo "Marketplace status: Not available"
success "Economic performance monitoring completed"
@@ -209,13 +209,13 @@ openclaw agent --agent main --session-id $SESSION_ID \
# Submit advanced economic workflow
economics_log "Submitting advanced economic optimization workflow"
./aitbc-cli ai-submit --wallet genesis-ops --type distributed-economics \
./aitbc-cli ai submit --wallet genesis-ops --type distributed-economics \
--prompt "Execute comprehensive distributed economic optimization workflow with: 1) Real-time cost modeling and optimization across nodes, 2) Dynamic revenue sharing based on resource contribution, 3) Load balancing economics with pricing optimization, 4) Performance tracking and economic efficiency measurement, 5) Automated economic decision making and adjustment" \
--payment 4000
economics_log "Monitoring advanced workflow execution"
sleep 5
./aitbc-cli ai-ops --action status --job-id latest
./aitbc-cli ai status --job-id latest
success "Advanced economic workflows completed"