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