{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://harness-forge.dev/schemas/runtime/pack-manifest.schema.json",
  "title": "Runtime Pack Manifest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "packId",
    "title",
    "description",
    "kind",
    "sourceBundleIds",
    "dependsOn",
    "conflictsWith",
    "managedRoots",
    "selectionMode"
  ],
  "properties": {
    "packId": { "type": "string", "minLength": 1 },
    "title": { "type": "string", "minLength": 1 },
    "description": { "type": "string", "minLength": 1 },
    "kind": { "type": "string", "minLength": 1 },
    "sourceBundleIds": {
      "type": "array",
      "items": { "type": "string", "minLength": 1 }
    },
    "dependsOn": {
      "type": "array",
      "items": { "type": "string", "minLength": 1 }
    },
    "conflictsWith": {
      "type": "array",
      "items": { "type": "string", "minLength": 1 }
    },
    "managedRoots": {
      "type": "array",
      "items": { "type": "string", "minLength": 1 }
    },
    "selectionMode": {
      "type": "string",
      "enum": ["default", "recommended", "explicit", "profile"]
    },
    "optional": { "type": "boolean" },
    "defaultEnabled": { "type": "boolean" },
    "targetPosture": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "enum": ["full", "partial", "emulated", "unsupported"]
      }
    }
  }
}
