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

@@ -50,7 +50,7 @@ def create(ctx, name: str, description: str, workflow_file, verification: str,
try:
with httpx.Client() as client:
response = client.post(
f"{config.coordinator_url}/v1/agents/workflows",
f"{config.coordinator_url}/agents/workflows",
headers={"X-Api-Key": config.api_key or ""},
json=workflow_data
)
@@ -94,7 +94,7 @@ def list(ctx, agent_type: Optional[str], status: Optional[str],
try:
with httpx.Client() as client:
response = client.get(
f"{config.coordinator_url}/v1/agents/workflows",
f"{config.coordinator_url}/agents/workflows",
headers={"X-Api-Key": config.api_key or ""},
params=params
)
@@ -141,7 +141,7 @@ def execute(ctx, agent_id: str, inputs, verification: str, priority: str, timeou
try:
with httpx.Client() as client:
response = client.post(
f"{config.coordinator_url}/v1/agents/{agent_id}/execute",
f"{config.coordinator_url}/agents/{agent_id}/execute",
headers={"X-Api-Key": config.api_key or ""},
json=execution_data
)
@@ -173,7 +173,7 @@ def status(ctx, execution_id: str, watch: bool, interval: int):
try:
with httpx.Client() as client:
response = client.get(
f"{config.coordinator_url}/v1/agents/executions/{execution_id}",
f"{config.coordinator_url}/agents/executions/{execution_id}",
headers={"X-Api-Key": config.api_key or ""}
)
@@ -219,7 +219,7 @@ def receipt(ctx, execution_id: str, verify: bool, download: Optional[str]):
try:
with httpx.Client() as client:
response = client.get(
f"{config.coordinator_url}/v1/agents/executions/{execution_id}/receipt",
f"{config.coordinator_url}/agents/executions/{execution_id}/receipt",
headers={"X-Api-Key": config.api_key or ""}
)
@@ -229,7 +229,7 @@ def receipt(ctx, execution_id: str, verify: bool, download: Optional[str]):
if verify:
# Verify receipt
verify_response = client.post(
f"{config.coordinator_url}/v1/agents/receipts/verify",
f"{config.coordinator_url}/agents/receipts/verify",
headers={"X-Api-Key": config.api_key or ""},
json={"receipt": receipt_data}
)
@@ -265,7 +265,7 @@ def network():
pass
@agent.add_command(network)
agent.add_command(network)
@network.command()
@@ -292,7 +292,7 @@ def create(ctx, name: str, agents: str, description: str, coordination: str):
try:
with httpx.Client() as client:
response = client.post(
f"{config.coordinator_url}/v1/agents/networks",
f"{config.coordinator_url}/agents/networks",
headers={"X-Api-Key": config.api_key or ""},
json=network_data
)
@@ -335,7 +335,7 @@ def execute(ctx, network_id: str, task, priority: str):
try:
with httpx.Client() as client:
response = client.post(
f"{config.coordinator_url}/v1/agents/networks/{network_id}/execute",
f"{config.coordinator_url}/agents/networks/{network_id}/execute",
headers={"X-Api-Key": config.api_key or ""},
json=execution_data
)
@@ -370,7 +370,7 @@ def status(ctx, network_id: str, metrics: str, real_time: bool):
try:
with httpx.Client() as client:
response = client.get(
f"{config.coordinator_url}/v1/agents/networks/{network_id}/status",
f"{config.coordinator_url}/agents/networks/{network_id}/status",
headers={"X-Api-Key": config.api_key or ""},
params=params
)
@@ -401,7 +401,7 @@ def optimize(ctx, network_id: str, objective: str):
try:
with httpx.Client() as client:
response = client.post(
f"{config.coordinator_url}/v1/agents/networks/{network_id}/optimize",
f"{config.coordinator_url}/agents/networks/{network_id}/optimize",
headers={"X-Api-Key": config.api_key or ""},
json=optimization_data
)
@@ -426,7 +426,7 @@ def learning():
pass
@agent.add_command(learning)
agent.add_command(learning)
@learning.command()
@@ -452,7 +452,7 @@ def enable(ctx, agent_id: str, mode: str, feedback_source: Optional[str], learni
try:
with httpx.Client() as client:
response = client.post(
f"{config.coordinator_url}/v1/agents/{agent_id}/learning/enable",
f"{config.coordinator_url}/agents/{agent_id}/learning/enable",
headers={"X-Api-Key": config.api_key or ""},
json=learning_config
)
@@ -494,7 +494,7 @@ def train(ctx, agent_id: str, feedback, epochs: int):
try:
with httpx.Client() as client:
response = client.post(
f"{config.coordinator_url}/v1/agents/{agent_id}/learning/train",
f"{config.coordinator_url}/agents/{agent_id}/learning/train",
headers={"X-Api-Key": config.api_key or ""},
json=training_data
)
@@ -526,7 +526,7 @@ def progress(ctx, agent_id: str, metrics: str):
try:
with httpx.Client() as client:
response = client.get(
f"{config.coordinator_url}/v1/agents/{agent_id}/learning/progress",
f"{config.coordinator_url}/agents/{agent_id}/learning/progress",
headers={"X-Api-Key": config.api_key or ""},
params=params
)
@@ -557,7 +557,7 @@ def export(ctx, agent_id: str, format: str, output: Optional[str]):
try:
with httpx.Client() as client:
response = client.get(
f"{config.coordinator_url}/v1/agents/{agent_id}/learning/export",
f"{config.coordinator_url}/agents/{agent_id}/learning/export",
headers={"X-Api-Key": config.api_key or ""},
params=params
)
@@ -605,7 +605,7 @@ def submit_contribution(ctx, type: str, description: str, github_repo: str, bran
try:
with httpx.Client() as client:
response = client.post(
f"{config.coordinator_url}/v1/agents/contributions",
f"{config.coordinator_url}/agents/contributions",
headers={"X-Api-Key": config.api_key or ""},
json=contribution_data
)