From 592f64612fe75aab2194253328f3fe13c1248656 Mon Sep 17 00:00:00 2001 From: aitbc Date: Tue, 19 May 2026 19:21:41 +0200 Subject: [PATCH] Remove Quick Start and Key Configuration sections, replace links with curl commands --- website/agent/index.html | 78 ++++++++++++---------------------------- 1 file changed, 22 insertions(+), 56 deletions(-) diff --git a/website/agent/index.html b/website/agent/index.html index 11ecf664..4b40964f 100644 --- a/website/agent/index.html +++ b/website/agent/index.html @@ -83,6 +83,17 @@ font-size: 0.85rem; margin-top: 0.5rem; } + .curl-command { + background: #000; + border: 1px solid var(--border); + border-radius: 4px; + padding: 0.5rem 0.75rem; + margin-top: 0.5rem; + font-family: 'Courier New', monospace; + font-size: 0.8rem; + color: #a5b4fc; + overflow-x: auto; + } .code-block { background: #000; border: 1px solid var(--border); @@ -190,7 +201,7 @@ GET

Complete network discovery - returns all islands, endpoints, and this node's role. Start here.

- View JSON → +

curl -s http://YOUR_DOMAIN/agent/discovery.json

@@ -204,7 +215,7 @@ GET

List all islands with current status, endpoints, and this node's role in each island.

- View JSON → +

curl -s http://YOUR_DOMAIN/agent/islands.json

@@ -212,6 +223,7 @@ GET

Live island memberships from IslandManager (includes peer counts, roles, status).

+

curl -s http://YOUR_DOMAIN/rpc/islands

@@ -219,6 +231,7 @@ GET

Detailed information about a specific island.

+

curl -s http://YOUR_DOMAIN/rpc/islands/{island_id}

@@ -232,7 +245,7 @@ GET

All chains with configuration, endpoints, and join information.

- View JSON → +

curl -s http://YOUR_DOMAIN/agent/chains.json

@@ -240,6 +253,7 @@ GET

Current head block (height, hash, timestamp).

+

curl -s http://YOUR_DOMAIN/rpc/head

@@ -247,6 +261,7 @@ GET

Chain information (chain_id, network_id, consensus).

+

curl -s http://YOUR_DOMAIN/rpc/info

@@ -260,7 +275,7 @@ GET

Complete join instructions for ait-mainnet: configuration templates, P2P peers, RPC endpoints.

- View JSON → +

curl -s http://YOUR_DOMAIN/agent/join/ait-mainnet.json

@@ -268,7 +283,7 @@ GET

Complete join instructions for ait-testnet.

- View JSON → +

curl -s http://YOUR_DOMAIN/agent/join/ait-testnet.json

@@ -282,7 +297,7 @@ GET

OpenAPI 3.0 specification for all RPC and agent endpoints.

- View JSON → +

curl -s http://YOUR_DOMAIN/agent/openapi.json

@@ -290,60 +305,11 @@ GET

Health check endpoint for monitoring.

- View JSON → +

curl -s http://YOUR_DOMAIN/agent/health

-
-

Quick Start for Agents

-
- - # 1. Discover network -curl -s http://YOUR_DOMAIN/agent/discovery.json | jq . - -# 2. Get island information -curl -s http://YOUR_DOMAIN/agent/islands.json | jq '.islands[]' - -# 3. Get chain information -curl -s http://YOUR_DOMAIN/agent/chains.json | jq '.chains[]' - -# 4. Check node health -curl -s http://YOUR_DOMAIN/agent/health | jq . - -Replace YOUR_DOMAIN with your node's domain or IP address. -
-
- -
-

Key Configuration Values

-
- - { - "p2p": { - "port": 7070, - "peers": ["aitbc:7070", "aitbc1:7070"] - }, - "rpc": { - "aitbc": "http://aitbc:8006", - "aitbc1": "http://aitbc1:8006" - }, - "islands": [ - { - "id": "ait-mainnet-island", - "chain": "ait-mainnet", - "hub": "aitbc" - }, - { - "id": "ait-testnet-island", - "chain": "ait-testnet", - "hub": "aitbc1" - } - ] -} -
-
-