{
  "$schema": "http://json-schema.org/schema",
  "cli": "nx",
  "$id": "mean",
  "title": "MEAN fullstack generator",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the project.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use for the project?"
    },
    "env": {
      "type": "string",
      "description": "ADSP environment / access service to target: test = access-uat.alberta.ca (UAT — use for dev and pre-prod), prod = access.alberta.ca, dev = ADSP platform dev (restricted). Defaults to test.",
      "enum": ["test", "prod", "dev"],
      "default": "test"
    },
    "tenant": {
      "type": "string",
      "description": "ADSP tenant name. Enables a single browser login for the full stack — service and frontend agent interactions both use the same tenant-realm token.",
      "alias": "t"
    },
    "tenantRealm": {
      "type": "string",
      "description": "Keycloak realm UUID. Optional when --tenant is provided — overrides the realm looked up from the tenant service.",
      "alias": "tr"
    },
    "accessToken": {
      "type": "string",
      "description": "Access token for ADSP tenant configuration (skips interactive login)."
    },
    "skipAgent": {
      "type": "boolean",
      "description": "Skip the consultAgent interaction and generate base scaffolding only.",
      "default": false
    }
  },
  "required": ["name"]
}
