chore: remove configuration files and enhance blockchain explorer with advanced search, analytics, and export features

- Delete .aitbc.yaml.example CLI configuration template
- Delete .lycheeignore link checker exclusion rules
- Delete .nvmrc Node.js version specification
- Add advanced search panel with filters for address, amount range, transaction type, time range, and validator
- Add analytics dashboard with transaction volume, active addresses, and block time metrics
- Add Chart.js integration
This commit is contained in:
oib
2026-03-02 15:38:25 +01:00
parent af185cdd8b
commit ccedbace53
271 changed files with 35942 additions and 2359 deletions

View File

@@ -0,0 +1,116 @@
#!/bin/bash
# AITBC CLI completion script for bash/zsh
_aitbc_completion() {
local cur prev words
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
words=("${COMP_WORDS[@]}")
# Main commands
if [[ ${COMP_CWORD} -eq 1 ]]; then
local commands="admin agent agent-comm analytics auth blockchain chain client config config-show deploy exchange genesis governance marketplace miner monitor multimodal node optimize plugin simulate swarm version wallet"
COMPREPLY=($(compgen -W "${commands}" -- "${cur}"))
return 0
fi
# Subcommand completions
case "${words[1]}" in
wallet)
local wallet_commands="address backup balance create delete earn history info liquidity-stake liquidity-unstake list multisig-create multisig-propose multisig-sign request-payment restore rewards send spend stake staking-info stats switch unstake"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${wallet_commands}" -- "${cur}"))
fi
;;
blockchain)
local blockchain_commands="block blocks info peers status supply sync-status transaction validators"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${blockchain_commands}" -- "${cur}"))
fi
;;
marketplace)
local marketplace_commands="agents bid gpu governance offers orders pricing review reviews test"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${marketplace_commands}" -- "${cur}"))
fi
;;
config)
local config_commands="edit environments export get-secret import-config path profiles reset set set-secret show validate"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${config_commands}" -- "${cur}"))
fi
;;
analytics)
local analytics_commands="alerts dashboard monitor optimize predict summary"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${analytics_commands}" -- "${cur}"))
fi
;;
agent-comm)
local agent_comm_commands="collaborate discover list monitor network register reputation send status"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${agent_comm_commands}" -- "${cur}"))
fi
;;
chain)
local chain_commands="create delete info list status switch validate"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${chain_commands}" -- "${cur}"))
fi
;;
client)
local client_commands="batch-submit blocks cancel history receipt status submit template"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${client_commands}" -- "${cur}"))
fi
;;
miner)
local miner_commands="concurrent-mine deregister earnings heartbeat jobs mine poll register status update-capabilities"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${miner_commands}" -- "${cur}"))
fi
;;
auth)
local auth_commands="import-env keys login logout refresh status token"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${auth_commands}" -- "${cur}"))
fi
;;
monitor)
local monitor_commands="alerts dashboard history metrics webhooks"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${monitor_commands}" -- "${cur}"))
fi
;;
simulate)
local simulate_commands="init load-test reset results scenario user workflow"
if [[ ${COMP_CWORD} -eq 2 ]]; then
COMPREPLY=($(compgen -W "${simulate_commands}" -- "${cur}"))
fi
;;
esac
# Option completions
case "${prev}" in
--output)
COMPREPLY=($(compgen -W "table json yaml" -- "${cur}"))
;;
--config-file)
COMPREPLY=($(compgen -f -- "${cur}"))
;;
--wallet-name)
COMPREPLY=($(compgen -W "$(aitbc wallet list 2>/dev/null | awk 'NR>2 {print $1}')" -- "${cur}"))
;;
--api-key)
COMPREPLY=($(compgen -W "your_api_key_here" -- "${cur}"))
;;
--url)
COMPREPLY=($(compgen -W "http://localhost:8000 http://127.0.0.1:18000" -- "${cur}"))
;;
esac
return 0
}
complete -F _aitbc_completion aitbc

View File

