{
  "id": "aight-utils",
  "name": "Aight App Utils",
  "description": "Aight App: Push notifications, multi-device sync, config RPC, and agent bootstrap",
  "version": "0.1.30",
  "activation": {
    "onStartup": true
  },
  "contracts": {
    "tools": ["aight_item"]
  },
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "push": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "mode": {
            "type": "string",
            "enum": ["private", "rich"],
            "default": "rich"
          },
          "relayUrl": {
            "type": "string",
            "default": "https://push.aight.app"
          },
          "deviceTokens": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "token": {
                  "type": "string"
                },
                "platform": {
                  "type": "string",
                  "enum": ["ios", "android"]
                },
                "registeredAt": {
                  "type": "string"
                }
              },
              "required": ["token", "platform"]
            }
          },
          "relaySecret": {
            "type": "string"
          }
        }
      },
      "today": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "enabled": {
            "type": "boolean",
            "default": true
          }
        }
      }
    }
  },
  "uiHints": {
    "push.mode": {
      "label": "Notification Mode",
      "help": "Private = silent wake; Rich = message preview in notification"
    },
    "push.relayUrl": {
      "label": "Push Relay URL",
      "placeholder": "https://push.aight.app"
    },
    "push.deviceTokens": {
      "label": "Registered Devices",
      "advanced": true
    },
    "today.enabled": {
      "label": "Today View"
    }
  }
}
