{
  "id": "tuicr",
  "name": "tuicr",
  "homepage": "https://github.com/agavra/tuicr",
  "description": "A code review TUI with vim keybindings.",
  "executables": [
    "tuicr"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/tuicr/config.toml",
      "~/.config/tuicr/themes/",
      "%APPDATA%/tuicr/config.toml",
      "%APPDATA%/tuicr/themes/"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Review changes",
    "description": "Open tuicr on uncommitted changes, a commit range or a pull request. Review sessions, update and theme flags are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "readme",
        "kind": "manual",
        "url": "https://github.com/agavra/tuicr/blob/main/README.md",
        "revision": "2026-10-27",
        "evidence": "tuicr -w                    # Uncommitted changes (skip selector)\ntuicr -r main..HEAD         # Commit range\ntuicr --file f.md --line 42 # Annotate a file, starting at line 42\ntuicr --stdout              # Pipe the review to stdout\n"
      }
    ],
    "field": [
      {
        "id": "working",
        "label": "Uncommitted changes",
        "type": "boolean",
        "option": [
          "-w"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "range",
        "label": "Commit range",
        "description": "For example main..HEAD.",
        "type": "string",
        "option": [
          "-r"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "file",
        "label": "Annotate file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "--file"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "line",
        "label": "Start at line",
        "type": "integer",
        "option": [
          "--line"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "stdout",
        "label": "Print review to stdout",
        "type": "boolean",
        "option": [
          "--stdout"
        ],
        "sources": [
          "readme"
        ]
      }
    ],
    "task": [
      {
        "id": "working",
        "label": "Review uncommitted changes",
        "set": {
          "working": [
            true
          ]
        },
        "lock": [
          "working"
        ],
        "fields": [
          "stdout"
        ],
        "required": []
      },
      {
        "id": "range",
        "label": "Review commit range",
        "fields": [
          "range",
          "stdout"
        ],
        "required": [
          "range"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "working",
          "range",
          "stdout"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "file",
          "line"
        ]
      }
    ]
  }
}
