{
  "id": "kimi-quota-footer",
  "name": "Kimi Quota Footer",
  "description": "Appends a compact Kimi usage line (5h/weekly/7d %) to the end of each of Adolf's outgoing replies, via the reply_payload_sending hook. Reads the LLM-free adolf-llm:8010/usage route (kb #62); cached + background-refreshed so it never blocks the send path.",
  "activation": {
    "onStartup": true
  },
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "enabled": { "type": "boolean" },
      "usageUrl": { "type": "string" },
      "cacheTtlMs": { "type": "integer", "minimum": 1000, "maximum": 3600000 },
      "fetchTimeoutMs": { "type": "integer", "minimum": 200, "maximum": 30000 },
      "prefix": { "type": "string" }
    }
  },
  "uiHints": {
    "enabled": {
      "label": "Kimi Quota Footer",
      "help": "Append a compact Kimi usage line to the end of each reply."
    },
    "usageUrl": {
      "label": "Usage URL",
      "help": "adolf-llm /usage endpoint (default http://adolf-llm:8010/usage)."
    },
    "cacheTtlMs": {
      "label": "Cache TTL (ms)",
      "help": "How long a fetched usage snapshot is reused before a background refresh (default 60000)."
    },
    "prefix": {
      "label": "Footer Prefix",
      "help": "Text before the percentages (default \"— Kimi:\")."
    }
  }
}
