{
  "$schema": "https://json-schema.org/draft-07/schema",
  "cli": "nx",
  "$id": "BotonicPreset",
  "title": "Create a Botonic Workspace",
  "description": "Initialize a new workspace for Botonic bot development",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the workspace",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use for the workspace?"
    },
    "packageManager": {
      "type": "string",
      "description": "Package manager to use",
      "default": "pnpm",
      "enum": ["npm", "pnpm"],
      "x-prompt": {
        "message": "Which package manager would you like to use?",
        "type": "list",
        "items": [
          {
            "value": "npm",
            "label": "npm"
          },
          {
            "value": "pnpm",
            "label": "pnpm"
          }
        ]
      }
    },
    "nxWorkspaceRoot": {
      "type": "string",
      "description": "Path to the root of the nx workspace",
      "default": "."
    },
    "botonicVersion": {
      "type": "string",
      "description": "Botonic packages version. Leave empty to use the same version as the installed @botonic/nx-plugin."
    }
  },
  "required": ["name"],
  "additionalProperties": true
}
