{
  "schemaVersion": "persona-app.v1",
  "registryVersion": "2026-04-25.1",
  "contextTools": [
    {
      "id": "health.context.read",
      "command": "oomi context health --json",
      "endpoint": "/v1/context/health",
      "description": "Reads the latest account-linked health context synced by Oomi mobile clients.",
      "permissions": ["healthkit.read", "health_connect.read"],
      "readOnly": true,
      "targets": ["ios", "android", "web"]
    }
  ],
  "sharedComponents": [
    {
      "type": "shared.personaHero",
      "description": "Domain hero with title, subtitle, and a primary metric.",
      "targets": ["ios", "android", "web", "webspatial"]
    },
    {
      "type": "shared.oomiNote",
      "description": "A primary-persona note with optional actions.",
      "targets": ["ios", "android", "web", "webspatial"]
    }
  ],
  "personaPacks": [
    {
      "personaType": "fitness",
      "displayName": "Fitness",
      "components": [
        {
          "type": "fitness.todaySummary",
          "description": "Daily movement summary with progress, steps, and sleep context.",
          "targets": ["ios", "android", "web"]
        },
        {
          "type": "fitness.dataFreshnessCard",
          "description": "Shows whether mobile health context is fresh enough for decisions and nudges.",
          "targets": ["ios", "android", "web"]
        },
        {
          "type": "fitness.dailyPlanCard",
          "description": "Goal-aware daily plan generated from approved health context.",
          "targets": ["ios", "android", "web"]
        },
        {
          "type": "fitness.goalEditorCard",
          "description": "Lets the user select one active fitness focus from approved Oomi goals.",
          "targets": ["ios", "android", "web"]
        },
        {
          "type": "fitness.goalChecklist",
          "description": "Checklist of suggested goals for today.",
          "targets": ["ios", "android", "web"]
        },
        {
          "type": "fitness.metricGrid",
          "description": "Grid of approved HealthKit or Health Connect activity, sleep, cardio, and body metrics.",
          "targets": ["ios", "android", "web"]
        },
        {
          "type": "fitness.workoutList",
          "description": "Recent workouts synced from the user's approved mobile health source.",
          "targets": ["ios", "android", "web"]
        }
      ],
      "actions": [
        {
          "id": "fitness.complete_goal",
          "description": "Marks one fitness goal complete.",
          "payloadSchema": {
            "type": "object",
            "required": ["goalId"],
            "properties": {
              "goalId": { "type": "string" }
            }
          }
        },
        {
          "id": "fitness.complete_workout",
          "description": "Records a completed workout and updates today's movement state.",
          "payloadSchema": {
            "type": "object",
            "properties": {
              "goalId": { "type": "string" },
              "minutes": { "type": "integer", "minimum": 1 }
            }
          }
        },
        {
          "id": "fitness.set_goal",
          "description": "Sets the user's active Fitness focus so Oomi can tune the mini-app and future nudges.",
          "payloadSchema": {
            "type": "object",
            "required": ["goalId"],
            "properties": {
              "goalId": {
                "type": "string",
                "enum": ["move_more", "sleep_better", "build_workout_habit"]
              }
            }
          }
        }
      ],
      "permissions": [
        "fitness.state.read",
        "fitness.state.write",
        "healthkit.read",
        "health_connect.read"
      ]
    }
  ]
}