@@ -0,0 +1,224 @@
.TH AITBC 1 "February 2026" "AITBC CLI" "User Commands"
.SH NAME
aitbc \- command-line interface for the AITBC network
.SH SYNOPSIS
.B aitbc
[\fIOPTIONS\fR] \fICOMMAND\fR [\fIARGS\fR]...
.SH DESCRIPTION
The AITBC CLI provides a comprehensive command-line interface for interacting
with the AITBC network. It supports job submission, mining operations, wallet
management, blockchain queries, marketplace operations, multi-chain management,
agent communication, analytics, system administration, monitoring, and test
simulations. The CLI provides 22 main command groups with over 100 subcommands
for complete network interaction.
.SH GLOBAL OPTIONS
.TP
\fB\-\-url\fR \fITEXT\fR
Coordinator API URL (overrides config)
.TP
\fB\-\-api\-key\fR \fITEXT\fR
API key (overrides config)
.TP
\fB\-\-output\fR [table|json|yaml]
Output format (default: table)
.TP
\fB\-v\fR, \fB\-\-verbose\fR
Increase verbosity (use -v, -vv, -vvv)
.TP
\fB\-\-debug\fR
Enable debug mode
.TP
\fB\-\-config\-file\fR \fITEXT\fR
Path to config file
.TP
\fB\-\-version\fR
Show version and exit
.TP
\fB\-\-help\fR
Show help message and exit
.SH COMMANDS
.TP
\fBadmin\fR
System administration commands (status, jobs, miners, analytics, logs, maintenance, audit-log)
.TP
\fBagent\fR
Advanced AI agent workflow and execution management
.TP
\fBagent-comm\fR
Cross-chain agent communication commands (register, list, discover, send, collaborate, reputation, status, network, monitor)
.TP
\fBanalytics\fR
Chain analytics and monitoring commands (summary, monitor, predict, optimize, alerts, dashboard)
.TP
\fBauth\fR
Manage API keys and authentication (login, logout, token, status, refresh, keys, import-env)
.TP
\fBblockchain\fR
Query blockchain information (blocks, block, transaction, status, sync-status, peers, info, supply, validators)
.TP
\fBchain\fR
Multi-chain management commands (list, create, delete, info, status, switch, validate)
.TP
\fBclient\fR
Submit and manage inference jobs (submit, status, blocks, receipts, cancel, history, batch-submit, template)
.TP
\fBconfig\fR
Manage CLI configuration (show, set, path, edit, reset, export, import, validate, environments, profiles, set-secret, get-secret)
.TP
\fBconfig-show\fR
Show current configuration
.TP
\fBdeploy\fR
Production deployment and scaling commands
.TP
\fBexchange\fR
Bitcoin exchange operations
.TP
\fBgenesis\fR
Genesis block generation and management commands
.TP
\fBgovernance\fR
Governance proposals and voting
.TP
\fBmarketplace\fR
GPU marketplace operations (gpu register/list/details/book/release, orders, pricing, reviews, agents, bid, offers, governance, test)
.TP
\fBminer\fR
Register as a miner and process jobs (register, poll, mine, heartbeat, status, earnings, update-capabilities, deregister, jobs, concurrent-mine)
.TP
\fBmonitor\fR
Monitoring, metrics, and alerting commands (dashboard, metrics, alerts, history, webhooks)
.TP
\fBmultimodal\fR
Multi-modal agent processing and cross-modal operations
.TP
\fBnode\fR
Node management commands
.TP
\fBoptimize\fR
Autonomous optimization and predictive operations
.TP
\fBplugin\fR
Manage CLI plugins
.TP
\fBsimulate\fR
Run simulations (init, user, workflow, load-test, scenario, results, reset)
.TP
\fBswarm\fR
Swarm intelligence and collective optimization
.TP
\fBversion\fR
Show version information
.TP
\fBwallet\fR
Manage wallets and transactions (balance, earn, spend, send, history, address, stats, stake, unstake, staking-info, liquidity-stake, liquidity-unstake, rewards, multisig-create, multisig-propose, multisig-sign, create, list, switch, delete, backup, restore, info, request-payment)
.SH EXAMPLES
.PP
Submit a job:
.RS
aitbc client submit --prompt "What is AI?" --model gpt-4
.RE
.PP
Check wallet balance:
.RS
aitbc wallet balance
.RE
.PP
Start mining:
.RS
aitbc miner register --gpu-model RTX4090 --memory 24 --price 0.5
.br
aitbc miner poll --interval 5
.RE
.PP
Monitor system:
.RS
aitbc monitor dashboard --refresh 5
.RE
.PP
List available GPUs:
.RS
aitbc marketplace gpu list
.RE
.PP
Query blockchain status:
.RS
aitbc blockchain sync-status
.RE
.PP
Manage configuration:
.RS
aitbc config set api_key your_api_key_here
.br
aitbc config show
.RE
.PP
Cross-chain agent communication:
.RS
aitbc agent-comm register --agent-id agent1 --chain-id ethereum
.br
aitbc agent-comm list --chain-id ethereum
.RE
.PP
Analytics and monitoring:
.RS
aitbc analytics summary --chain-id ethereum --hours 24
.br
aitbc analytics monitor --realtime
.RE
.PP
Multi-chain operations:
.RS
aitbc chain list
.br
aitbc chain create --name test-chain --type ethereum
.RE
.PP
Output in different formats:
.RS
aitbc wallet balance --output json
.br
aitbc marketplace gpu list --output yaml
.RE
.PP
Verbose output:
.RS
aitbc -vv blockchain blocks --limit 10
.RE
.PP
Configuration management:
.RS
aitbc config profiles save production
.br
aitbc config profiles load production
.RE
.SH ENVIRONMENT
.TP
\fBCLIENT_API_KEY\fR
API key for authentication
.TP
\fBAITBC_COORDINATOR_URL\fR
Coordinator API URL
.TP
\fBAITBC_OUTPUT_FORMAT\fR
Default output format
.TP
\fBAITBC_CONFIG_FILE\fR
Path to configuration file
.SH FILES
.TP
\fB~/.config/aitbc/config.yaml\fR
Default configuration file
.TP
\fB~/.aitbc/wallets/\fR
Wallet storage directory
.TP
\fB~/.aitbc/audit/audit.jsonl\fR
Audit log file
.TP
\fB~/.aitbc/templates/\fR
Job template storage
.SH SEE ALSO
Full documentation: https://docs.aitbc.net
.SH AUTHORS
AITBC Development Team

