{
  "description": "Search the command library and bookmark new commands. Import, export, replace, fix, config and logs are outside this form.",
  "name": "intelli-shell",
  "subcommands": [
    {
      "name": "search",
      "description": "Print matching stored commands, or open the interactive picker.",
      "options": [
        {
          "names": [
            "--mode",
            "-m"
          ],
          "description": "Search mode",
          "args": {
            "name": "mode",
            "isOptional": false,
            "suggestions": [
              {
                "name": "auto",
                "description": "Auto"
              },
              {
                "name": "fuzzy",
                "description": "Fuzzy"
              },
              {
                "name": "regex",
                "description": "Regex"
              },
              {
                "name": "exact",
                "description": "Exact"
              },
              {
                "name": "relaxed",
                "description": "Relaxed"
              }
            ]
          }
        },
        {
          "names": [
            "--user-only",
            "-u"
          ],
          "description": "Exclude tldr commands"
        },
        {
          "names": [
            "--interactive",
            "-i"
          ],
          "description": "Interactive picker"
        },
        {
          "names": [
            "--ai"
          ],
          "description": "Treat the query as a natural-language prompt."
        }
      ],
      "args": [
        {
          "name": "query",
          "isOptional": true
        }
      ]
    },
    {
      "name": "new",
      "description": "Store a new command in the library without opening the TUI.",
      "options": [
        {
          "names": [
            "--alias",
            "-a"
          ],
          "description": "Alias",
          "args": {
            "name": "alias",
            "isOptional": false
          }
        },
        {
          "names": [
            "--description",
            "-d"
          ],
          "description": "May include #tags.",
          "args": {
            "name": "description",
            "description": "May include #tags.",
            "isOptional": false
          }
        },
        {
          "names": [
            "--interactive",
            "-i"
          ],
          "description": "Review in interactive picker"
        },
        {
          "names": [
            "--ai"
          ],
          "description": "Generate with AI"
        }
      ],
      "args": [
        {
          "name": "command_string",
          "isOptional": true
        }
      ]
    }
  ]
}
