{
  "schemaVersion": "helix.bridge-plugin/1",
  "id": "hypersonic.beamng-vehicle",
  "name": "BeamNG Vehicle Importer",
  "version": "0.8.0",
  "trust": "local-untrusted",
  "description": "Assess, convert, texture, lower, and acceptance-test a BeamNG vehicle plus its exact configuration before HELIX packaging.",
  "permissions": [
    "filesystem.read-source",
    "filesystem.write-output",
    "spawn-process",
    "blender",
    "unrestricted-host-execution"
  ],
  "capabilities": [
    {
      "id": "beamng.vehicle.import",
      "stage": "transform",
      "accepts": ["directory.unknown"],
      "produces": ["format.glb"],
      "targets": ["web", "canonical"],
      "matches": { "markerFiles": ["vehicles"] },
      "requires": ["input:palette"],
      "permissions": [
        "filesystem.read-source",
        "filesystem.write-output",
        "spawn-process",
        "blender",
        "unrestricted-host-execution"
      ],
      "command": {
        "executable": "bin/beamng-vehicle.mjs",
        "timeoutSeconds": 1800
      },
      "description": "Select one viable BeamNG vehicle, convert its authored geometry/materials, then reject non-canonical frames, missing textures, bad cabins, wheels, or audio evidence."
    },
    {
      "id": "beamng.vehicle.package",
      "stage": "package",
      "accepts": ["format.glb"],
      "produces": ["helix.package.asset"],
      "targets": ["web", "canonical"],
      "replaces": ["helix.asset.copy"],
      "permissions": [
        "filesystem.read-source",
        "filesystem.write-output"
      ],
      "command": {
        "executable": "bin/beamng-vehicle.mjs",
        "timeoutSeconds": 120
      },
      "description": "Package the canonical vehicle GLB with its immutable source manifest, versioned lowering diagnostics, Vehicle Package v2, add-on records, and exact-selection Build."
    }
  ]
}
