Path: blob/main/extensions/mermaid-chat-features/package.json
5251 views
{1"name": "mermaid-chat-features",2"displayName": "%displayName%",3"description": "%description%",4"version": "1.0.0",5"publisher": "vscode",6"license": "MIT",7"repository": {8"type": "git",9"url": "https://github.com/microsoft/vscode.git"10},11"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",12"engines": {13"vscode": "^1.104.0"14},15"enabledApiProposals": [16"chatOutputRenderer"17],18"capabilities": {19"virtualWorkspaces": true,20"untrustedWorkspaces": {21"supported": true22}23},24"main": "./out/extension",25"browser": "./dist/browser/extension",26"activationEvents": [27"onWebviewPanel:vscode.chat-mermaid-features.preview"28],29"contributes": {30"commands": [31{32"command": "_mermaid-chat.resetPanZoom",33"title": "Reset Pan and Zoom"34},35{36"command": "_mermaid-chat.openInEditor",37"title": "Open Diagram in Editor"38},39{40"command": "_mermaid-chat.copySource",41"title": "Copy Diagram Source"42}43],44"menus": {45"commandPalette": [46{47"command": "_mermaid-chat.resetPanZoom",48"when": "false"49},50{51"command": "_mermaid-chat.openInEditor",52"when": "false"53},54{55"command": "_mermaid-chat.copySource",56"when": "false"57}58],59"webview/context": [60{61"command": "_mermaid-chat.resetPanZoom",62"when": "webviewId == 'vscode.chat-mermaid-features.chatOutputItem'"63},64{65"command": "_mermaid-chat.copySource",66"when": "webviewId == 'vscode.chat-mermaid-features.chatOutputItem' || webviewId == 'vscode.chat-mermaid-features.preview'"67}68]69},70"configuration": {71"title": "Mermaid Chat Features",72"properties": {73"mermaid-chat.enabled": {74"type": "boolean",75"default": true,76"description": "%config.enabled.description%",77"scope": "application"78}79}80},81"chatOutputRenderers": [82{83"viewType": "vscode.chat-mermaid-features.chatOutputItem",84"mimeTypes": [85"text/vnd.mermaid"86]87}88],89"languageModelTools": [90{91"name": "renderMermaidDiagram",92"displayName": "Mermaid Renderer",93"toolReferenceName": "renderMermaidDiagram",94"canBeReferencedInPrompt": true,95"modelDescription": "Renders a Mermaid diagram from Mermaid.js markup.",96"userDescription": "Render a Mermaid.js diagrams from markup.",97"when": "config.mermaid-chat.enabled",98"inputSchema": {99"type": "object",100"properties": {101"markup": {102"type": "string",103"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."104},105"title": {106"type": "string",107"description": "A short title that describes the diagram."108}109}110}111}112]113},114"scripts": {115"compile": "gulp compile-extension:mermaid-chat-features && npm run build-chat-webview",116"watch": "npm run build-chat-webview && gulp watch-extension:mermaid-chat-features",117"vscode:prepublish": "npm run build-ext && npm run build-chat-webview",118"build-ext": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.mjs compile-extension:mermaid-chat-features",119"build-chat-webview": "node ./esbuild-chat-webview.mjs",120"compile-web": "npx webpack-cli --config extension-browser.webpack.config --mode none",121"watch-web": "npx webpack-cli --config extension-browser.webpack.config --mode none --watch --info-verbosity verbose"122},123"devDependencies": {124"@types/node": "^22.18.10",125"@vscode/codicons": "^0.0.36"126},127"dependencies": {128"dompurify": "^3.2.7",129"mermaid": "^11.11.0"130}131}132133134