L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · SKILL.md

portal-guide-topology-and-api

portal-guide-topology-and-api

Nested lingtai-portal-guide reference for topology tape frames, replay chunks, portal API endpoints, and the Network JSON response.

Independent GitHub snapshot · Automated classification · Original documentation governs

Llingtai-ai / lingtaiApache-2.0

Documentation de la Skill

GitHub

name: portal-guide-topology-and-api description: Nested lingtai-portal-guide reference for topology tape frames, replay chunks, portal API endpoints, and the Network JSON response. version: 1.0.0 last_changed_at: "2026-07-18T00:00:00Z" maintenance: "If you find stale or incorrect information here, use the lingtai-issue-report skill to assemble evidence and obtain per-issue human consent before filing an issue. Never include secrets, credentials, tokens, or private paths."

Topology and API

This is a nested lingtai-portal-guide reference. It covers the on-disk topology tape, replay chunks, HTTP endpoints, and live network JSON shape.

topology.jsonl

Each line is a TapeFrame:

{
  "t": 1744567890123,
  "net": { "nodes": [...], "avatar_edges": [...], "contact_edges": [...], "mail_edges": [...], "stats": {...} }
}

t is milliseconds since epoch. net is the same Network object /api/network serves; Network response shape below is a representative example of its core fields.

Replay chunks

Historical data is stored as delta-encoded, keyframed, gzipped JSON chunks bucketed by hour under .lingtai/.portal/replay/chunks/. The manifest.json in that chunks directory lists all available chunks with their time ranges and frame counts.

API endpoints

All endpoints are served at http://localhost:<port>.

EndpointMethodResponseDescription
/api/networkGETNetwork JSONLive network state (nodes, edges, stats)
/api/topologyGETJSON array of TapeFrameFull topology tape (can be large)
/api/topology/manifestGETReplayManifest JSONChunk metadata for replay
/api/topology/chunk?start=<hourMs>GETChunk JSON (optionally gzip-encoded when requested)Frames for one hour-bucket start time
/api/topology/progressGETJSON object such as { "current": N, "total": M } (or {})Reconstruction progress parsed from reconstruct.progress
/api/topology/rebuildPOSTReplayManifest JSONTrigger tape reconstruction from source data and rewrite replay chunks

Network response shape

{
  "nodes": [
    {
      "address": "orchestrator",
      "agent_name": "orchestrator",
      "nickname": "小灵",
      "state": "ACTIVE",
      "alive": true,
      "is_human": false,
      "capabilities": ["avatar", "search"]
    }
  ],
  "avatar_edges": [
    {"parent": "orchestrator", "child": "avatar-1", "child_name": "avatar-1"}
  ],
  "contact_edges": [
    {"owner": "orchestrator", "target": "human", "name": "human"}
  ],
  "mail_edges": [
    {"sender": "orchestrator", "recipient": "human", "count": 5}
  ],
  "stats": {
    "active": 2,
    "idle": 1,
    "stuck": 0,
    "asleep": 0,
    "suspended": 3,
    "total_mails": 42
  }
}
Skills enregistrées