{
  "id": "team-activity-log",
  "icon": "📋",
  "title": "Team Activity Log",
  "type": "full",
  "tier": "starlark",
  "route": "/s/team-activity-log",
  "auth": "authenticated",
  "layout": "single",
  "version": "0.1.0",
  "description": "Example surface demonstrating Starlark API routes, extension-owned DB tables, admin settings, and SDK integration.",
  "author": "armature",

  "permissions": ["api.http", "db.read", "db.write"],

  "api_routes": [
    {"method": "GET",    "path": "/entries"},
    {"method": "POST",   "path": "/entries"},
    {"method": "DELETE", "path": "/entries/*"}
  ],

  "db_tables": [
    {
      "name": "entries",
      "columns": {
        "user_id":    "text",
        "username":   "text",
        "category":   "text",
        "message":    "text",
        "created_at": "text"
      }
    }
  ],

  "settings": {
    "max_entries": {
      "type": "number",
      "label": "Max Entries",
      "description": "Maximum number of entries to retain (oldest are pruned).",
      "default": 500
    },
    "categories": {
      "type": "string",
      "label": "Categories (comma-separated)",
      "description": "Allowed activity categories. Leave blank for freeform.",
      "default": "note,update,decision,action-item"
    }
  }
}
