{
  "name": "mermaid-chat-features",
  "displayName": "%displayName%",
  "description": "%description%",
  "version": "10.0.0",
  "publisher": "vscode",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/microsoft/vscode.git"
  },
  "aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
  "engines": {
    "vscode": "^1.104.0"
  },
  "enabledApiProposals": [
    "chatOutputRenderer"
  ],
  "capabilities": {
    "virtualWorkspaces": true,
    "untrustedWorkspaces": {
      "supported": true
    }
  },
  "main": "./out/extension",
  "browser": "./dist/browser/extension",
  "activationEvents": [
    "onWebviewPanel:vscode.chat-mermaid-features.preview"
  ],
  "contributes": {
    "commands": [
      {
        "command": "_mermaid-chat.resetPanZoom",
        "title": "Reset Pan and Zoom"
      },
      {
        "command": "_mermaid-chat.openInEditor",
        "title": "Open Diagram in Editor"
      },
      {
        "command": "_mermaid-chat.copySource",
        "title": "Copy Diagram Source"
      }
    ],
    "menus": {
      "commandPalette": [
        {
          "command": "_mermaid-chat.resetPanZoom",
          "when": "false"
        },
        {
          "command": "_mermaid-chat.openInEditor",
          "when": "false"
        },
        {
          "command": "_mermaid-chat.copySource",
          "when": "false"
        }
      ],
      "webview/context": [
        {
          "command": "_mermaid-chat.resetPanZoom",
          "when": "webviewId == 'vscode.chat-mermaid-features.chatOutputItem'"
        },
        {
          "command": "_mermaid-chat.copySource",
          "when": "webviewId == 'vscode.chat-mermaid-features.chatOutputItem' || webviewId == 'vscode.chat-mermaid-features.preview'"
        }
      ]
    },
    "configuration": {
      "title": "Mermaid Chat Features",
      "properties": {
        "mermaid-chat.enabled": {
          "type": "boolean",
          "default": true,
          "description": "%config.enabled.description%",
          "scope": "application"
        }
      }
    },
    "chatOutputRenderers": [
      {
        "viewType": "vscode.chat-mermaid-features.chatOutputItem",
        "mimeTypes": [
          "text/vnd.mermaid"
        ]
      }
    ],
    "languageModelTools": [
      {
        "name": "renderMermaidDiagram",
        "displayName": "Mermaid Renderer",
        "toolReferenceName": "renderMermaidDiagram",
        "canBeReferencedInPrompt": true,
        "modelDescription": "Renders a Mermaid diagram from Mermaid.js markup.",
        "userDescription": "Render a Mermaid.js diagrams from markup.",
        "when": "config.mermaid-chat.enabled",
        "inputSchema": {
          "type": "object",
          "properties": {
            "markup": {
              "type": "string",
              "description": "The mermaid diagram markup to render as a Mermaid diagram. This should only be the markup of the diagram. Do not include a wrapping code block."
            },
            "title": {
              "type": "string",
              "description": "A short title that describes the diagram."
            }
          }
        }
      }
    ]
  },
  "scripts": {
    "compile": "gulp compile-extension:mermaid-chat-features && npm run build-chat-webview",
    "watch": "npm run build-chat-webview && gulp watch-extension:mermaid-chat-features",
    "vscode:prepublish": "npm run build-ext && npm run build-chat-webview",
    "build-ext": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.mjs compile-extension:mermaid-chat-features",
    "build-chat-webview": "node ./esbuild.webview.mts",
    "compile-web": "npm-run-all2 -lp bundle-web typecheck-web",
    "bundle-web": "node ./esbuild.browser.mts",
    "typecheck-web": "tsgo --project ./tsconfig.browser.json --noEmit",
    "watch-web": "npm-run-all2 -lp watch-bundle-web watch-typecheck-web",
    "watch-bundle-web": "node ./esbuild.browser.mts --watch",
    "watch-typecheck-web": "tsgo --project ./tsconfig.browser.json --noEmit --watch"
  },
  "devDependencies": {
    "@types/node": "^22.18.10",
    "@vscode/codicons": "^0.0.36"
  },
  "dependencies": {
    "dompurify": "^3.3.2",
    "mermaid": "^11.12.3"
  },
  "overrides": {
    "lodash-es": "4.18.1"
  }
}
