{
  "id": "asymptote",
  "name": "Asymptote",
  "homepage": "https://asymptote.sourceforge.io/",
  "description": "A powerful descriptive vector graphics language for technical drawing.",
  "executables": [
    "asy"
  ],
  "dotfiles": {
    "paths": [
      "~/.asy/config.asy"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Compile Asymptote",
    "description": "Compile one or more .asy files to a graphics format. Only the common output options are listed.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "manual",
        "kind": "manual",
        "url": "https://asymptote.sourceforge.io/asymptote.pdf",
        "revision": "2026-10-27",
        "evidence": "Options (negate boolean options by replacing - with -no):\n-V,-View\n-cd directory\n-f,-outformat format\nConvert each output file to specified format\n-o,-outname name\nAlternative output directory/file prefix\n-render n\n-k,-keep\n-v,-verbose\n-tex engine\nasy -V -f pdf test\n"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Input files",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "position": 0,
        "multiple": true,
        "sources": [
          "manual"
        ]
      },
      {
        "id": "view",
        "label": "Open in viewer",
        "type": "boolean",
        "option": [
          "-V"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "outformat",
        "label": "Output format",
        "description": "For example pdf, eps, svg, png.",
        "type": "string",
        "option": [
          "-f"
        ],
        "suggestions": [
          {
            "value": "pdf",
            "label": "PDF"
          },
          {
            "value": "eps",
            "label": "EPS"
          },
          {
            "value": "svg",
            "label": "SVG"
          },
          {
            "value": "png",
            "label": "PNG"
          }
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "outname",
        "label": "Output name",
        "description": "Alternative output directory or file prefix.",
        "type": "string",
        "option": [
          "-o"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "cd",
        "label": "Working directory",
        "type": "path",
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "option": [
          "-cd"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "render",
        "label": "Render resolution factor",
        "type": "integer",
        "option": [
          "-render"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "keep",
        "label": "Keep intermediate files",
        "type": "boolean",
        "option": [
          "-k"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose",
        "type": "boolean",
        "option": [
          "-v"
        ],
        "sources": [
          "manual"
        ]
      }
    ],
    "task": [
      {
        "id": "pdf",
        "label": "Compile to PDF",
        "set": {
          "outformat": [
            "pdf"
          ]
        },
        "fields": [
          "files",
          "outformat",
          "outname",
          "view"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "png",
        "label": "Compile to PNG",
        "set": {
          "outformat": [
            "png"
          ]
        },
        "fields": [
          "files",
          "outformat",
          "render",
          "outname"
        ],
        "required": [
          "files"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "outformat",
          "outname",
          "view"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "cd",
          "render",
          "keep",
          "verbose"
        ]
      }
    ]
  }
}