View File

@@ -0,0 +1,224 @@
.TH AITBC 1 "February 2026" "AITBC CLI" "User Commands"
.SH NAME
aitbc \- command-line interface for the AITBC network
.SH SYNOPSIS
.B aitbc
[\fIOPTIONS\fR] \fICOMMAND\fR [\fIARGS\fR]...
.SH DESCRIPTION
The AITBC CLI provides a comprehensive command-line interface for interacting
with the AITBC network. It supports job submission, mining operations, wallet
management, blockchain queries, marketplace operations, multi-chain management,
agent communication, analytics, system administration, monitoring, and test
simulations. The CLI provides 22 main command groups with over 100 subcommands
for complete network interaction.
.SH GLOBAL OPTIONS
.TP
\fB\-\-url\fR \fITEXT\fR
Coordinator API URL (overrides config)
.TP
\fB\-\-api\-key\fR \fITEXT\fR
API key (overrides config)
.TP
\fB\-\-output\fR [table|json|yaml]
Output format (default: table)
.TP
\fB\-v\fR, \fB\-\-verbose\fR
Increase verbosity (use -v, -vv, -vvv)
.TP
\fB\-\-debug\fR
Enable debug mode
.TP
\fB\-\-config\-file\fR \fITEXT\fR
Path to config file
.TP
\fB\-\-version\fR
Show version and exit
.TP
\fB\-\-help\fR
Show help message and exit
.SH COMMANDS
.TP
\fBadmin\fR
System administration commands (status, jobs, miners, analytics, logs, maintenance, audit-log)
.TP
\fBagent\fR
Advanced AI agent workflow and execution management
.TP
\fBagent-comm\fR
Cross-chain agent communication commands (register, list, discover, send, collaborate, reputation, status, network, monitor)
.TP
\fBanalytics\fR
Chain analytics and monitoring commands (summary, monitor, predict, optimize, alerts, dashboard)
.TP
\fBauth\fR
Manage API keys and authentication (login, logout, token, status, refresh, keys, import-env)
.TP
\fBblockchain\fR
Query blockchain information (blocks, block, transaction, status, sync-status, peers, info, supply, validators)
.TP
\fBchain\fR
Multi-chain management commands (list, create, delete, info, status, switch, validate)
.TP
\fBclient\fR
Submit and manage inference jobs (submit, status, blocks, receipts, cancel, history, batch-submit, template)
.TP
\fBconfig\fR
Manage CLI configuration (show, set, path, edit, reset, export, import, validate, environments, profiles, set-secret, get-secret)
.TP
\fBconfig-show\fR
Show current configuration
.TP
\fBdeploy\fR
Production deployment and scaling commands
.TP
\fBexchange\fR
Bitcoin exchange operations
.TP
\fBgenesis\fR
Genesis block generation and management commands
.TP
\fBgovernance\fR
Governance proposals and voting
.TP
\fBmarketplace\fR
GPU marketplace operations (gpu register/list/details/book/release, orders, pricing, reviews, agents, bid, offers, governance, test)
.TP
\fBminer\fR
Register as a miner and process jobs (register, poll, mine, heartbeat, status, earnings, update-capabilities, deregister, jobs, concurrent-mine)
.TP
\fBmonitor\fR
Monitoring, metrics, and alerting commands (dashboard, metrics, alerts, history, webhooks)
.TP
\fBmultimodal\fR
Multi-modal agent processing and cross-modal operations
.TP
\fBnode\fR
Node management commands
.TP
\fBoptimize\fR
Autonomous optimization and predictive operations
.TP
\fBplugin\fR
Manage CLI plugins
.TP
\fBsimulate\fR
Run simulations (init, user, workflow, load-test, scenario, results, reset)
.TP
\fBswarm\fR
Swarm intelligence and collective optimization
.TP
\fBversion\fR
Show version information
.TP
\fBwallet\fR
Manage wallets and transactions (balance, earn, spend, send, history, address, stats, stake, unstake, staking-info, liquidity-stake, liquidity-unstake, rewards, multisig-create, multisig-propose, multisig-sign, create, list, switch, delete, backup, restore, info, request-payment)
.SH EXAMPLES
.PP
Submit a job:
.RS
aitbc client submit --prompt "What is AI?" --model gpt-4
.RE
.PP
Check wallet balance:
.RS
aitbc wallet balance
.RE
.PP
Start mining:
.RS
aitbc miner register --gpu-model RTX4090 --memory 24 --price 0.5
.br
aitbc miner poll --interval 5
.RE
.PP
Monitor system:
.RS
aitbc monitor dashboard --refresh 5
.RE
.PP
List available GPUs:
.RS
aitbc marketplace gpu list
.RE
.PP
Query blockchain status:
.RS
aitbc blockchain sync-status
.RE
.PP
Manage configuration:
.RS
aitbc config set api_key your_api_key_here
.br
aitbc config show
.RE
.PP
Cross-chain agent communication:
.RS
aitbc agent-comm register --agent-id agent1 --chain-id ethereum
.br
aitbc agent-comm list --chain-id ethereum
.RE
.PP
Analytics and monitoring:
.RS
aitbc analytics summary --chain-id ethereum --hours 24
.br
aitbc analytics monitor --realtime
.RE
.PP
Multi-chain operations:
.RS
aitbc chain list
.br
aitbc chain create --name test-chain --type ethereum
.RE
.PP
Output in different formats:
.RS
aitbc wallet balance --output json
.br
aitbc marketplace gpu list --output yaml
.RE
.PP
Verbose output:
.RS
aitbc -vv blockchain blocks --limit 10
.RE
.PP
Configuration management:
.RS
aitbc config profiles save production
.br
aitbc config profiles load production
.RE
.SH ENVIRONMENT
.TP
\fBCLIENT_API_KEY\fR
API key for authentication
.TP
\fBAITBC_COORDINATOR_URL\fR
Coordinator API URL
.TP
\fBAITBC_OUTPUT_FORMAT\fR
Default output format
.TP
\fBAITBC_CONFIG_FILE\fR
Path to configuration file
.SH FILES
.TP
\fB~/.config/aitbc/config.yaml\fR
Default configuration file
.TP
\fB~/.aitbc/wallets/\fR
Wallet storage directory
.TP
\fB~/.aitbc/audit/audit.jsonl\fR
Audit log file
.TP
\fB~/.aitbc/templates/\fR
Job template storage
.SH SEE ALSO
Full documentation: https://docs.aitbc.net
.SH AUTHORS
AITBC Development Team