{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "RawTurboJson",
  "description": "Configuration schema for turbo.json.\n\nAn object representing the task dependency graph of your project. turbo interprets these conventions to schedule, execute, and cache the outputs of tasks in your project.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration",
  "type": "object",
  "properties": {
    "$schema": {
      "description": "JSON Schema URL for validation.",
      "anyOf": [
        {
          "$ref": "#/definitions/String"
        },
        {
          "type": "null"
        }
      ]
    },
    "agentGuidance": {
      "description": "Controls whether turbo maintains a root `AGENTS.md` block for AI agents.\n\nDefaults to `false`. Set to `true` to opt in to future automatic updates.",
      "anyOf": [
        {
          "$ref": "#/definitions/Boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "boundaries": {
      "description": "Configuration for `turbo boundaries`.\n\nAllows users to restrict a package's dependencies and dependents.",
      "anyOf": [
        {
          "$ref": "#/definitions/BoundariesConfig"
        },
        {
          "type": "null"
        }
      ]
    },
    "cacheDir": {
      "description": "Specify the filesystem cache directory.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#cachedir",
      "anyOf": [
        {
          "$ref": "#/definitions/String"
        },
        {
          "type": "null"
        }
      ]
    },
    "cacheMaxAge": {
      "description": "Maximum age of local cache entries before automatic eviction.\n\nAccepts a human-readable duration string (e.g. `\"7d\"`, `\"24h\"`, `\"2w\"`). Set to `\"0\"` to disable eviction (the default). Entries older than this value are removed at the start of each run.",
      "anyOf": [
        {
          "$ref": "#/definitions/String"
        },
        {
          "type": "null"
        }
      ]
    },
    "cacheMaxSize": {
      "description": "Maximum total size of the local filesystem cache.\n\nAccepts a human-readable size string (e.g. `\"10GB\"`, `\"500MB\"`). When exceeded, the oldest entries are evicted until the cache is under the limit. Set to `\"0\"` to disable (the default).",
      "anyOf": [
        {
          "$ref": "#/definitions/String"
        },
        {
          "type": "null"
        }
      ]
    },
    "concurrency": {
      "description": "Set/limit the maximum concurrency for task execution.\n\nMust be an integer greater than or equal to `1` or a percentage value like `50%`. Use `1` to force serial execution (one task at a time). Use `100%` to use all available logical processors.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#concurrency",
      "anyOf": [
        {
          "$ref": "#/definitions/String"
        },
        {
          "type": "null"
        }
      ]
    },
    "daemon": {
      "description": "Deprecated: The daemon is no longer used for `turbo run` and this option will be removed in version 3.0.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#daemon",
      "anyOf": [
        {
          "$ref": "#/definitions/Boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "dangerouslyDisablePackageManagerCheck": {
      "description": "Disable package manager declaration checks in root `package.json`.\n\nThis is highly discouraged as it leaves `turbo` dependent on system configuration to infer the correct package manager. Some turbo features are disabled if this is set to true.",
      "anyOf": [
        {
          "$ref": "#/definitions/Boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "envMode": {
      "description": "Turborepo's Environment Modes allow you to control which environment variables are available to a task at runtime.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#envmode",
      "anyOf": [
        {
          "$ref": "#/definitions/EnvMode"
        },
        {
          "type": "null"
        }
      ]
    },
    "extends": {
      "description": "This key is only available in Workspace Configs and cannot be used in your root turbo.json.\n\nTells turbo to extend your root `turbo.json` and overrides with the keys provided in your Workspace Configs. Currently, only the `[\"//\"]` value is allowed.",
      "anyOf": [
        {
          "$ref": "#/definitions/Array_of_String"
        },
        {
          "type": "null"
        }
      ]
    },
    "futureFlags": {
      "description": "Opt into breaking changes prior to major releases, experimental features, and beta features.",
      "anyOf": [
        {
          "$ref": "#/definitions/FutureFlags"
        },
        {
          "type": "null"
        }
      ]
    },
    "global": {
      "description": "Global configuration block.\n\nWhen `futureFlags.globalConfiguration` is enabled, global settings like `inputs`, `env`, `ui`, etc. are placed here instead of at the top level.",
      "anyOf": [
        {
          "$ref": "#/definitions/GlobalConfig"
        },
        {
          "type": "null"
        }
      ]
    },
    "globalDependencies": {
      "description": "A list of globs to include in the set of implicit global hash dependencies.\n\nThe contents of these files will be included in the global hashing algorithm and affect the hashes of all tasks.\n\nThis is useful for busting the cache based on: - `.env` files (not in Git) - Any root level file that impacts package tasks that are not represented in the traditional dependency graph (e.g. a root `tsconfig.json`, `jest.config.ts`, `.eslintrc`, etc.)\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#globaldependencies",
      "type": ["array", "null"],
      "items": {
        "$ref": "#/definitions/String"
      }
    },
    "globalEnv": {
      "description": "A list of environment variables for implicit global hash dependencies.\n\nThe variables included in this list will affect all task hashes.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#globalenv",
      "type": ["array", "null"],
      "items": {
        "$ref": "#/definitions/String"
      }
    },
    "globalPassThroughEnv": {
      "description": "An allowlist of environment variables that should be made available to all tasks, but should not contribute to the task's cache key, e.g. `AWS_SECRET_KEY`.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#globalpassthroughenv",
      "type": ["array", "null"],
      "items": {
        "$ref": "#/definitions/String"
      }
    },
    "noUpdateNotifier": {
      "description": "When set to `true`, disables the update notification that appears when a new version of `turbo` is available.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#noupdatenotifier",
      "anyOf": [
        {
          "$ref": "#/definitions/Boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "remoteCache": {
      "description": "Configuration options when interfacing with the remote cache.\n\nDocumentation: https://turborepo.dev/docs/core-concepts/remote-caching",
      "anyOf": [
        {
          "$ref": "#/definitions/RemoteCache"
        },
        {
          "type": "null"
        }
      ]
    },
    "setup": {
      "description": "Repository policy for `turbo setup`. Only allowed in the root turbo.json and requires `futureFlags.experimentalSetup`.",
      "anyOf": [
        {
          "$ref": "#/definitions/SetupPolicy"
        },
        {
          "type": "null"
        }
      ]
    },
    "tags": {
      "description": "Arbitrary string labels for this package. In the root configuration, these labels apply to the root package.",
      "anyOf": [
        {
          "$ref": "#/definitions/Array_of_String"
        },
        {
          "type": "null"
        }
      ]
    },
    "tasks": {
      "description": "An object representing the task dependency graph of your project.\n\nturbo interprets these conventions to schedule, execute, and cache the outputs of tasks in your project.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#tasks",
      "type": ["object", "null"],
      "additionalProperties": {
        "$ref": "#/definitions/Pipeline"
      }
    },
    "ui": {
      "description": "Enable use of the UI for `turbo`.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#ui",
      "anyOf": [
        {
          "$ref": "#/definitions/UI"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "allowComments": true,
  "allowTrailingCommas": true,
  "definitions": {
    "AdditionalTool": {
      "description": "A tool that `turbo setup` downloads, verifies, and installs from explicit artifacts. The full installation tree is kept; no tool-provided scripts run.",
      "type": "object",
      "required": ["artifacts", "version"],
      "properties": {
        "artifacts": {
          "description": "Artifacts keyed by platform, such as `linux-x64-gnu` or `macos-arm64`. Platforms without an artifact are unsupported for this tool.",
          "allOf": [
            {
              "$ref": "#/definitions/Map_of_AdditionalToolArtifact"
            }
          ]
        },
        "version": {
          "description": "The exact version of the tool. Ranges and channels are not allowed.",
          "allOf": [
            {
              "$ref": "#/definitions/String"
            }
          ]
        }
      }
    },
    "AdditionalToolArtifact": {
      "description": "One platform's artifact for an additional tool.",
      "type": "object",
      "required": ["executables", "format", "sha256", "url"],
      "properties": {
        "executables": {
          "description": "Executable names mapped to paths relative to `rootPrefix`, or to the archive's top level without one. A binary has exactly one entry, which names where the file is installed.",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/String"
          }
        },
        "format": {
          "description": "`binary` for a single executable file, or the archive format.",
          "allOf": [
            {
              "$ref": "#/definitions/ArtifactFormat"
            }
          ]
        },
        "rootPrefix": {
          "description": "The single top-level directory that contains every archive entry. Omit it for an archive whose entries sit at its top level. Not allowed for binaries.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "sha256": {
          "description": "Lowercase hex SHA-256 digest of the downloaded bytes. A digest pins the expected bytes; it does not establish that the publisher is trustworthy.",
          "allOf": [
            {
              "$ref": "#/definitions/String"
            }
          ]
        },
        "url": {
          "description": "HTTPS download URL without credentials, a query, or a fragment.",
          "allOf": [
            {
              "$ref": "#/definitions/String"
            }
          ]
        }
      }
    },
    "Array_of_String": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/String"
      }
    },
    "ArtifactFormat": {
      "description": "How an artifact is packaged. `binary` is a single executable file.",
      "type": "string",
      "enum": ["binary", "tar", "tar-gz", "zip"]
    },
    "Boolean": {
      "type": "boolean"
    },
    "BoundariesConfig": {
      "description": "Configuration for `turbo boundaries`.\n\nAllows users to restrict a package's dependencies and dependents.",
      "type": "object",
      "properties": {
        "dependencies": {
          "description": "Rules for a package's dependencies.\n\nRestricts which packages this package can import.",
          "anyOf": [
            {
              "$ref": "#/definitions/Permissions"
            },
            {
              "type": "null"
            }
          ]
        },
        "dependents": {
          "description": "Rules for a package's dependents.\n\nRestricts which packages can import this package.",
          "anyOf": [
            {
              "$ref": "#/definitions/Permissions"
            },
            {
              "type": "null"
            }
          ]
        },
        "implicitDependencies": {
          "description": "Declares any implicit dependencies, i.e. any dependency not declared in a `package.json`.\n\nThese can include dependencies automatically injected by a framework or a testing library.",
          "anyOf": [
            {
              "$ref": "#/definitions/Array_of_String"
            },
            {
              "type": "null"
            }
          ]
        },
        "tags": {
          "description": "The boundaries rules for tags.\n\nRestricts which packages can import a tag and which packages a tag can import.",
          "anyOf": [
            {
              "$ref": "#/definitions/Map_of_TagRules"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "DependencyPolicy": {
      "description": "How `turbo setup` prepares a toolchain's dependencies. `locked` installs them from the committed ecosystem lockfile without changing it. `skip` does not install them.",
      "type": "string",
      "enum": ["locked", "skip"]
    },
    "EnvMode": {
      "description": "Turborepo's Environment Modes allow you to control which environment variables are available to a task at runtime.\n\n- `strict`: Filter environment variables to only those that are specified in the `env` and `globalEnv` keys in `turbo.json`. - `loose`: Allow all environment variables for the process to be available.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#envmode",
      "oneOf": [
        {
          "description": "Allow all environment variables for the process to be available.",
          "type": "string",
          "enum": ["loose"]
        },
        {
          "description": "Filter environment variables to only those that are specified in the `env` and `globalEnv` keys in `turbo.json`.",
          "type": "string",
          "enum": ["strict"]
        }
      ]
    },
    "FutureFlags": {
      "description": "Opt into breaking changes prior to major releases, experimental features, and beta features.",
      "type": "object",
      "properties": {
        "affectedUsingTaskInputs": {
          "description": "Use task-level `inputs` globs to determine which tasks are affected by changed files when running with `--affected`. When enabled, only tasks whose declared inputs match the changed files are selected, rather than selecting all tasks in changed packages. `turbo query`'s `affectedPackages` reports the owners of affected tasks, including dependents connected only by explicit task dependencies. `turbo prune` retains task dependency owners and their package dependencies, including across enabled toolchains, in addition to its package-based closure.",
          "default": false,
          "type": "boolean"
        },
        "errorsOnlyShowHash": {
          "description": "When using `outputLogs: \"errors-only\"`, show task hashes when tasks complete successfully. This provides visibility into which tasks are running without showing full output logs.",
          "default": false,
          "type": "boolean"
        },
        "experimentalCargoWorkspaces": {
          "description": "Treat the crates of a Cargo workspace as Turborepo packages.\n\nWhen enabled, Rust crates are discovered via `cargo metadata` and participate in the package graph: they resolve in `--filter` expressions, propagate `--affected`, and appear in `turbo query`. Filtered builds execute each selected crate. Unfiltered builds prefer entrypoints, falling back to libraries when no entrypoints exist. Entrypoints also expose `run` and `dev`. The `test`, `check`, `lint`, and `format` tasks are selectable per crate with `--filter`. An unfiltered run executes one workspace-wide Cargo verification command; filtered runs use the selected crates, or the workspace command when the workspace package is selected directly.\n\nAll crates implicitly register `build` and the verification tasks; entrypoints with one binary also register `run` and `dev`. The workspace package registers the verification tasks. Normal task definitions configure or override these defaults, and package configuration can exclude them with `extends: false`.\n\nTask caching uses Cargo-derived inputs and caches entrypoint build deliverables. Library builds and formatting default to uncached. This feature is experimental.",
          "default": false,
          "type": "boolean"
        },
        "experimentalGoWorkspaces": {
          "description": "Treat the modules listed in a `go.work` file as Turborepo packages.\n\nWhen enabled, Go modules are discovered from the repository-root `go.work` via the Go toolchain and participate in the package graph: they resolve in `--filter` expressions, propagate `--affected`, and appear in `turbo query`. This feature is experimental.",
          "default": false,
          "type": "boolean"
        },
        "experimentalObservability": {
          "description": "Enable experimental OpenTelemetry exporter support.\n\nWhen enabled, Turborepo will honor the `experimentalObservability` configuration block (if present) to send run summaries to an observability backend.",
          "default": false,
          "type": "boolean"
        },
        "experimentalPythonWorkspaces": {
          "description": "Treat the members of a uv workspace as Turborepo packages.\n\nWhen enabled, Python packages are discovered from the root `pyproject.toml`'s `[tool.uv.workspace]` members and participate in the package graph, resolve in `--filter` expressions, and appear in `turbo query`. uv is the only supported Python package manager. This feature is experimental.",
          "default": false,
          "type": "boolean"
        },
        "experimentalSetup": {
          "description": "Opt into experimental setup features that are still in progress.\n\nSetup invocation requires this flag; help is available without it. The `turbo.lock` format is unstable. Only parsing and help are implemented; provisioning, planning, and checking return a diagnostic. Setup does not interpret `turbo.lock` or change run or hash behavior.",
          "default": false,
          "type": "boolean"
        },
        "filterUsingTasks": {
          "description": "Resolve `--filter` at the task level instead of the package level. Git-range filters (e.g. `--filter=[main]`) will match against task `inputs` globs, and the `...` dependency/dependent syntax will traverse the task graph in addition to the package graph.",
          "default": false,
          "type": "boolean"
        },
        "githubActionsRemoteBaseRefFallback": {
          "description": "When GitHub Actions reports a base branch that is not available as a local ref, fall back to `origin/<branch>`. This supports detached checkouts where only remote-tracking refs are present.",
          "default": false,
          "type": "boolean"
        },
        "globalConfiguration": {
          "description": "Move global configuration keys (like `globalDependencies`, `ui`, `envMode`, etc.) under a top-level `global` key for clarity.\n\nWhen enabled, keys are renamed: `globalDependencies` becomes `global.inputs`, `globalEnv` becomes `global.env`, and `globalPassThroughEnv` becomes `global.passThroughEnv`.",
          "default": false,
          "type": "boolean"
        },
        "hashFilePermissions": {
          "description": "Include file executable permissions in task hashes. Disabled by default. Enabling this flag changes all task hashes. On Unix, any executable bit marks a regular file as executable. On Windows, files are non-executable. Symlink permissions and other permission bits do not affect hashes.",
          "default": false,
          "type": "boolean"
        },
        "longerSignatureKey": {
          "description": "Enforce a minimum length of 32 bytes for `TURBO_REMOTE_CACHE_SIGNATURE_KEY` when `remoteCache.signature` is enabled. Short keys weaken the HMAC-SHA256 signature, making brute-force tag collision feasible.",
          "default": false,
          "type": "boolean"
        },
        "pruneIncludesGlobalFiles": {
          "description": "Include files matching `globalDependencies` globs in the `turbo prune` output. Without this flag, `globalDependencies` entries are preserved in the pruned `turbo.json` but the actual files are not copied.",
          "default": false,
          "type": "boolean"
        },
        "strictTaskEntrypointSelection": {
          "description": "Select requested task entrypoints according to whether the task resolves a command in the repository. When any package can run a requested task, packages without a command are not used as entrypoints. Tasks with no command anywhere remain available for graph-only orchestration, and missing tasks reached as dependencies remain in the Task Graph.",
          "default": false,
          "type": "boolean"
        },
        "watchUsingTaskInputs": {
          "description": "Use task-level `inputs` globs to determine which tasks to re-run when files change in `turbo watch`. When enabled, only tasks whose declared inputs match the changed files are re-executed, rather than re-running all tasks in changed packages.",
          "default": false,
          "type": "boolean"
        }
      }
    },
    "GlobalConfig": {
      "description": "Global configuration that applies to all tasks in the monorepo.\n\nWhen `futureFlags.globalConfiguration` is enabled, these fields live under the top-level `\"global\"` key instead of being scattered across the root of turbo.json.\n\nWhen adding a new field, also update: 1. The corresponding top-level field on `RawTurboJson` 2. `resolve_global_config()` on `RawTurboJson` 3. `validate_no_top_level_global_keys()` in this file 4. `WithMetadata` impl in `parser.rs` 5. `GlobalConfig` in `config-v2.ts` and `generate_global_config_interface()` in schema-gen",
      "type": "object",
      "properties": {
        "cacheDir": {
          "description": "Specify the filesystem cache directory.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "cacheMaxAge": {
          "description": "Maximum age of local cache entries before automatic eviction.\n\nAccepts a human-readable duration string (e.g. `\"7d\"`, `\"24h\"`, `\"2w\"`). Set to `\"0\"` to disable eviction (the default). Entries older than this value are removed at the start of each run.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "cacheMaxSize": {
          "description": "Maximum total size of the local filesystem cache.\n\nAccepts a human-readable size string (e.g. `\"10GB\"`, `\"500MB\"`). When exceeded, the oldest entries are evicted until the cache is under the limit. Set to `\"0\"` to disable (the default).",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "concurrency": {
          "description": "Set/limit the maximum concurrency for task execution.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "daemon": {
          "description": "Deprecated: The daemon is no longer used for `turbo run`.",
          "anyOf": [
            {
              "$ref": "#/definitions/Boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "dangerouslyDisablePackageManagerCheck": {
          "description": "Disable package manager declaration checks in root `package.json`.",
          "anyOf": [
            {
              "$ref": "#/definitions/Boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "env": {
          "description": "A list of environment variables for implicit global hash dependencies.\n\nUnlike `inputs` (which become per-task inputs), these variables are included in the global hash and affect all task hashes uniformly.",
          "type": ["array", "null"],
          "items": {
            "$ref": "#/definitions/String"
          }
        },
        "envMode": {
          "description": "Turborepo's Environment Modes allow you to control which environment variables are available to a task at runtime.",
          "anyOf": [
            {
              "$ref": "#/definitions/EnvMode"
            },
            {
              "type": "null"
            }
          ]
        },
        "inputs": {
          "description": "A list of globs for files that implicitly affect all tasks.\n\nThese files are prepended to every task's `inputs` during engine construction rather than being folded into the global hash. This allows individual tasks to exclude specific global files via negation globs.",
          "type": ["array", "null"],
          "items": {
            "$ref": "#/definitions/String"
          }
        },
        "noUpdateNotifier": {
          "description": "When set to `true`, disables the update notification that appears when a new version of `turbo` is available.",
          "anyOf": [
            {
              "$ref": "#/definitions/Boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "passThroughEnv": {
          "description": "An allowlist of environment variables that should be made available to all tasks, but should not contribute to the task's cache key.",
          "type": ["array", "null"],
          "items": {
            "$ref": "#/definitions/String"
          }
        },
        "remoteCache": {
          "description": "Configuration options when interfacing with the remote cache.",
          "anyOf": [
            {
              "$ref": "#/definitions/RemoteCache"
            },
            {
              "type": "null"
            }
          ]
        },
        "ui": {
          "description": "Enable use of the UI for `turbo`.",
          "anyOf": [
            {
              "$ref": "#/definitions/UI"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "Map_of_AdditionalToolArtifact": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/definitions/AdditionalToolArtifact"
      }
    },
    "Map_of_TagRules": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/definitions/TagRules"
      }
    },
    "OutputLogs": {
      "description": "Output mode for the task.\n\n- `full`: Displays all output - `hash-only`: Show only the hashes of the tasks - `new-only`: Only show output from cache misses - `errors-only`: Only show output from task failures - `none`: Hides all task output\n\nDocumentation: https://turborepo.dev/docs/reference/run#--output-logs-option",
      "oneOf": [
        {
          "description": "Displays all output.",
          "type": "string",
          "enum": ["full"]
        },
        {
          "description": "Hides all task output.",
          "type": "string",
          "enum": ["none"]
        },
        {
          "description": "Show only the hashes of the tasks.",
          "type": "string",
          "enum": ["hash-only"]
        },
        {
          "description": "Only show output from cache misses.",
          "type": "string",
          "enum": ["new-only"]
        },
        {
          "description": "Only show output from task failures.",
          "type": "string",
          "enum": ["errors-only"]
        }
      ]
    },
    "Permissions": {
      "description": "Permission rules for boundaries.",
      "type": "object",
      "properties": {
        "allow": {
          "description": "Lists which tags are allowed.\n\nAny tag not included will be banned. If omitted, all tags are permitted.",
          "anyOf": [
            {
              "$ref": "#/definitions/Array_of_String"
            },
            {
              "type": "null"
            }
          ]
        },
        "deny": {
          "description": "Lists which tags are banned.",
          "anyOf": [
            {
              "$ref": "#/definitions/Array_of_String"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "Pipeline": {
      "description": "Configuration for a pipeline task.\n\nThe name of a task that can be executed by turbo. If turbo finds a workspace package with a `package.json` scripts object with a matching key, it will apply the pipeline task configuration to that npm script during execution.",
      "type": "object",
      "properties": {
        "cache": {
          "description": "Whether or not to cache the outputs of the task.\n\nSetting cache to false is useful for long-running \"watch\" or development mode tasks.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#cache",
          "anyOf": [
            {
              "$ref": "#/definitions/Boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "dependsOn": {
          "description": "The list of tasks that this task depends on.\n\nPrefixing an item in `dependsOn` with a `^` prefix tells turbo that this task depends on the package's topological dependencies completing the task first. Items without a `^` prefix express the relationships between tasks within the same package.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#dependson",
          "anyOf": [
            {
              "$ref": "#/definitions/Array_of_String"
            },
            {
              "type": "null"
            }
          ]
        },
        "description": {
          "description": "A human-readable description of what this task does.\n\nThis field is for documentation purposes only and does not affect task execution or caching behavior.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "env": {
          "description": "A list of environment variables that this task depends on.\n\nNote: If you are migrating from a turbo version 1.5 or below, you may be used to prefixing your variables with a `$`. You no longer need to use the `$` prefix.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#env",
          "type": ["array", "null"],
          "items": {
            "$ref": "#/definitions/String"
          }
        },
        "inputs": {
          "description": "The set of glob patterns to consider as inputs to this task.\n\nChanges to files covered by these globs will cause a cache miss and the task will be rerun. If a file has been changed that is **not** included in the set of globs, it will not cause a cache miss. If omitted or empty, all files in the package are considered as inputs.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#inputs",
          "type": ["array", "null"],
          "items": {
            "$ref": "#/definitions/TaskInput"
          }
        },
        "interactive": {
          "description": "Mark a task as interactive allowing it to receive input from stdin.\n\nInteractive tasks must be marked with `\"cache\": false` as the input they receive from stdin can change the outcome of the task.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#interactive",
          "anyOf": [
            {
              "$ref": "#/definitions/Boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "interruptible": {
          "description": "Label a persistent task as interruptible to allow it to be restarted by `turbo watch`.\n\n`turbo watch` watches for changes to your packages and automatically restarts tasks that are affected. However, if a task is persistent, it will not be restarted by default. To enable restarting persistent tasks, set `interruptible` to `true`.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#interruptible",
          "anyOf": [
            {
              "$ref": "#/definitions/Boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "outputLogs": {
          "description": "Output mode for the task.\n\nDocumentation: https://turborepo.dev/docs/reference/run#--output-logs-option",
          "anyOf": [
            {
              "$ref": "#/definitions/OutputLogs"
            },
            {
              "type": "null"
            }
          ]
        },
        "outputs": {
          "description": "The set of glob patterns indicating a task's cacheable filesystem outputs.\n\nTurborepo captures task logs for all tasks. This enables us to cache tasks whose runs produce no artifacts other than logs (such as linters). Logs are always treated as a cacheable artifact and never need to be specified.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#outputs",
          "type": ["array", "null"],
          "items": {
            "$ref": "#/definitions/String"
          }
        },
        "passThroughEnv": {
          "description": "An allowlist of environment variables that should be made available in this task's environment, but should not contribute to the task's cache key, e.g. `AWS_SECRET_KEY`.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#passthroughenv",
          "type": ["array", "null"],
          "items": {
            "$ref": "#/definitions/String"
          }
        },
        "persistent": {
          "description": "Indicates whether the task exits or not.\n\nSetting `persistent` to `true` tells turbo that this is a long-running task and will ensure that other tasks cannot depend on it.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#persistent",
          "anyOf": [
            {
              "$ref": "#/definitions/Boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "tags": {
          "description": "Arbitrary string labels for this task. Package configurations replace inherited tags by default; an empty array clears them. Include `$TURBO_EXTENDS$` to append labels to inherited tags.",
          "type": ["array", "null"],
          "items": {
            "$ref": "#/definitions/String"
          }
        },
        "with": {
          "description": "A list of tasks that will run alongside this task.\n\nTasks in this list will not be run until completion before this task starts execution.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#with",
          "type": ["array", "null"],
          "items": {
            "$ref": "#/definitions/String"
          }
        }
      }
    },
    "RemoteCache": {
      "description": "Configuration options that control how turbo interfaces with the remote cache.\n\nDocumentation: https://turborepo.dev/docs/core-concepts/remote-caching",
      "type": "object",
      "properties": {
        "apiUrl": {
          "description": "Set endpoint for API calls to the remote cache.\n\nDocumentation: https://turborepo.dev/docs/core-concepts/remote-caching#self-hosting",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "enabled": {
          "description": "Indicates if the remote cache is enabled.\n\nWhen `false`, Turborepo will disable all remote cache operations, even if the repo has a valid token. If `true`, remote caching is enabled, but still requires the user to login and link their repo to a remote cache.\n\nDocumentation: https://turborepo.dev/docs/core-concepts/remote-caching",
          "anyOf": [
            {
              "$ref": "#/definitions/Boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "loginUrl": {
          "description": "Set endpoint for requesting tokens during `turbo login`.\n\nDocumentation: https://turborepo.dev/docs/core-concepts/remote-caching#self-hosting",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "preflight": {
          "description": "When enabled, any HTTP request will be preceded by an OPTIONS request to determine if the request is supported by the endpoint.\n\nDocumentation: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#preflighted_requests",
          "anyOf": [
            {
              "$ref": "#/definitions/Boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "signature": {
          "description": "Indicates if signature verification is enabled for requests to the remote cache.\n\nWhen `true`, Turborepo will sign every uploaded artifact using the value of the environment variable `TURBO_REMOTE_CACHE_SIGNATURE_KEY`. Turborepo will reject any downloaded artifacts that have an invalid signature or are missing a signature.",
          "anyOf": [
            {
              "$ref": "#/definitions/Boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "teamId": {
          "description": "The ID of the Remote Cache team.\n\nValue will be passed as `teamId` in the querystring for all Remote Cache HTTP calls. Must start with `team_` or it will not be used.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "teamSlug": {
          "description": "The slug of the Remote Cache team.\n\nValue will be passed as `slug` in the querystring for all Remote Cache HTTP calls.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "timeout": {
          "description": "Sets a timeout for remote cache operations.\n\nValue is given in seconds and only whole values are accepted. If `0` is passed, then there is no timeout for any cache operations.",
          "anyOf": [
            {
              "$ref": "#/definitions/uint64"
            },
            {
              "type": "null"
            }
          ]
        },
        "uploadTimeout": {
          "description": "Sets a timeout for remote cache uploads.\n\nValue is given in seconds and only whole values are accepted. If `0` is passed, then there is no timeout for any remote cache uploads.",
          "anyOf": [
            {
              "$ref": "#/definitions/uint64"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "SetupMirrors": {
      "description": "Credential-free HTTPS mirrors for `turbo setup` downloads. Each value is a base URL that serves the same paths as the official source.",
      "type": "object",
      "properties": {
        "bun": {
          "description": "Replaces the `https://github.com` origin for Bun release checksums and archives, keeping their official paths.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "go": {
          "description": "Replaces both the `https://go.dev` and `https://dl.google.com` origins for Go's release index and archives. The mirror serves both official paths, `/dl/?mode=json&include=all` and `/go/<archive>`, beneath its base.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "node": {
          "description": "Replaces `https://nodejs.org/dist` for Node.js release metadata and archives.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "npmRegistry": {
          "description": "Replaces `https://registry.npmjs.org` for npm, pnpm, and Yarn package metadata and tarballs.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "python": {
          "description": "Replaces the `https://releases.astral.sh` origin for CPython build checksums and archives, keeping their official paths.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "rust": {
          "description": "Replaces the `https://static.rust-lang.org` origin for rustup and Rust toolchain downloads, keeping their official paths, like `RUSTUP_DIST_SERVER`.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "uv": {
          "description": "Replaces the `https://releases.astral.sh` origin for uv's version index and release archives, keeping their official paths.",
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "SetupPolicy": {
      "description": "Repository policy for `turbo setup`. Only allowed in the root turbo.json and requires `futureFlags.experimentalSetup`.\n\nOptional: without it, `turbo setup` infers what to prepare from native declaration files, and detected tools are managed. Root `tools` and `dependencies` apply to every toolchain. A toolchain key overrides them for that toolchain.",
      "type": "object",
      "properties": {
        "additionalTools": {
          "description": "Tools that no built-in adapter manages, keyed by tool ID. Each declares an exact version and explicit per-platform artifacts. `turbo setup` locks, verifies, and installs them without running tool-provided scripts.",
          "type": ["object", "null"],
          "additionalProperties": {
            "$ref": "#/definitions/AdditionalTool"
          }
        },
        "dependencies": {
          "description": "How `turbo setup` prepares dependencies for every toolchain.",
          "anyOf": [
            {
              "$ref": "#/definitions/DependencyPolicy"
            },
            {
              "type": "null"
            }
          ]
        },
        "dependencyInstallOrder": {
          "description": "Toolchain IDs in the order `turbo setup` installs their dependencies, one at a time. Without it, every toolchain's installer runs at the same time. Set it when one ecosystem's install needs another's dependencies, such as a Python build hook that runs npm. It must list each of the repository's toolchains exactly once.",
          "type": ["array", "null"],
          "items": {
            "type": "string"
          }
        },
        "go": {
          "description": "Setup policy for the Go toolchain. Requires `futureFlags.experimentalGoWorkspaces`.",
          "anyOf": [
            {
              "$ref": "#/definitions/ToolchainSetupPolicy"
            },
            {
              "type": "null"
            }
          ]
        },
        "javascript": {
          "description": "Setup policy for the JavaScript toolchain.",
          "anyOf": [
            {
              "$ref": "#/definitions/ToolchainSetupPolicy"
            },
            {
              "type": "null"
            }
          ]
        },
        "mirrors": {
          "description": "Credential-free HTTPS mirrors for setup downloads. `turbo.lock` keeps the official URLs, and environment variables override these values.",
          "anyOf": [
            {
              "$ref": "#/definitions/SetupMirrors"
            },
            {
              "type": "null"
            }
          ]
        },
        "python": {
          "description": "Setup policy for the Python toolchain. Requires `futureFlags.experimentalPythonWorkspaces`.",
          "anyOf": [
            {
              "$ref": "#/definitions/ToolchainSetupPolicy"
            },
            {
              "type": "null"
            }
          ]
        },
        "rust": {
          "description": "Setup policy for the Rust toolchain. Requires `futureFlags.experimentalCargoWorkspaces`.",
          "anyOf": [
            {
              "$ref": "#/definitions/ToolchainSetupPolicy"
            },
            {
              "type": "null"
            }
          ]
        },
        "tools": {
          "description": "How `turbo setup` prepares tools for every toolchain.",
          "anyOf": [
            {
              "$ref": "#/definitions/ToolPolicy"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "String": {
      "type": "string"
    },
    "StructuredInput": {
      "type": "object",
      "properties": {
        "from": {
          "type": ["array", "null"],
          "items": {
            "$ref": "#/definitions/String"
          }
        },
        "globs": {
          "type": ["array", "null"],
          "items": {
            "$ref": "#/definitions/String"
          }
        },
        "mode": {
          "anyOf": [
            {
              "$ref": "#/definitions/String"
            },
            {
              "type": "null"
            }
          ]
        },
        "withDefaults": {
          "anyOf": [
            {
              "$ref": "#/definitions/Boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "TagRules": {
      "description": "Boundary rules for a tag.\n\nRestricts which packages a tag can import and which packages can import this tag.",
      "type": "object",
      "properties": {
        "dependencies": {
          "description": "Rules for a tag's dependencies.\n\nRestricts which packages a tag can import.",
          "anyOf": [
            {
              "$ref": "#/definitions/Permissions"
            },
            {
              "type": "null"
            }
          ]
        },
        "dependents": {
          "description": "Rules for a tag's dependents.\n\nRestricts which packages can import this tag.",
          "anyOf": [
            {
              "$ref": "#/definitions/Permissions"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "TaskInput": {
      "anyOf": [
        {
          "$ref": "#/definitions/String"
        },
        {
          "$ref": "#/definitions/StructuredInput"
        }
      ]
    },
    "ToolPolicy": {
      "description": "How `turbo setup` prepares a toolchain's tools. `managed` provisions the locked version for this repository. `skip` neither provisions nor verifies the tool, which also skips the toolchain's dependencies.",
      "type": "string",
      "enum": ["managed", "skip"]
    },
    "ToolchainSetupPolicy": {
      "description": "Setup policy for one toolchain. Omitted values use the root `setup` values, then the inferred default.",
      "type": "object",
      "properties": {
        "dependencies": {
          "description": "How `turbo setup` prepares this toolchain's dependencies.",
          "anyOf": [
            {
              "$ref": "#/definitions/DependencyPolicy"
            },
            {
              "type": "null"
            }
          ]
        },
        "tools": {
          "description": "How `turbo setup` prepares this toolchain's tools.",
          "anyOf": [
            {
              "$ref": "#/definitions/ToolPolicy"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "UI": {
      "description": "Enable use of the UI for `turbo`.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#ui",
      "oneOf": [
        {
          "description": "Use the terminal user interface.",
          "type": "string",
          "enum": ["tui"]
        },
        {
          "description": "Use the standard output stream.",
          "type": "string",
          "enum": ["stream"]
        },
        {
          "description": "Use the standard output stream with timestamps. Note: This feature is experimental and may change or be removed at any time.",
          "type": "string",
          "enum": ["stream-with-experimental-timestamps"]
        }
      ]
    },
    "uint64": {
      "type": "integer",
      "format": "uint64",
      "minimum": 0.0
    }
  }
}
